Comments (9)
I believe the best solution is a script to check if the database exists with tables and if so then don't try to re-init everything.
from shlink-docker-image.
@BitForger both latest
and v1.15.1
are now being rebuilt with the fix applied. They should be ready in 30min-1hour (probably less, but docker hub is slow building images, so just in case).
from shlink-docker-image.
Yep, you are probably right.
The operations run in the entry point should be more granular, in order to avoid trying to recreate the database when it already exists.
I will try to provide a fix.
from shlink-docker-image.
Yep, you are probably right.
The operations run in the entry point should be more granular, in order to avoid trying to recreate the database when it already exists.
I will try to provide a fix.
I should note that it seems to be an issue because I'm using an RDS running MariaDB. I tried to replicate it locally and it seems fine starting up and stopping using the local SQLite implementation.
from shlink-docker-image.
Yes, the problem will happen only when using an external database, because when using the sqlite one, a new database is created every time you create a container, so it doesn't fail.
If you try to use an existing database with a new container, you will see the error.
from shlink-docker-image.
Yep, that's what I had in mind :)
from shlink-docker-image.
I'm writing something in PHP right now, I'll send it over when I'm done.
from shlink-docker-image.
I'm seeing another issue when trying to redeploy using my own copies.. if it happens in those builds i'll open another ticket.
from shlink-docker-image.
I have just checked that both builds have finished successfully. You should be able to pull both latest
and v1.15.1
with the new entry point.
from shlink-docker-image.
Related Issues (20)
- Update charset to match the one used now by shlink (base62)
- Ensure same charset and same secret are generated even if cached config is deleted
- Allow charset and keys to be provided so that they can be shared among multiple shlink containers which belong to a cluster
- Document considerations and workarounds to work with multiple shlink containers
- Allow to provide DB schema for postgres as an env var
- Make regular shlink logs to be sent to the stdout
- Disable config cache
- SQLite persistent storage HOT 3
- Do not try to download GeoLite db on entry point if Shlink version is 1.17 or older
- Remove from docs the recommendation of sharing GeoLite2 database
- Update docs using simplified config
- Change exposed Swool Port to 80 instead of 8080 HOT 2
- Enforce the swoole version installed in the image
- Document that the SHORTCODE_CHARS env var should be used with the value generated from website
- IP Locator / Referrer not working with docker + reverse proxy HOT 9
- Update entry-point to run new shlink db commands when available
- Updates in Dockerfile
- Document the need of a shared locking store (redis) in the multi-instance section
- Fix some logs being lost
- Check if APCu extension can be removed without loosing performance 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 shlink-docker-image.