Comments (3)
Also note that this upgrade would be using the same redis/mysql instance.
I was able to get the bootstrap to work on versions 0.57 and below, however the migrate function would not work with errors regarding MySQLdb:
File "/usr/local/lib/python3.6/site-packages/MySQLdb/__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/MySQLdb/connections.py", line 179, in __init__
super(Connection, self).__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to MySQL server on '127.0.0.1' (115)")
The 0.57 will run with some issues and the "service" page will give an internal error:
I don't really understand the bootstrap and migrate component of this. Are they absolutely necessary?
In my mind, this should be plug and play after pulling the docker image since I'm mounting a working configuration from ~/.config/promgen.
from promgen.
I don't have a lot of time to debug this right now, but here are a few quick thoughts.
docker-compose-bootstrap
is mostly just to have a simple docker-compose demo. Typically you wouldn't need to run that again for just an update.
docker-compose-bootstrap
basically runs until promgen check 2>/dev/null
in a loop, to check the database connection before continuing. I would check your database settings (Check DATABASE_URL
environment variable)
Upgrades should generally just be
- Pull and run new image
- Run
docker exec -it <container image> promgen migrate
to update database
from promgen.
Thanks for the response, @kfdm!
The command to update the database after the new image is pulled and run works flawlessly. I think the upgrade instructions should be added somewhere in the README.
I still have issues with the python3.9 versions (0.58+), but will submit another issue for that.
from promgen.
Related Issues (20)
- it can not work well HOT 3
- Add feature to allow slack notification to use proxy
- Docker-compose.yml TypeError HOT 1
- [QUESTION] Prometheus Parameter HOT 3
- docker-compose setup results in broken UI HOT 3
- Not work well
- [QUESTION] Promgen ALLOWED_HOSTS HOT 1
- Can I add a host with domain name? HOT 1
- How to configure farm hosts when my application deploy in k8s cluster? HOT 2
- Errors on worker HOT 1
- Change field type of url field HOT 1
- Prometheus rules seems not generating correctly. HOT 2
- [Question]How can I receive an alert message?
- arm64 or armhf version HOT 5
- Documentation is not updated since 2021
- Some page loading is slow (docker compose) HOT 2
- SECRET_KEY errors when running Promgen 0.59 and 0.60
- Table 'promgen_ruleannotation' is truncated after migrate command on 0.58.x
- Need new API for getting farm list
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 promgen.