Cannot log in using the default credentials
See original GitHub issueTrying to run on Ubuntu 18.04 LTS. After cloning c31dd82c31f38f0398b2699d3303b4d676201106 and modifying the docker-compose.dev.yml file to contain the following lines instead of the originals:
version: "3"
[...]
ports:
- 8999:3000
I am running
sudo docker-compose -f docker-compose.mydev.yml up
and after a while I can browse to localhost:8999
When I click “SIGN IN” button I get the sign in dialog. When I then enter the credentials admin/password I get the error that they are incorrect and I cannot log in.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Cannot log in using the default admin credentials
Hi, I recently purchased a TP-WPA7617KIT but I can't log into the web interface, using the iOS app or through the tpPLC on...
Read more >Unable to login with Default Credentials with NEW Installation
I can see via SSH and via a browser. However; I am unable to login with the default nsroot or nsrecover. Doesn't matter...
Read more >Unable to Login with Default Password - Ubiquiti Community
I bought new UniFi and each time I launch the UniFi controller to login with ubnt/ubnt, it says "Invalid Username/Password.
Read more >Allowing the Default Password to Be Used When Logging In ...
Press (Settings/Registration). Press [Management Settings] → [Security Settings] → [Authentication/Password Settings] → [Password Settings]. Press [Allow Use ...
Read more >Can not login with default username and password
Re: Can not login with default username and password (from sticker) in iLO4 ... You can log in to iLO configuration utility by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried this using
CORS_ORIGIN_ALLOW_ALL
and I was now able to log into doccano after running it with docker-compose.However, I still do not understand how to create more users: within doccano existing users are needed, but the url http://localhost:8999/admin is not found (I used this in the docker version to create new users). It shows a screen with the message “Whoops, 404” and this screen also shows the “SIGN IN” button on the upper right even though I already was logged in in that browser session in a different tab!
I also noticed that interacting with doccano after that 404 screen was shown started to become very slow and unresponsive, not sure if this is related.
This is caused by the CORS policy. When we use
docker-compose.dev.yml
, it mainly run two servers: frontend and backend API. When we submit username and password in the frontend, it is processed in the backend API. In other words, the two servers are communicating. At that time, the backend API restricts cross-origin HTTP requests for security reasons. In the initial settings, the backend allows only port3000
. That’s why you could not login.If you want to use ports other than
3000
, you need to add127.0.0.1:8999
toCORS_ORIGIN_WHITELIST
:https://github.com/doccano/doccano/blob/c31dd82c31f38f0398b2699d3303b4d676201106/app/app/settings.py#L314-L318
Or, you can use
CORS_ORIGIN_ALLOW_ALL=True
to allow any access.