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.

Admin panel not accessible on Heroku

See original GitHub issue

How to reproduce the behaviour

I deployed doccano on Heroku using the 1-click heroku deployment here

It is explained in the FAQ how to create a user, however attempting to access the admin panel returns 500:

All 3 paths below return 500. https://mydeployment.herokuapp.com/admin/ https://mydeployment.herokuapp.com/admin/login https://mydeployment.herokuapp.com/admin/login/

image

https://mydeployment.herokuapp.com/admin returns this error: image

Here are heroku logs:

2022-05-04T12:01:27.284796+00:00 heroku[router]: at=info method=GET path="/admin" host=dep.herokuapp.com request_id=334e11d9-32c3-4a75-bad5-d85de0b9216f fwd="185.198.243.162" dyno=web.1 connect=0ms service=2ms status=200 bytes=2867 protocol=https
2022-05-04T12:01:32.991609+00:00 heroku[router]: at=info method=GET path="/admin/" host=dep.herokuapp.com request_id=6fa182fe-4a8a-4dc2-a160-ca9f8bc89e3a fwd="185.198.243.162" dyno=web.1 connect=3ms service=3ms status=302 bytes=454 protocol=https
2022-05-04T12:01:33.086642+00:00 heroku[router]: at=info method=GET path="/admin/login/?next=/admin/" host=dep.herokuapp.com request_id=adef48c1-0c09-463b-8234-6086fa12c396 fwd="185.198.243.162" dyno=web.1 connect=0ms service=40ms status=500 bytes=452 protocol=https
2022-05-04T12:15:05.020301+00:00 heroku[router]: at=info method=GET path="/admin/login/?next=/admin/" host=dep.herokuapp.com request_id=44abdb50-2dbf-46a1-999e-e633c7756232 fwd="185.198.243.158" dyno=web.1 connect=1ms service=32ms status=500 bytes=452 protocol=https

Your Environment

  • Operating System:
  • Python Version Used:
  • When you install doccano: 4 may 22
  • How did you install doccano: Heroku 1-click install button

The following issues: 1778 and 1447 seem to face the same problem, however no solution has been suggested as of yet.

I can provide any other information upon request. Any help would be greatly appreciated! @Hironsan

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jcy204commented, Jun 7, 2022

@fedi112 A temporary fix for me was the following:

  1. On Heroku, go to settings
  2. Add the Config Var “DEBUG” with the value set to “True”
  3. I was then able to access the admin pane, add users etc.
  4. Set the value to “False”
0reactions
Hironsancommented, Jul 14, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot access Django admin panel in a Heroku deployment
The FAQ describes how to create a user via the Django admin panel for a locally hosted Doccano. When run locally, I have...
Read more >
Cannot login to Admin panel after deploying Heroku
Go back to your admin's login page and enter the superuser's credentials again, you should be logged into the admin panel.
Read more >
[HEROKU] Unable to access wp-admin | WordPress.org
Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause....
Read more >
Why did I lose access to a Heroku Connect add-on?
The ability to view a connection in the Heroku Connect dashboard depends on the permissions that you have on the Heroku app that...
Read more >
View [admin.users.index] not found. in local it works for me, ...
View [admin.users.index] not found. in local it works for me, but in the server of heroku not ; <?php namespace App ; Http\Controllers...
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