tegon icon indicating copy to clipboard operation
tegon copied to clipboard

Error when running docker-compose up

Open maacl opened this issue 9 months ago • 11 comments

I get the following error when trying to run docker-compose up on Ubuntu 22:

❯ sudo docker-compose up[sudo] password for mac:WARNING: Some networks were defined but are not used by any service: app_networkCreating network "tegon_tegon" with the default driverCreating volume "tegon_postgres-data" with default driverCreating volume "tegon_kafka-volume" with default driverCreating volume "tegon_zookeeper-volume" with default driverCreating volume "tegon_typesense-data" with default driverPulling db (postgres-tegon:latest)...ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

maacl avatar May 10 '24 12:05 maacl

Looking into it

saimanoj avatar May 10 '24 12:05 saimanoj

Thank you.

On Fri, 10 May 2024 at 14:47, Manoj @.***> wrote:

Looking into it

— Reply to this email directly, view it on GitHub https://github.com/tegonhq/tegon/issues/66#issuecomment-2104549961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPUXHWZXZZTSJVU2SW5VTZBS6WNAVCNFSM6AAAAABHQRG2O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGU2DSOJWGE . You are receiving this because you authored the thread.Message ID: @.***>

maacl avatar May 10 '24 13:05 maacl

we've made a change to the docker-compose file. @maacl can you please pull the change and try again?

Please let us know if the issue persists.

saimanoj avatar May 10 '24 14:05 saimanoj

It gets further now but stops with:

Pulling prisma (tegonhq/tegon-prisma:0.1.0-alpha)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling prisma (tegonhq/tegon-prisma:0.1.0-alpha)...
ERROR: pull access denied for tegonhq/tegon-prisma, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

maacl avatar May 10 '24 14:05 maacl

fixed it. can you please try again?

saimanoj avatar May 10 '24 14:05 saimanoj

I don't see a new commit. Still the same.

On Fri, 10 May 2024 at 16:50, Manoj @.***> wrote:

fixed it. can you please try again?

— Reply to this email directly, view it on GitHub https://github.com/tegonhq/tegon/issues/66#issuecomment-2104747654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPUXELWQG2W2JUOVGKADLZBTNEBAVCNFSM6AAAAABHQRG2O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUG42DONRVGQ . You are receiving this because you were mentioned.Message ID: @.***>

maacl avatar May 10 '24 14:05 maacl

I have updated Docker image. Please do docker compose up

saimanoj avatar May 10 '24 14:05 saimanoj

OK, that got me to launch. Port 3001 only gives me Hello World, I guess that is wrong?

maacl avatar May 10 '24 15:05 maacl

Hey the application should be available in 8000. But there are some steps before you can signup. I am writing the documentation and a script to make it a single step. Will update here once that is done.

Really appreciate your patience.

harshithmullapudi avatar May 10 '24 15:05 harshithmullapudi

Not to worry. Thanks.

On Fri, 10 May 2024 at 17:42, Harshith Mullapudi @.***> wrote:

Hey the application should be available in 8000. But there are some steps before you can signup. I am writing the documentation and a script to make it a single step. Will update here once that is done.

Really appreciate your patience.

— Reply to this email directly, view it on GitHub https://github.com/tegonhq/tegon/issues/66#issuecomment-2104827889, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPUXH2LNDK6VGMF7MP2MDZBTTF3AVCNFSM6AAAAABHQRG2O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUHAZDOOBYHE . You are receiving this because you were mentioned.Message ID: @.***>

maacl avatar May 10 '24 15:05 maacl

Hey @maacl, we have created the documentation for getting started. Kindly check it out and let us know if you face any challenges. https://docs.tegon.ai/oss/deploy-tegon

AggManik avatar Jun 10 '24 07:06 AggManik

Hey @AggManik The scripts dir appears to be missing on the server.

maacl avatar Jun 10 '24 08:06 maacl

can you skip cd scripts and directly run the next line node scripts/createUserWorkspaceTeam ?

harshithmullapudi avatar Jun 10 '24 08:06 harshithmullapudi

