question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker setup - missing step

See original GitHub issue

Hello,

I was trying to set up the WagTail Demo locally and using the specified commands did setup my environment. But it didn’t allow me to log in to the backend(authentication error) until I ran the below command.

docker-compose run app /venv/bin/python manage.py createsuperuser

Screen Shot 2022-10-14 at 9 46 31 AM Screen Shot 2022-10-14 at 9 48 33 AM

Can I create a pull request by changing the instruction?

Cheers V

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cmuc24commented, Nov 14, 2022

same, credentials from the docs are without any function

creating superuser solved it docker-compose run app /venv/bin/python manage.py createsuperuser

thanks @Big-Vi

1reaction
gasmancommented, Nov 20, 2022

I think the issue with the hosted demo site is different - since there’s a single database shared across all users, it’s easy for anyone to casually change the default login (and they may well even think it’s the right thing to do, because the password is “changeme” after all).

I’m not sure why the extra createsuperuser step would be necessary here, because the admin / changeme account is hard-coded in the fixture along with the rest of the site data - if that account was missing, then the rest of the demo data would be missing too. We’ve previously had issues with the Docker setup due to the fact that the webserver setup and the database setup happen in parallel, so it’s possible for the webserver to become available before the data is fully loaded - but again, if that was the problem here, you wouldn’t see the bakery homepage either at that point (only the default “Welcome to your new Wagtail site” splash page).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug: Docker build process appears to be missing steps #1224
Describe the bug when running docker-compose up --build, I get errors about missing tables. To Reproduce Steps to reproduce the behavior:.
Read more >
Docker Engine installation overview
Docker Engine installation overview. Docker Desktop for Linux. Docker Desktop helps you build, share, and run containers easily on Mac and Windows as...
Read more >
Install Docker Engine from binaries
Important. This page contains information on how to install Docker using binaries. These instructions are mostly suitable for testing purposes.
Read more >
How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >
Image-building best practices - Docker Documentation
Run the command docker scan --login , and then scan your images using docker scan <image-name> . For example, to scan the getting-started...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found