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

Login found——Error: Request failed with status code 500 #713

Closed
zhanwen opened this issue Apr 24, 2020 · 17 comments · Fixed by #1161
Closed

Login found——Error: Request failed with status code 500 #713

zhanwen opened this issue Apr 24, 2020 · 17 comments · Fixed by #1161
Labels
bug Something isn't working

Comments

@zhanwen
Copy link

zhanwen commented Apr 24, 2020

step1:
run: docker-compose -f docker-compose.prod.yml up
image

step2: login
username:admin
password:password
image

then remind me status code 500.
image

terminate response.
image

Then can create dataset and operate other. but can't annotation, i see Home->step5. annotate the dataset, but now i try annotate found not operate.
image

@icoxfog417 icoxfog417 added the question Further information is requested label Apr 24, 2020
@icoxfog417
Copy link
Contributor

Please provide your environment information following to the ISSUE_TEMPLATE.

@greenspray9
Copy link

I also have the same issue

@greenspray9
Copy link

Steps to reproduce :

Login as admin -> Create project -> Logout -> Try to login as admin -> Pop up with status 500

I am running this code in Ubuntu via docker-compose -f docker-compose.dev.yml up

@Hironsan
Copy link
Member

It's a lack of information. Please show me network request/response by using chrome/safari developer tools.

@zephyrous
Copy link

zephyrous commented May 2, 2020

I face similar issues. I was logged in as admin. I reset my password and created three users with their own passowrds. Then I created a project, and logged out. Finally I logged in as one of the users, but I got the status 500 popup:

Request Method: GET
Status Code: 500 Internal Server Error

Then I try to create a project and I receive a 403 error:

HTTP 403 Forbidden
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "detail": "Authentication credentials were not provided."
}

Operating System: Ubuntu 18.04
Python Version Used: 3.6
When you install doccano: May 1
How did you install doccano (Heroku button etc): Deployed to Digital Ocean droplet with docker-compose -f docker-compose.prod.yml up

EDIT: I don't get the error when I use Safari, but Firefox seems to have issues (?).

@zhanwen
Copy link
Author

zhanwen commented May 3, 2020

@zephyrous @greenspray9 hello, I have solved it. shows step.

need docker-compose command

sudo apt install docker-compose

doccano images download:

sudo docker pull chakkiworks/doccano

then exec,:

sudo docker run -d --rm --name doccano \ -e "ADMIN_USERNAME=admin" \ -e "ADMIN_EMAIL=admin@example.com" \ -e "ADMIN_PASSWORD=password" \ -p 8000:8000 chakkiworks/doccano

--rm exit delete images, note: data save

chrome or safari input:

http://127.0.0.1:8000/login/
username:admin , password:password`

@zephyrous
Copy link

@zhanwen I was probably missing the --rm step. Will check, thanks!

@cmehak
Copy link

cmehak commented Jul 21, 2020

I am also facing same error, how to solve this issue as i am unable to annotate.I have windows OS and have docker running but error is coming : request failed with status code 500???
Please help

@Hironsan Hironsan reopened this Jul 21, 2020
@zhanwen
Copy link
Author

zhanwen commented Jul 21, 2020

@cmehak please see: my above comment. windows 10 can use windowspower shell execute command.

@look4regev
Copy link

We are also facing the same issue, ran docker-compose -f docker-compose.prod.yml up -d on a Centos 7. No logs from the backend indicating on any issue. Perhaps it can be run with a debug mode to be able to trace the exception?

@pyxis777
Copy link

pyxis777 commented Sep 22, 2020

I am having the same problem as zhanwen and zephyrous Using Ubuntu 18.04, I get 500 error when I use Firefox, Chrome
Python Version 3.7.8
When you install doccano: September 22, 2020
Commit: 6d5bff4
How did you install doccano (Heroku button etc): docker-compose -f docker-compose.prod.yml up

When I checkout commit: 4ebc32c I do not get any browser errors.

@MKatereggaExigent
Copy link

MKatereggaExigent commented Sep 25, 2020

Was this issue fully resolved. I am running Debian 10 server and I installed doccano using: docker-compose -f docker-compose.prod.yml up . The login page loads fine and I can successfully login with admin and password. However, the 500 error still pops up. I have tried everything suggested above.

@mlussati
Copy link

I'm having the same problem can someone help me solve please? I receive status error 500 with the administrator user

@icoxfog417
Copy link
Contributor

Please try to logout from the admin site after you change the password.

https://github.com/doccano/doccano/blob/master/docs/faq.md#i-want-to-change-users-or-admins-password

@icoxfog417 icoxfog417 mentioned this issue Nov 1, 2020
@Hironsan Hironsan added bug Something isn't working and removed question Further information is requested labels Nov 27, 2020
@martinezhermes
Copy link

martinezhermes commented Jan 13, 2021

Are there any users of this web app that have made it possible to run docker-compose as of 2021 without this error? I am talking latest commit, no fork, no different version, docker-compose as of 2021. How do you make this work?

clean computer, clean everything, IT DOES NOT WORK, error 500.

@Hironsan
Copy link
Member

Hironsan commented Jan 14, 2021

I found the difference between 500 errors and no errors. When we meet the 500 error, The Allow header in the response is empty. If we replace DEBUG: False with DEBUG: True in docker-compose.prod.yml, the header won't be empty. But it's not a good solution for a production environment.

@Hironsan
Copy link
Member

I found the cause. We need to remove image property from Project models and serializers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.