Nope:

/ #  node scripts/createUserWorkspaceTeam
node:internal/modules/cjs/loader:1137
  throw err;
  ^

Error: Cannot find module '/scripts/createUserWorkspaceTeam'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
    at Module._load (node:internal/modules/cjs/loader:975:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.19.1

maacl avatar Jun 10 '24 08:06 maacl

Hey could you pull the latest code we made a few changes in the server container?

harshithmullapudi avatar Jun 10 '24 08:06 harshithmullapudi

You could build the images with docker-compose build

harshithmullapudi avatar Jun 10 '24 08:06 harshithmullapudi

The build fails:

Step 16/18 : COPY --from=builder /app/certs ./certs
COPY failed: stat app/certs: file does not exist
ERROR: Service 'prisma' failed to build : Build failed

maacl avatar Jun 10 '24 08:06 maacl

@maacl fixed it, can you please pull it again and try to build it?

saimanoj avatar Jun 10 '24 09:06 saimanoj

@saimanoj Did pull and build and now everything builds. There is an error during the build though(cf below). When I go to http://localhost:8000 I get a spinner that runs forever.

Step 16/18 : RUN mkdir -p certs && cp -r /app/certs/* ./certs/ || true
 ---> Running in d25a163567a1
cp: can't stat '/app/certs/*': No such file or directory

maacl avatar Jun 10 '24 09:06 maacl

@maacl fixed it, can you please pull it again, build it, and try creating a user?

saimanoj avatar Jun 10 '24 09:06 saimanoj

I now get to the login page, but when I submit I get the endless spinner again.

maacl avatar Jun 10 '24 10:06 maacl

@maacl I was not able to reproduce this. can we get on a call?

saimanoj avatar Jun 10 '24 12:06 saimanoj

I see the below error while building. I can do a call now if you want?

[3/4] Linking dependencies...
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "@types/ejs@>=3.0.3".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "@types/pug@>=2.0.6".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "@types/mjml@>=4.7.4".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "ejs@>=3.1.2".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "handlebars@>=4.7.6".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "mjml@>=4.15.3".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "pug@>=3.0.1".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "liquidjs@>=10.8.2".
warning " > @nestjs-modules/[email protected]" has unmet peer dependency "preview-email@>=3.0.19".
warning " > @nestjs/[email protected]" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning " > @nestjs/[email protected]" has incorrect peer dependency "reflect-metadata@^0.1.13".
warning " > @nestjs/[email protected]" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning " > @nestjs/[email protected]" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning "@nestjs/swagger > @nestjs/[email protected]" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning " > @tiptap/[email protected]" has unmet peer dependency "@tiptap/pm@^2.0.0".
warning " > [email protected]" has unmet peer dependency "@babel/runtime@^7.23.2".
warning " > [email protected]" has unmet peer dependency "webpack@^5.0.0".

maacl avatar Jun 10 '24 14:06 maacl

@maacl if you don't mind, can you please pick a time here or please join our slack community.

saimanoj avatar Jun 10 '24 16:06 saimanoj

Made it work after recreating workspace and team. Thanks.

On Mon, 10 Jun 2024 at 18:33, Manoj @.***> wrote:

@maacl https://github.com/maacl if you don't mind, can you please pick a time here https://calendly.com/manoj-ks/tegon-2 or please join our slack community. https://join.slack.com/t/tegoncommunity/shared_invite/zt-2jvar8p1x-9wqFTL9PP5ICImb76qcjEA

— Reply to this email directly, view it on GitHub https://github.com/tegonhq/tegon/issues/66#issuecomment-2158829456, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPUXEKMUZNELPIQZBQQ4TZGXIM3AVCNFSM6AAAAABHQRG2O6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYHAZDSNBVGY . You are receiving this because you were mentioned.Message ID: @.***>

maacl avatar Jun 10 '24 17:06 maacl

Sorry for the hassle, we're trying to make it better.

saimanoj avatar Jun 10 '24 18:06 saimanoj

Resolved

AggManik avatar Jun 11 '24 10:06 AggManik