Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convos exited with code 0 #885

Open
trymbill opened this issue Mar 8, 2024 · 6 comments
Open

convos exited with code 0 #885

trymbill opened this issue Mar 8, 2024 · 6 comments
Assignees
Milestone

Comments

@trymbill
Copy link

trymbill commented Mar 8, 2024

Describe the bug
I'm trying to run Convos with Docker and been struggling getting past the first user being registered. I've tried a bunch of things (permissions, UID/GID, different reverse proxy settings, different browsers, etc) but can't find the source of the issue. Every time I try and 'Sign up' the initial user, I get this:

Screenshot 2024-03-07 at 22 32 46

Here's the docker-compose.yaml config:

convos:
  container_name: "convos"
  image: "ghcr.io/convos-chat/convos:stable"
  user: "1000:100"
  environment:
    - "CONVOS_LOG_LEVEL=trace"
    - "CONVOS_REVERSE_PROXY=1"
    - "CONVOS_REQUEST_BASE=https://my.domain.com/"
  volumes:
    - "/path/to/convos/data:/data"
  restart: "unless-stopped"
  labels:
    - "traefik.enable=true"
    - "traefik.http.routers.convos.tls.certresolver=letsencrypt"
    - "traefik.http.routers.convos.entrypoints=https"
    - "traefik.http.routers.convos.rule=Host(`my.domain.com`)"
    - "traefik.http.services.convos.loadbalancer.server.port=3000"
    - "traefik.backend=convos"
    - "traefik.frontend.rule=Host:my.domain.com"

Here's the call to /api/user/register.json being made in Postman and a terminal open on the docker container running Convos. As you can see the container exits with code 0 and nothing in the logs, even on CONVOS_LOG_LEVEL=trace, to explain why:

convos-docker-exited-with-code-0.mov

Any ideas what could be going on here?

Environment:

  • OS: Ubuntu
  • Browser: Chrome, Firefox, Arc
  • Version: ghcr.io/convos-chat/convos:stable
@jberger
Copy link
Collaborator

jberger commented Mar 15, 2024

I reported something perhaps similar via IRC on Jan 31. Though I didn't see exit code 0, I saw 132.

it seems that using images from ghcr.io when I login I segfault the pod
exit code 132
which as best as I can understand means "illegal instruction" which I think basically means I'm using the wrong architecture
it looks like the image I pulled say amd64 so I have no idea what is going on
but backing all the way up to convos/convos:v7.15 fixes it

@asdofindia
Copy link
Contributor

Could also be an issue with dependencies like in #881

@jhthorsen jhthorsen added this to the 8.xx milestone Mar 17, 2024
jhthorsen added a commit that referenced this issue Mar 18, 2024
@jhthorsen
Copy link
Collaborator

What a great bug report! Makes me even more sad that I have no clue what's going on...

Even so, I just bumped some dependencies, so if you have time, please try out https://github.com/convos-chat/convos/pkgs/container/convos/192095675?tag=alpha

I'm also rebuilding the base docker image now, and going to make a new release of Convos afterwards. (Hopefully today)

@jhthorsen
Copy link
Collaborator

I'm going to close this as a duplicate of #862. Please let me know if you disagree.

@jhthorsen jhthorsen self-assigned this Mar 18, 2024
@jhthorsen
Copy link
Collaborator

jhthorsen commented Mar 20, 2024

I'm reopening this issue, since I closed #862 before waiting for feedback from all participants.

@jhthorsen jhthorsen reopened this Mar 20, 2024
@jhthorsen jhthorsen assigned jberger and unassigned jhthorsen Mar 20, 2024
@jberger
Copy link
Collaborator

jberger commented Apr 12, 2024

@jhthorsen using Crypt::Argon2 0.22 (which contains Leont/crypt-argon2#14) if we build with CRYPT_ARGON2_ARCH=NONE in the environment, it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants