agenta icon indicating copy to clipboard operation
agenta copied to clipboard

[AGE-1700] [Bug] Self-hosting with docker compose stops at agenta-oss-gh-web-1

Open burning-croissant opened this issue 1 year ago • 4 comments

Describe the bug Hi, I'm trying to run locally using docker compose as mentioned in the guide but it fails when running docker compose up.

To Reproduce

  1. Clone the repo.
  2. Run sudo docker compose -f hosting/docker-compose/oss/docker-compose.gh.yml --env-file hosting/docker-compose/oss/.env.oss.gh --profile with-web up -d.
  3. Fail at Container agenta-oss-gh-web-1 Starting saying Error response from daemon: network a8694d6ed6148eab70f35d6ba132f09865b1a0dd8c434ebfe82befa03d945a02 not found

Expected behavior When I tried it before the guide was changed, it worked. (It was v0.33.X)

Screenshots

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 14.6.1 for mac

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Important Context

I ran docker logs agenta-oss-gh-web-1 and got this below.

Node.js v20.18.3
node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '/app/oss/server.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Thank you!

AGE-1700

burning-croissant avatar Mar 04 '25 23:03 burning-croissant

Thank you for writing us @burning-croissant We are looking into this.

mmabrouk avatar Mar 05 '25 14:03 mmabrouk

@burning-croissant sorry about the delayed response here. I wasn't able to reproduce the error you posted, and just wanted to check in and see if the error still persists on your side [we've released v0.35 today].

if it is still happening, perhaps running the command with DOCKER_DEBUG=1 DOCKER_BUILDKIT=0 flags can provide us with more information to debug what's going wrong.

ardaerzin avatar Mar 11 '25 18:03 ardaerzin

Hi! I think it was due to errors in building docker images. I removed all the related images, restarted and it worked. Thanks for the reply. 👍

burning-croissant avatar Mar 11 '25 23:03 burning-croissant

@burning-croissant glad to hear that you have it running 🎉

ardaerzin avatar Mar 12 '25 09:03 ardaerzin