Comments (21)
@nmarjanovic I cannot find how to create the db from scratch. The env varibale POPULATE_DATABASE seems not working because the db is still empty.
Any other things to try?
from docker.
Hello @njordr !
an existing database
What was your previous wallabag version please?
from docker.
Well, I don't remember, but the issue happens also with a fresh installation on an empty database
from docker.
We test it with a fresh db on every commit.
So we need more informations. Config and env variables.
from docker.
Attached all the parameters used to start it
Let me know if you need anything else
from docker.
Did you completely removed and recreated the container?
from docker.
Yep, also the database
from docker.
Hi @njordr,
Pls check my answer for docker users, maybe will help in your case https://gist.github.com/nicosomb/7c537995f2b845a30b4d6cdf23c1e22c
from docker.
@nmarjanovic I tried the first command, this is the result:
/var/www/wallabag # php bin/console doctrine:migration:execute 20161024212538 -e
=prod
WARNING! You are about to execute a database migration that could result in sche
ma changes and data lost. Are you sure you wish to continue? (y/n)y
++ migrating 20161024212538
Migration 20161024212538 failed during Execution. Error There is no table with n
ame '/var/www/wallabag/app/..wallabag_oauth2_clients' in the schema.
[Doctrine\DBAL\Schema\SchemaException]
There is no table with name '/var/www/wallabag/app/..wallabag_oauth2_client
s' in the schema.
I can confirm the database is empty. Is there a way to create it from command line?
from docker.
There's a path issue here.
from docker.
@njordr If you are using mysql and not sqlite my solution is not going to help you much, but you can check wallabag/wallabag#2795 how to do same with mysql, and to create db is easy, check https://github.com/wallabag/docker for all information, you can create mysql db and then connect container to it or you can run mysql container and link with wallabag, but think to make data volume on your server if you don't want to lose data etc.. And yep, like @tcitworld said you need to check all path[s].
from docker.
I have no idea. I can't reproduce it at all.
from docker.
@njordr Just check https://github.com/wallabag/docker#mariadb--mysql, that is all
from docker.
already done, no luck
from docker.
did you have any volumes for the db set?
from docker.
yep, /var/lib/mysql
from docker.
I found the issue, it doesn't resolve db address
I made a test:
docker run -ti --link r-Databases-mysql-1-1d2b4df6:wallabag-db --network baf17c84fa3d wallabag/wallabag
And in another console:
12:44 [root@arkham:docker] # docker exec -ti admiring_bell sh
/ # telnet wallabag-db 3306
telnet: bad address 'wallabag-db'
/ #
Any bell ringing?
from docker.
DNS is not the issue, the container doesn't have an ip:
12:52 [root@arkham:~] # docker inspect admiring_bell | grep IPAddress
"SecondaryIPAddresses": null,
"IPAddress": "",
"IPAddress": "",
"IPAddress": "",
from docker.
Is your network correctly defined ? How did you create it ?
docker network inspect baf17c84fa3d
from docker.
Seems fine to me, also because it's used by other containers without problems
[
{
"Name": "none",
"Id": "baf17c84fa3da1ac3e1942110458935a6cb5a56aa73b5aec37dc0b2740f88ce8",
"Created": "2017-05-02T18:38:11.762364274Z",
"Scope": "local",
"Driver": "null",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": []
},
"Internal": false,
"Attachable": false,
"Containers": {
"00f73d4f1d01e514dd875bd9d17a7253c6f5fda1d433b0041a82c3248ef03e4c": {
"Name": "r-WebServers-project-1-dc311c7b",
"EndpointID": "9f5a65ec2f49aa79376ab2ea6bcb81cc0a2766b7cb99036d46ff7805864a291b",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"04280efc5312d008b28a7aae696e631ba14e8df884887e2d2b968fd120f17d67": {
"Name": "r-healthcheck-healthcheck-1-51c13c97",
"EndpointID": "76eeeb0af043288ffb077edece718be86e2b4f89180097d9c1ea62aa5fbd26f4",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"054fd2765b5a8949d6a37683acbc171322117b551763440813091890739f3e72": {
"Name": "r-Databases-postgres-1-eed49799",
"EndpointID": "8bf3cef3722a4d2ef4bd377c061068353cde037e1c64da49148d82d8c0dfef11",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"224b3d443228913297e116d12a3284263a8561257d52155c40b9dabcdd35d23b": {
"Name": "r-Databases-mysql-1-1d2b4df6",
"EndpointID": "41f2f5e6160393d155c2121ab40558d7db18a684a5bdbeca3ca389d73eeea6be",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"245415537eb20c030755c9921e59b64d30534071be1698176c56b66ff5246675": {
"Name": "r-scheduler-scheduler-1-5b306f47",
"EndpointID": "ed0b34af4df7d75f4de713f28b490f1f6250b6261de759d3d15f784a404e8fbf",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"36a6a8a9eab13d021d836b681cb95b087057e042189b2c79af6394163c3bce07": {
"Name": "r-WebServers-lb-websites-1-ad88315d",
"EndpointID": "486e550e186c52c2238196b9e4b1db4b90c24b17018f5846e4da7b0f1d5a939a",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"42818257b7d31006efa85a493663952988ba53a9909b111fbde073bb815a5c78": {
"Name": "r-Letsencrypt-letsencrypt-1-c92c2d39",
"EndpointID": "c7a0a634731e8bfda362a7eff04419720d37c5e93eb07a2a5150463384c2fd8c",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"79435bf7299f6c0774ecf2270a1b0a08c3384606070f2b0ab962f2d73df15f5b": {
"Name": "r-Utilities-registry-1-8cecae4f",
"EndpointID": "45ef7dd70b5d00e6711b144aa018ba6538581353d013a0994bc708cdd47cc063",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"8f9622c540b8a60ca4e70ff4b6f4e73293e5b6e6fbb34832200365f170694d49": {
"Name": "r-WebServers-apache-1-64e9f38c",
"EndpointID": "9e3862fdb960264c88dd005152acf890909d458c7419917eccf333822676fe47",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"ae8f183eb0afe808cdd328c59150bf5faad22c153a038a667467c1417fb94457": {
"Name": "r-WebServers-wallabag-1-2eb5ad8d",
"EndpointID": "6c63e51d377d3e8ac665ffdbe5dd0dc70af994a6a0aadbeb2bc220de9a68cdc2",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"b3ba4842be0cb644fca04971d429fd75d0010fb5897e2c6837a16df9d89b46f9": {
"Name": "r-Databases-redis-1-37432146",
"EndpointID": "71bdd6f7ead5629caa17ef5ae409193812082148390f62ed5094eb764333eb3f",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"caeec02b7bf58740ee0df33c6b291370f4eadf88145b757635a60d0b3cb3f25c": {
"Name": "r-Utilities-postfix-1-ef17ce59",
"EndpointID": "b9b3504ce15ce9fe17b076684974e12122364d722c5b85cc7d38cf35861a86ee",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"da558e0be4643c09c06ca71a8a32d97cef25eca142cce355defeab2afed8306e": {
"Name": "admiring_bell",
"EndpointID": "438568f26a4ed2c5be606838f962a46bea55f855c625f9cd0d4a2b59fdb6d76f",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"dcda0b2e1ec5a9674c26bae688c7b1568efd2535e2cee177a812ec71896bc863": {
"Name": "r-WebServers-php7-fpm-1-5900a429",
"EndpointID": "40edad591664b63114752722972e9fdd4c1cfe750cbe0336d2cd92979458b575",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"e3f1acb0e76962216c4e907a35fd4c64d9f1ff0443d5f3470864507355357411": {
"Name": "r-Utilities-iredmail-1-1c4251d4",
"EndpointID": "5ec34efe316c83689cdaac862265b691ecb9a9047c732072cccc9772d777ab59",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"ed8a65293484bb483e81f1039c07da3aff637c58121a034ea388911a87ba6f5e": {
"Name": "r-Utilities-gogs-1-beeabfc7",
"EndpointID": "876d7ea62bc3bab6ac94a8951ab803ef5cea71fa9eaff581d295f39b697a503c",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"fa0dbed1a0037d3155e4db3e0f50de628cd361d00fde6a151d04d19269f38932": {
"Name": "r-WebServers-paperwork-1-cf394e8e",
"EndpointID": "e83d2e8765d82e1f4a69b428e51704f9ed193a4c275e328d4d9f093047386464",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
},
"fe76f404d785155fc0854e0aa76e1150483603e7b9197752ec95b114a28e6c2e": {
"Name": "r-ipsec-ipsec-1-456514d3",
"EndpointID": "88ce3d4fab37f2b40aba7c6b0daddf0d6f6b95adb5606583d95a09256b37bdff",
"MacAddress": "",
"IPv4Address": "",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
]
It was created by rancher
from docker.
Seems to happens also with other docker images, so i can close this issue, is not related to wallabag
Thanks anyway
from docker.
Related Issues (20)
- Wallabag Installation not displaying in browser HOT 4
- Error when configuring the mysql database HOT 1
- mailer_dsn urlencoding does not work - % gets pick up as another parameter HOT 1
- Error nginx 2.6.8 HOT 2
- Error 500 while trying to create a new user HOT 6
- deploy with fly.io get Invalid CSRF token error HOT 2
- Can't run migration, DebugBundle not found HOT 2
- The server returned a "500 Internal Server Error". HOT 1
- IPv6 healthcheck fails HOT 1
- Empty images volume mount and download local images setting HOT 2
- Wallabag lost all data HOT 2
- How to add custom graby-site-config to Wallabag docker version?
- Error 500 by fresh installation (Docker/Postgres) HOT 2
- start container in read-only with bind volumes: `php-wallabag.template.ini` is missing HOT 2
- Wallabag crude pages, style problem(?), using Portainer HOT 1
- Error when migrating mariadb database during the latest upgrade to 2.6.9
- Another image download issue
- Unable to use database_socket in docker
- Chrome import with/without Redis
- Unable to start Wallabag - Fresh install w/ sqlite HOT 3
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 docker.