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

Server error 500 #3774

Open
jamess60 opened this issue Jun 2, 2023 · 4 comments
Open

Server error 500 #3774

jamess60 opened this issue Jun 2, 2023 · 4 comments

Comments

@jamess60
Copy link

jamess60 commented Jun 2, 2023

Steps to reproduce

Using demo:

  1. Open demo
  2. attempt to log in

Using container

  1. git clone
  2. docker compose up -d the docker file
  3. attempt to log in

Expected behavior

I can log in and play with ralph

Actual behavior

I get an internal server error 500

Environment

macOS 13.4, Firefox (latest) , Docker (4.20), Ralph (latest)

@haiya512
Copy link

haiya512 commented Jul 3, 2023

same as the demo env

@mah-jp
Copy link

mah-jp commented Jul 5, 2023

The procedure described below seems to successfully start Ralph in a docker environment.

git clone https://github.com/allegro/ralph.git
cd ralph/docker
cp -a docker-compose.yml{,.original}
vim docker-compose.yml                        # Edit the value "80:80" to "8080:80" in nginx section if you wish

##docker compose build                        # This line does not need to be executed
##docker compose run --rm web /root/init.sh   # This line does not need to be executed
##docker compose run --rm web ralph demodata  # This line does not need to be executed
docker compose up -d

docker exec -it --user root docker-web-1 /bin/bash
/var/local/ralph/docker-entrypoint.sh init    # Initializing database
/opt/ralph/ralph-core/bin/ralph demodata      # Optional step for demodata
exit

open http://0.0.0.0:8080/                     # ralph:ralph -> OK

@EBII
Copy link

EBII commented Aug 23, 2023

You can exec in the web_1 container after the first docker-compose up.
docker exec -it -u root web_1 bash (or an other way)
in the shell you are in django env..
You can use ralphctl like ./manage.py in django !

so
ralphctl migrate will make you db from ralph models..
ralphctl createsuperuser to create the first user
so yo can also use demo data
then refresh url

@jamess60
Copy link
Author

Given the official first party hosted demo site was also down at the same time and exhibited the same behavior, surely this issue is somehow related?

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

No branches or pull requests

4 participants