https://www.activepieces.com logo
after I upgrade to 0.72.2 I got these
# 🐶|general
m
after I upgrade to 0.72.2 I got these error activepieces | {"level":50,"time":1764163259506,"pid":10,"hostname":"a5e8104e2050","error":{},"msg":"[PackageManager#install] Failed to install dependencies"} activepieces | {"level":50,"time":1764163259506,"pid":10,"hostname":"a5e8104e2050","rootWorkspace":"/usr/src/app/cache/v7/common","pieces":["@activepieces/piece-webhook-0.1.25"],"error":{},"msg":"[registryPieceManager] Piece installation failed, rolling back"} activepieces | {"level":30,"time":1764163259508,"pid":10,"hostname":"a5e8104e2050","message":"[jobQueueWorker] Consumed job","response":{"status":"INTERNAL_ERROR","errorMessage":"Error: Exit 1\nstdout: \nstderr: error: An unknown error occurred (Unexpected)\n\n at ChildProcess. (/usr/src/app/packages/server/shared/src/lib/exec.ts:73:21)\n at ChildProcess.emit (node:events:524:28)\n at ChildProcess.emit (node:domain:489:12)\n at maybeClose (node:internal/child_process:1104:16)\n at ChildProcess._handle.onexit (node:internal/child_process:304:5)"}}
@Abdul (Viva-Palestina)💔 @Mo Hi, any idea to fix this?
a
not really @Mo @chaker5341 any ideas ?
c
@morty_72898 for some reason bun failed to install the piece for you
@morty_72898 can you tell us what environement you are running this
m
I am self hosting 0.71.4 before, setting AP_EXECUTION_MODE=UNSANDBOXED
c
does this happen only on piece-webhook ?
m
I also see piece-schedule
not only webhook
c
does bun --version work ?
m
Because version 0.72.2 threw errors that prevented tasks from running, I manually added the missing fields to the database and then downgraded to 0.71.4. bun --version worked on 0.71.4 with output 1.3.1
do I need to upgrade again and try this command?
c
It would be safer if you hace staging or testing environment to try out first
it this something possible now ?
m
I don’t have a testing environment, but I can try it if upgrading allows me to roll back afterward.
c
alright go ahead
m
ok I will have a try
@chaker5341 it works
1.3.1
c
alright . we will try to simulate the install command that's failing to see what error we get
first create a file in this path /usr/src/app/cache/v7/common/@activepieces/piece-webhook-0.1.25
with this command touch /usr/src/app/cache/v7/common/@activepieces/piece-webhook-0.1.25/package.json
and copy this content to it
Copy code
{
  "name": "@activepieces/piece-webhook-0.1.25",
  "version": "0.1.25",
  "dependencies": {
    "@activepieces/piece-webhook": "0.1.25"
  }
}
m
touch: cannot touch '/usr/src/app/cache/v7/common/@activepieces/piece-webhook-0.1.25/package.json': No such file or directory
you mean /usr/src/app/cache/v7/common/pieces?
c
oh yeah
after that file is create run this commands cd /usr/src/app/cache/v7/common/ bun install --linked isolated --filter ./pieces/@activepieces/piece-webhook-0.1.25
Any updates ?
m
error: An unknown error occurred (Unexpected)
and /piece-webhook-0.1.25 disappear
There are no files left under the /@activepieces path.
c
after you run this command ??
m
yes
c
I'm suspecting folder got deleted by the app before the install command run . can you just try one more time to create the file and run the command
m
ok
c
bun install --linker isolated --filter ./pieces/@activepieces/piece-webhook-0.1.25
sorry there was a typo . linker not linked
same error
I need to downgrade now because my job start in 3 minutes
c
alright
we'll try to find out why you getting this
m
Thank you! Let me know if you need any help!
c
btw what is the Operating system ?
a
Is it running on an ARM machine ?
m
No, architecture is x86_64
c
Could it be that your instance doesn't have internet ?
m
You remind me. I was previously using an npm mirror and had NPM_CONFIG_REGISTRY configured. After upgrade, installation started failing with errors, so I removed the mirror configuration — but the issue still isn't resolved. So can you teach me how to set mirror source for bun in docker container? I can have a try. There's another thing I find strange: my database already have version 0.1.25 of the webhook piece, so why does the upgrade still try to install 0.1.25 again? I haven't set AP_PIECES_SOURCE at all.
I tried to set BUN_CONFIG_REGISTRY, but it didn't work for me
m
Why not use the default registry? what is the value in the
NPM_CONFIG_REGISTRY
m
I tried, default registry also didn't work
and I found this error when container recreate activepieces | {"level":50,"time":1764260006747,"pid":10,"hostname":"91b9e7fadf01","error":{"code":-8},"msg":"Error removing deprecated jobs"} does this matter?
m
Nope
It seems related to bun it self
I am trying tot hink of a way to reproduce
thank you! let me know if you need any help!
Sounds this is the issue
m
I dont really understand. so the way to resolve this error is to upgrade linux system?
@Mo Hi, any suggestion about this?
m
Seems bun doesn’t work on centos 7 as it’s too old. We will try to verify that
m
I am going to upgrade linux system, any recommend? Is Ubuntu Server 24.04 LTS OK?
@Mo Hi, any suggestion about this?
m
This should definitely work
m
OK, I will try later, thank you
3 Views