[GH-ISSUE #406] fresh manual install seemingly does not read papermerge.conf.py #320

Closed
opened 2026-02-25 21:31:41 +03:00 by kerem · 1 comment
Owner

Originally created by @borisneubert on GitHub (Jul 27, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/406

Originally assigned to: @ciur on GitHub.

Description
I manually installed Papermerge with Apache as webserver. Papermerge runs. I changed papermerge.conf.py as follows:

DBDIR = "/data/DMS/papermerge/db/"
MEDIA_DIR = "/data/DMS/papermerge/media"
IMPORTER_DIR = "/data/DMS/import"
LANGUAGE_CODE = "de-DE"
#LANGUAGE_FROM_AGENT = True
STATIC_DIR = "/data/DMS/papermerge/static/"

The SQLite3 database is created in the right location but accessing Papermerge via the Web GUI throws an operational exception because the database was not found. Somewhere down the error page still the default location is mentioned:

DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/opt/papermerge/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}}
Also Papermerge still looks in the project root directory for the media directory. And the Web GUI is not in German language. Copying papermerge.conf.py to /etc did not help either.

I worked around the missing db.sqlite3 file and media directory by using symbolic links for the time being.

Expected
The values from papermerge.conf.py are used.

Info:

  • OS: Linux Debian Buster 10.10
  • Firefox
  • SQLite
  • Papermerge Version 2.0.1
Originally created by @borisneubert on GitHub (Jul 27, 2021). Original GitHub issue: https://github.com/ciur/papermerge/issues/406 Originally assigned to: @ciur on GitHub. **Description** I manually installed Papermerge with Apache as webserver. Papermerge runs. I changed `papermerge.conf.py` as follows: ``` DBDIR = "/data/DMS/papermerge/db/" MEDIA_DIR = "/data/DMS/papermerge/media" IMPORTER_DIR = "/data/DMS/import" LANGUAGE_CODE = "de-DE" #LANGUAGE_FROM_AGENT = True STATIC_DIR = "/data/DMS/papermerge/static/" ``` The SQLite3 database is created in the right location but accessing Papermerge via the Web GUI throws an operational exception because the database was not found. Somewhere down the error page still the default location is mentioned: `DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/opt/papermerge/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} ` Also Papermerge still looks in the project root directory for the `media` directory. And the Web GUI is not in German language. Copying `papermerge.conf.py` to `/etc` did not help either. I worked around the missing `db.sqlite3` file and `media` directory by using symbolic links for the time being. **Expected** The values from `papermerge.conf.py` are used. **Info:** - OS: Linux Debian Buster 10.10 - Firefox - SQLite - Papermerge Version 2.0.1
kerem 2026-02-25 21:31:41 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ciur commented on GitHub (May 8, 2025):

Not relevant anymore. Latest Papermerge version (3.5) loads all configurations from environment variables.

<!-- gh-comment-id:2861784633 --> @ciur commented on GitHub (May 8, 2025): Not relevant anymore. Latest Papermerge version (3.5) loads all configurations from environment variables.
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#320
No description provided.