-
Notifications
You must be signed in to change notification settings - Fork 157
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
Installation failling with postgresql driver #78
Comments
It's working with mariadb so it seems that's a postgresql related issue. |
Could you please tell us:
Please we need more detail. |
can you try it with a own "fresh" postgres container? |
@j0k3r Sorry I thought all needed informations were in my docker-compose.yml file. I use the latest wallabag's version provided by the wallabag/wallabag:latest image. The only command I used is My postgres's docker-compose.yml file :
I use postgres-9.6 as provided by postgres image. @xsteadfastx I will try that, nonetheless the only thing there is on my postgres container is a nextcloud database with a nextcloud user. Thank you for your answers :-) |
Ok so I tried with a fresh postgres container. My complete docker-compose.yml with postgres and wallabag : version: '3'
services:
postgres-dev:
container_name: postgres-dev
image: postgres:9.6-alpine
restart: always
# Décommenter uniquement si vous avez besoin d'accéder à postgresql en dehors du réseau postgres (depuis une autre machine).
# ports:
# - "5432:5432"
volumes:
- postgres-dev-data:/var/lib/postgresql/data
networks:
- postgres-dev
environment:
# Mot de passe du compte superutilisateur postgresql
- POSTGRES_PASSWORD=test
wallabag-dev:
container_name: wallabag-dev
image: wallabag/wallabag:latest
restart: always
volumes:
- wallabag-dev-images:/var/www/wallabag/web/assets/images
networks:
- nginx-proxy
- postgres-dev
depends_on:
- postgres-dev
environment:
# L'utilisateur postgres super-utilisateur
- POSTGRES_USER=postgres
# Le mot de passe de l'utilisateur postgres super-utilisateur
- POSTGRES_PASSWORD=test
# Le pilote utilisé par symfony
- SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql
# L'hôte du conteneur postgresql
- SYMFONY__ENV__DATABASE_HOST=postgres
# Le port
- SYMFONY__ENV__DATABASE_PORT=5432
# Le nom de la base qui sera créée
- SYMFONY__ENV__DATABASE_NAME=wallabag
# L'utilisateur de la base qui sera créé
- SYMFONY__ENV__DATABASE_USER=wallabag"
# Le mot de passe de l'utilisateur qui sera créé
- SYMFONY__ENV__DATABASE_PASSWORD=test
- VIRTUAL_HOST=wallabag.dev.xxx.fr
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
# Autoriser l'enregistrement des utilisateurs
- SYMFONY__ENV__FOSUSER_REGISTRATION=false
volumes:
wallabag-dev-images:
external: true
postgres-dev-data:
external: true
networks:
nginx-proxy:
external: true
postgres-dev:
external: true Same result, just used the command
My wallabag-dev log after accessing to wallabag.dev.xxx.fr :
Thank you |
i dont know if this is a docker related error. i have no insight in the database stuff. we test every update with a fresh image and container of all databases without any problems. |
I use Postgres without any issue for a long time now. If it may help:
|
@nsteinmetz I copy and pasted your docker-compose file, got it up with |
To create user & database and tables, you can use the I don't remember how I created the wallabag database as it was a long time ago. |
@cescobarf this is so strange cause we test db creation on travis and it works for all db alternatives. uses it a fresh postgres container without anything? |
@cescobarf Hello. Could you try the last release of our image? |
@nicosomb Hi, I tried to install the new version from scratch with an empty database, and running
|
I'm seeing the same error. I'm deploying into a docker swarm, the compose file I use is below. It worked fine with the
|
OK. @cescobarf @insertjokehere could you please try this query wallabag/wallabag#3480 (comment) before? |
Hi nico, Same problem here.
Install fail with a fresh setup |
I confirm this with wallabag During database creation I get:
|
@yverry @ovv Related to wallabag/wallabag#3488 I don't know this docker image much, would do it ? -e SYMFONY__ENV__DATABASE_DRIVER_CLASS="Wallabag\CoreBundle\Doctrine\DBAL\Driver\CustomPostgreSQLDriver" |
There is a bug doctrine/dbal#2868 with sequences in the PostgreSQL 10. |
Fix here: #107 |
I'm having a similar issue, using postgres 11. Do pg11 & pg12 need more fixes? |
Please create a different issue with log etc. instead. |
Hello,
I created a wallabag container associated to a postgresql container and it's not working.
I have that output in my logs :
Don't know if it's really related to postgresql or not, so I will try with mariadb driver and keep you informed.
My docker-compose.yml :
The text was updated successfully, but these errors were encountered: