[GH-ISSUE #17] Error when browsing to http://localhost:8000 #10

Closed
opened 2026-02-25 21:30:59 +03:00 by kerem · 4 comments
Owner

Originally created by @bg1000 on GitHub (May 20, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/17

Tried this on Ubuntu 20.04
Docker version 19.03.9, build 9d988398e7
docker-compose version 1.25.5, build 8a1c60f6
Setup using these instructions: https://papermerge.readthedocs.io/en/latest/installation/docker.html
Chose to pull from docker hub rather than build locally
The first error from docker-compose logs app is the following:

Internal Server Error: /admin/login/ papermerge_service | Traceback (most recent call last): papermerge_service | File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 86, in _execute papermerge_service | return self.cursor.execute(sql, params) papermerge_service | psycopg2.errors.UndefinedTable: relation "django_site" does not exist papermerge_service | LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si... papermerge_service |
http://localhost:8000 shows the following:

`Request Method: GET
http://192.168.1.2:8000/admin/login/?next=/admin/core/basetreenode/
3.0.2
ProgrammingError
relation "django_site" does not exist LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si... ^
/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py in _execute, line 86
/usr/bin/python3
3.7.5
['/opt/papermerge', '/opt/papermerge', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages']
Wed, 20 May 2020 13:41:13 +0000
`
^
Originally created by @bg1000 on GitHub (May 20, 2020). Original GitHub issue: https://github.com/ciur/papermerge/issues/17 Tried this on Ubuntu 20.04 Docker version 19.03.9, build 9d988398e7 docker-compose version 1.25.5, build 8a1c60f6 Setup using these instructions: https://papermerge.readthedocs.io/en/latest/installation/docker.html Chose to pull from docker hub rather than build locally The first error from `docker-compose logs app` is the following: `Internal Server Error: /admin/login/ papermerge_service | Traceback (most recent call last): papermerge_service | File "/usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py", line 86, in _execute papermerge_service | return self.cursor.execute(sql, params) papermerge_service | psycopg2.errors.UndefinedTable: relation "django_site" does not exist papermerge_service | LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si... papermerge_service | ` http://localhost:8000 shows the following: `Request Method: | GET -- | -- http://192.168.1.2:8000/admin/login/?next=/admin/core/basetreenode/ 3.0.2 ProgrammingError relation "django_site" does not exist LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si... ^ /usr/local/lib/python3.7/dist-packages/django/db/backends/utils.py in _execute, line 86 /usr/bin/python3 3.7.5 ['/opt/papermerge', '/opt/papermerge', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'] Wed, 20 May 2020 13:41:13 +0000 ` ^
kerem closed this issue 2026-02-25 21:30:59 +03:00
Author
Owner

@bg1000 commented on GitHub (May 20, 2020):

Built this locally and it runs without error.
The docs show the command for this as docker-compose up --build -f docker-compose-dev.yml -d
This does not work, alteast with the version of docker-compose I am running. This does work.
docker-compose -f docker-compose-dev.yml up --build -d

<!-- gh-comment-id:631635000 --> @bg1000 commented on GitHub (May 20, 2020): Built this locally and it runs without error. The docs show the command for this as `docker-compose up --build -f docker-compose-dev.yml -d` This does not work, alteast with the version of docker-compose I am running. This does work. `docker-compose -f docker-compose-dev.yml up --build -d`
Author
Owner

@ciur commented on GitHub (May 21, 2020):

Thank you for reporting this issue. I will need to remove all my local docker images and try to run it all anew from docker hub.

<!-- gh-comment-id:632270835 --> @ciur commented on GitHub (May 21, 2020): Thank you for reporting this issue. I will need to remove all my local docker images and try to run it all anew from docker hub.
Author
Owner

@bg1000 commented on GitHub (May 21, 2020):

No problem and thanks for sharing your work. I am going to close this now that you are aware.

<!-- gh-comment-id:632284238 --> @bg1000 commented on GitHub (May 21, 2020): No problem and thanks for sharing your work. I am going to close this now that you are aware.
Author
Owner

@ciur commented on GitHub (May 22, 2020):

First Issue: Pulling from Remote

I purged all my local docker images with command:

docker image ls -q | xargs -I {} docker image rm -f {}

Next, as per documentation:

cd papermerge-proj/docker
docker-compose up -d

And it worked: service is up and running (only 3 docker images which were downloaded few min ago.):

docker ➤ docker images                                                                                     git:master*
REPOSITORY                  TAG                 IMAGE ID            CREATED             SIZE
eugenci/papermerge          1.2.2               1ea8723afcb3        6 days ago          876MB
eugenci/papermerge-worker   1.2.x               d985bc8c87f7        2 weeks ago         682MB
postgres                    11.7                028e3a6bd9eb        4 weeks ago         283MB

Second Issue: about Wrong Docker Command

You are absolutely right. I corrected the documentation.

Thank you for taking time and opening the issue!

<!-- gh-comment-id:632792169 --> @ciur commented on GitHub (May 22, 2020): ### First Issue: Pulling from Remote I purged all my local docker images with [command](https://stackoverflow.com/questions/44785585/how-to-delete-all-docker-local-docker-images): ``` docker image ls -q | xargs -I {} docker image rm -f {} ``` Next, as per [documentation](https://papermerge.readthedocs.io/en/latest/installation/docker.html): ``` cd papermerge-proj/docker docker-compose up -d ``` And it worked: service is up and running (only 3 docker images which were downloaded few min ago.): ``` docker ➤ docker images git:master* REPOSITORY TAG IMAGE ID CREATED SIZE eugenci/papermerge 1.2.2 1ea8723afcb3 6 days ago 876MB eugenci/papermerge-worker 1.2.x d985bc8c87f7 2 weeks ago 682MB postgres 11.7 028e3a6bd9eb 4 weeks ago 283MB ``` ### Second Issue: about Wrong Docker Command You are absolutely right. I [corrected](https://github.com/ciur/papermerge/commit/403ce4c6d928dd595228c307f2842162656ec0df) the documentation. Thank you for taking time and opening the issue!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#10
No description provided.