-
Notifications
You must be signed in to change notification settings - Fork 33
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
error when using command pipenv run alembic upgrade head #58
Comments
Try running |
Thanks for the reply. Traceback (most recent call last): |
Make sure that you have Prometheus installed and working correctly. I have it running as a systemctl service and I'm able to confirm that Prometheus is active and running by issuing |
Thanks again for the reply. Prometheus is working correctly & running. I have a dashboard with Grafana running that is showing me the stats for my system. All that works fine. I can see Chia_monitor in targets but it shows as DOWN with error : Get "http://localhost:8000/metrics": context deadline exceeded |
any other suggestions? I've tried it a few times but can't get it to work |
Make sure that in your
Assuming that you do have the Chia daemons running (which are necessary for this monitoring program to work) from either the Chia GUI or command line farming, you can try |
I'd like to point out again that I really appreciate all your help! I've doubled checked and my prometheus.yml has indeed that config under scrape_configs. Chia daemons are running. I have chia CLI farming running. (Chia is started by running chia start all, I assume that started all needed daemons?) I've tried your command and got the following : So that also seems fine? after a fresh install I still get the following error when I try to run ~/chia-monitor$ pipenv run python -m monitor |
Okay, so I think I fully understand your problem now. The issue is with a port conflict on tcp port 8000. The chia_timelord has a clash with the chia-monitor app on port 8000. It's not necessary to run a Chia timelord though. My guess is that the timelord started when you ran the command |
I just got it to work, 2 mins before I saw your reply! So the timelord could be the issue then. I shall investigate further on that. I got to a post on stack overflow after looking for the error [Python [Errno 98] Address already in use] where someone suggest to kill the command on that port to test and and I got it working after that. At first I thought it might have been the chia monitor being stuck somewhere after the first install didn't work but now that I see that the chia timelord could be the issue that would make sense. I just shut everything down (needed to do some cleaning on the computer done) so I will restart the computer soon, use command chia start farmer instead of chia start all and see if the monitor comes up again. I'll update when I got to that but so far it looks good ! |
Update: Works like a charm! used the start monitor command after chia started and worked right away. |
Hello,
When I run the command
pipenv run alembic upgrade head
I get the following error:Traceback (most recent call last):
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/bin/alembic", line 5, in
from alembic.config import main
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/init.py", line 3, in
from . import context
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/context.py", line 1, in
from .runtime.environment import EnvironmentContext
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/runtime/environment.py", line 12, in
from .migration import MigrationContext
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/runtime/migration.py", line 27, in
from .. import ddl
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/ddl/init.py", line 1, in
from . import mssql
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/ddl/mssql.py", line 14, in
from .base import AddColumn
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/ddl/base.py", line 14, in
from ..util.sqla_compat import _columns_for_constraint # noqa
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/util/init.py", line 1, in
from .editor import open_in_editor
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/util/editor.py", line 11, in
from .compat import is_posix
File "/home/jorgen/.local/share/virtualenvs/chia-monitor-ou3YiYOO/lib/python3.8/site-packages/alembic/util/compat.py", line 33, in
import importlib_resources # type:ignore[no-redef] # noqa
ModuleNotFoundError: No module named 'importlib_resources'
The text was updated successfully, but these errors were encountered: