tegonhq / tegon

Tegon is an open-source, dev-first alternative to Jira, Linear
https://tegon.ai
GNU Affero General Public License v3.0
1.57k stars 70 forks source link

Error when running docker-compose up #66

Closed maacl closed 5 months ago

maacl commented 6 months ago

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.
tegon-bot[bot] commented 6 months ago

ENG-231 Error when running docker-compose up

saimanoj commented 6 months ago

Looking into it

maacl commented 6 months ago

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: @.***>

saimanoj commented 6 months ago

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.

maacl commented 6 months ago

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
saimanoj commented 6 months ago

fixed it. can you please try again?

maacl commented 6 months ago

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: @.***>

saimanoj commented 6 months ago

I have updated Docker image. Please do docker compose up

maacl commented 6 months ago

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

harshithmullapudi commented 6 months ago

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.

maacl commented 6 months ago

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: @.***>

AggManik commented 5 months ago

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

maacl commented 5 months ago

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

harshithmullapudi commented 5 months ago

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

maacl commented 5 months ago

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
harshithmullapudi commented 5 months ago

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

harshithmullapudi commented 5 months ago

You could build the images with docker-compose build

maacl commented 5 months ago

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
saimanoj commented 5 months ago

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

maacl commented 5 months ago

@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
saimanoj commented 5 months ago

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

maacl commented 5 months ago

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

saimanoj commented 5 months ago

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

maacl commented 5 months ago

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

[3/4] Linking dependencies...
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "@types/ejs@>=3.0.3".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "@types/pug@>=2.0.6".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "@types/mjml@>=4.7.4".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "ejs@>=3.1.2".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "handlebars@>=4.7.6".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "mjml@>=4.15.3".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "pug@>=3.0.1".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "liquidjs@>=10.8.2".
warning " > @nestjs-modules/mailer@2.0.2" has unmet peer dependency "preview-email@>=3.0.19".
warning " > @nestjs/common@10.3.1" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning " > @nestjs/config@3.1.1" has incorrect peer dependency "reflect-metadata@^0.1.13".
warning " > @nestjs/core@10.3.1" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning " > @nestjs/swagger@7.2.0" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning "@nestjs/swagger > @nestjs/mapped-types@2.0.4" has incorrect peer dependency "reflect-metadata@^0.1.12".
warning " > @tiptap/core@2.4.0" has unmet peer dependency "@tiptap/pm@^2.0.0".
warning " > typesense@1.8.2" has unmet peer dependency "@babel/runtime@^7.23.2".
warning " > ts-loader@9.5.1" has unmet peer dependency "webpack@^5.0.0".
saimanoj commented 5 months ago

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

maacl commented 5 months ago

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: @.***>

saimanoj commented 5 months ago

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

AggManik commented 5 months ago

Resolved