Comments (11)
i will deploy both stacks and send you the log seperatly in 5 min
from papermerge.
Can you please attach full webapp's docker log ?
Issue may be related (or even the same?) to Issue#579. In case it is same problem - well, I am currently working on it!
from papermerge.
only Web App + Worker
from papermerge.
PostgreSQL compose
_papermerge-web-1_logs (1).txt
from papermerge.
In case of last logs there is an error:
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "core_user" does not exist
LINE 2: FROM core_user
^
Which means that in your case tables were not created. Could you check if db postgresql://scott:tiger@db:5432/mydatabase
is accessible (i.e. you can connect to it) and it has some tables in it (e.g. core_use
) ?
It is interesting, because I literally just copy paste this docker compose:
version: "3.9"
x-backend: &common
image: papermerge/papermerge:3.0.1
environment:
PAPERMERGE__SECURITY__SECRET_KEY: 12345
PAPERMERGE__AUTH__USERNAME: john
PAPERMERGE__AUTH__PASSWORD: hohoho
PAPERMERGE__DATABASE__URL: postgresql://scott:tiger@db:5432/mydatabase
PAPERMERGE__REDIS__URL: redis://redis:6379/0
volumes:
- index_db:/core_app/index_db
- media:/core_app/media
services:
web:
<<: *common
ports:
- "12000:80"
depends_on:
- redis
- db
worker:
<<: *common
command: worker
redis:
image: redis:6
db:
image: bitnami/postgresql:14.4.0
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: scott
POSTGRES_PASSWORD: tiger
POSTGRES_DB: mydatabase
volumes:
postgres_data:
index_db:
media:
And then docker compose up
just works (means db is created, I can authenticate with username john).
from papermerge.
could you quickly tell me how i could test it.
here is the log from db
_papermerge-db-1_logs.txt
from papermerge.
I found the problem. The problem is that docker compose's "depends_on" waits only for the container to start, but not the service inside it; in other words "db" container may be up, while actual initialization of the postgres/mysql database is not yet ready!
I will fix that part. Thank you again for reporting the problem!
from papermerge.
@tobasium
I've published 3.0.2.
Also in documentation I've updated docker-compose examples to include healthcheck key - which ensures that webapp/workers will start only after database process (not just db container) is up and running. Please use update docker compose examples.
from papermerge.
Hi, tested, and found new error: MySQL / MariaDB compose
_papermerge-web-1_logs.txt
from papermerge.
Hi tested, Solr compose works. so that i can login into pm but solr container exits after start with following error:
Cannot write to /var/solr as 8983:8983
drwxr-xr-x 2 root root 2 Jan 21 17:02 /var/solr
Cannot write to /var/solr as 8983:8983
drwxr-xr-x 2 root root 2 Jan 21 17:02 /var/solr
from papermerge.
I am closing the ticket as original issue was solved (original issue was that app started before db service was up, which caused "core_user table not found exception" - fixed in 3.0.2).
from papermerge.
Related Issues (20)
- Ship 7 OCR languages data in docker image HOT 2
- OCR saying "unsupported format" for PDF and JPG file HOT 11
- poor OCR detection, optimizations with 'jbig2' or 'pngquant' possible? HOT 3
- Sorting files/folders error HOT 1
- does not attach tags HOT 3
- Sorting subfolders HOT 2
- papermerge-cli import option --delete without any function HOT 1
- Generated api token not valid after some hours HOT 4
- inbox Loop HOT 1
- Registered user other than admin cannot log in HOT 2
- Suggested page management features HOT 2
- Access management HOT 1
- Exclude document from OCR HOT 3
- [UI] Visually See Node UUID
- Group-menu not visible HOT 4
- [UI] Thumnails too Small
- When can the Chinese be added as default OCR language?
- Feature Request: OCR support for digitally signed dcouments. HOT 3
- Pinning a tag does not work HOT 1
- Opening Home in dual panel mode not working in Inbox HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papermerge.