Closed lumascet closed 2 years ago
You're doing something 'different'... some weird docker setup? i dont know, you dont give me any real information
looking at the test..
$ docker run --rm -p "0.0.0.0:5000:5000" -v datastore-volume:/datastore --name changedetection.io ghcr.io/dgtlmoon/changedetection.io
Unable to find image 'ghcr.io/dgtlmoon/changedetection.io:latest' locally
latest: Pulling from dgtlmoon/changedetection.io
bd897bb914af: Pull complete
aee78d822213: Pull complete
6d9f6b5c1e71: Pull complete
cf9f290bd6be: Pull complete
60af64e17fa4: Pull complete
898d3935ffaa: Pull complete
1f5023406af6: Pull complete
a637067d78a5: Pull complete
1d0f961816f9: Pull complete
2c03aaf305db: Pull complete
Digest: sha256:83470314d9ffdd613426bd02eed26d97bd0dffc038b785541e1e05c1b1ef248d
Status: Downloaded newer image for ghcr.io/dgtlmoon/changedetection.io:latest
/usr/local/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.7) or chardet (2.3.0)/charset_normalizer (2.0.6) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
Creating JSON store at /datastore
Saving..
Saving..
Saving..
Saving..
Saving..
(1) wsgi starting up on http://0.0.0.0:5000
>> Change detected in UUID 335ffc90-82cf-4042-8c4e-b92469e67c14 - https://changedetection.io
>>> NO notifications queued, watch and global notification URLs were empty.
>> Change detected in UUID 915bfd34-0278-481b-a0d1-bbb39bee7dd6 - http://www.quotationspage.com/random.php
>>> NO notifications queued, watch and global notification URLs were empty.
>> Change detected in UUID 78950a1e-bf6c-4a6b-9f44-24c08fa558e7 - https://news.ycombinator.com/
>>> NO notifications queued, watch and global notification URLs were empty.
>> Change detected in UUID 27433c53-3a79-43be-91c7-2bf7a499369f - https://www.gov.uk/coronavirus
>>> NO notifications queued, watch and global notification URLs were empty.
Saving..
looks fine...
Windows? Apple? Commodore64? emulator? Gameboy?
btw, try the latest master
code here, maybe this commit helps https://github.com/dgtlmoon/changedetection.io/commit/ec94359f3caff48872d6e12ac21c076b92e73201
$ docker build . -t test
$ docker run --rm -v test:/datastore --name test test
Watching: 16ca2683-f276-46d3-80cf-d5ff51e2e06d http://www.quotationspage.com/random.php
Watching: b2b0cdd8-824c-4f18-807f-ac0f6de01ba4 https://news.ycombinator.com/
Watching: 0eb91804-bcc8-4980-8870-e1d4b480d617 https://www.gov.uk/coronavirus
Watching: 8cdd5c3a-cfdd-4fb4-aca0-4620ebb989a2 https://changedetection.io
Saving..
(1) wsgi starting up on http://0.0.0.0:5000
@lumascet does the above help?
@lumascet does the above help?
Thank you for your support!
Im running Debian Buster in a VM on a Proxmox Hypervisor. All packages are up to date.
Unfortunately, no the commit does not help. :( Still the same Error.
$ docker build . -t test
Sending build context to Docker daemon 903.2kB
Step 1/18 : FROM python:3.8-slim as builder
---> 32a5625aad35
Step 2/18 : ARG CRYPTOGRAPHY_DONT_BUILD_RUST=1
---> Using cache
---> 8ac8e8b0ebbd
Step 3/18 : RUN apt-get update && apt-get install -y --no-install-recommends libssl-dev libffi-dev gcc libc-dev libxslt-dev zlib1g-dev g++
---> Using cache
---> e45ea8efc6b7
Step 4/18 : RUN mkdir /install
---> Using cache
---> 4644d1e1bdff
Step 5/18 : WORKDIR /install
---> Using cache
---> 4cc45ae5c1a2
Step 6/18 : COPY requirements.txt /requirements.txt
---> Using cache
---> e868d9a9b372
Step 7/18 : RUN pip install --target=/dependencies -r /requirements.txt
---> Using cache
---> 2327b11ab496
Step 8/18 : FROM python:3.8-slim
---> 32a5625aad35
Step 9/18 : ARG CRYPTOGRAPHY_DONT_BUILD_RUST=1
---> Using cache
---> 8ac8e8b0ebbd
Step 10/18 : RUN apt-get update && apt-get install -y --no-install-recommends libssl-dev libffi-dev gcc libc-dev libxslt-dev zlib1g-dev g++
---> Using cache
---> e45ea8efc6b7
Step 11/18 : ENV PYTHONUNBUFFERED=1
---> Using cache
---> 9ceda5f8de74
Step 12/18 : RUN [ ! -d "/datastore" ] && mkdir /datastore
---> Using cache
---> 7653fb04a120
Step 13/18 : COPY --from=builder /dependencies /usr/local
---> Using cache
---> 6226931736cc
Step 14/18 : ENV PYTHONPATH=/usr/local
---> Using cache
---> 3a655a0a8f5d
Step 15/18 : COPY changedetectionio /app/changedetectionio
---> Using cache
---> 5ad3938bb956
Step 16/18 : COPY changedetection.py /app/changedetection.py
---> Using cache
---> 09bbad5ca86a
Step 17/18 : WORKDIR /app
---> Using cache
---> 8e8b3cdce7a4
Step 18/18 : CMD [ "python", "./changedetection.py" , "-d", "/datastore"]
---> Using cache
---> bb651e7ccd95
Successfully built bb651e7ccd95
Successfully tagged test:latest
$ docker run --rm -v test:/datastore --name test test
Traceback (most recent call last):
File "./changedetection.py", line 9, in <module>
import eventlet
File "/usr/local/eventlet/__init__.py", line 17, in <module>
from eventlet import convenience
File "/usr/local/eventlet/convenience.py", line 7, in <module>
from eventlet.green import socket
File "/usr/local/eventlet/green/socket.py", line 21, in <module>
from eventlet.support import greendns
File "/usr/local/eventlet/support/greendns.py", line 411, in <module>
resolver = ResolverProxy(hosts_resolver=HostsResolver())
File "/usr/local/eventlet/support/greendns.py", line 325, in __init__
self.clear()
File "/usr/local/eventlet/support/greendns.py", line 328, in clear
self._resolver = dns.resolver.Resolver(filename=self._filename)
File "/usr/local/dns/resolver.py", line 734, in __init__
self.read_resolv_conf(filename)
File "/usr/local/dns/resolver.py", line 806, in read_resolv_conf
self.search.append(dns.name.from_text(suffix))
File "/usr/local/dns/name.py", line 942, in from_text
raise EmptyLabel
dns.name.EmptyLabel: A DNS label is empty.
@lumascet " Debian Buster in a VM " what architecture?
@lumascet does this work for you too?
$ docker run --rm praqma/network-multitool ping -c 3 changedetection.io
$ docker run --rm praqma/network-multitool ping -c 3 changedetection.io
The directory /usr/share/nginx/html is not mounted.
Over-writing the default index.html file with some useful information.
PING changedetection.io (67.223.101.61) 56(84) bytes of data.
64 bytes from 61-101-223-67-static.prioritycolo.com (67.223.101.61): icmp_seq=1 ttl=48 time=226 ms
64 bytes from 61-101-223-67-static.prioritycolo.com (67.223.101.61): icmp_seq=2 ttl=48 time=125 ms
64 bytes from 61-101-223-67-static.prioritycolo.com (67.223.101.61): icmp_seq=3 ttl=48 time=121 ms
--- changedetection.io ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 120.585/157.253/226.450/48.958 ms
@dgtlmoon
x86_64 Architecture.
Yes, that container is working.
$ docker run --rm praqma/network-multitool ping -c 3 changedetection.io
The directory /usr/share/nginx/html is not mounted.
Over-writing the default index.html file with some useful information.
PING changedetection.io (67.223.101.61) 56(84) bytes of data.
64 bytes from 61-101-223-67-static.prioritycolo.com (67.223.101.61): icmp_seq=1 ttl=52 time=118 ms
64 bytes from 61-101-223-67-static.prioritycolo.com (67.223.101.61): icmp_seq=2 ttl=52 time=118 ms
64 bytes from 61-101-223-67-static.prioritycolo.com (67.223.101.61): icmp_seq=3 ttl=52 time=119 ms
--- changedetection.io ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 117.975/118.462/118.999/0.419 ms
I cant get the docker image to start, neither with the prebuilt docker images nor self built container.
This is my error log:
I also tried previous images from the docker hub but only was able to solve the RequestDependencyWarning. I guess the python dependencies are broken in the newest version because some requirements are not version freezed, but now i dont know how to solve the "A DNS label is empty" Error. Can you give me any hint?