Closed mschoettle closed 11 months ago
@mschoettle thanks for the report, could you please add this debug info..
python3
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.platform()
'Linux-6.2.0-34-generic-x86_64-with-glibc2.35'
>>>
>>> platform.system()
'Linux'
>>>
What do you get?
This may be related to https://github.com/dgtlmoon/changedetection.io/pull/1772
Here's the requested info:
python
Python 3.11.6 (main, Oct 11 2023, 22:42:26) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.platform()
'Linux-5.10.103-v7l+-armv7l-with-glibc2.31'
>>> platform.system()
'Linux'
@mschoettle sorry I forgot to ask, can you run that python output from inside the docker container changedetection-app-1
?
ahh I see https://www.debian.org/releases/bookworm/ Debian 12.2 was released on October 7th, 2023.
That was run in the container. I was in the process to also give you the output with the bookworm image but I see you already created a PR to switch to that variant 👍 Thanks!
docker run --rm -it python:3.11-slim-bookworm bash
root@57799a059155:/# apt-get update && apt-get install -y --no-install-recommends \
g++ \
gcc \
libc-dev \
libffi-dev \
libjpeg-dev \
libssl-dev \
libxslt-dev \
make \
zlib1g-dev
pip install jq
python
Python 3.11.6 (main, Oct 11 2023, 22:27:41) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.platform()
'Linux-5.10.103-v7l+-armv7l-with-glibc2.36'
>>> platform.system()
'Linux'
>>> import jq
>>>
I'de dearly love to find a way to execute some basic tests in some kind of arm architecture virtualmachine via github actions...
btw: does the watch you're editing include some filters? (jq, xpath, css etc?)
python:3.11-slim-bookworm AMD64 does not have libssl
but has libssl3
or similar
ARMv7 prefers libssl
> [linux/amd64 stage-1 2/8] RUN apt-get update && apt-get install -y --no-install-14.77 ...
E: Unable to locate package libssl
so which libssl do both ARMv6/7 and AMD64 have? :D https://github.com/dgtlmoon/changedetection.io/actions/runs/6696119882/job/18193184793
or do we need to switch the 'apt-get install libssl` depending on the architecture? or leave it out? i wonder
@mschoettle please, try this on master
and 1917-glibc-mistmatch-arm-upgrade-bookworm
in your rPi, master
should fail.. hopefully and the other pass
git clone https://github.com/dgtlmoon/changedetection.io.git
cd changedetection.io.git
git checkout (master or 1917...)
docker build . -t test-changedetectionio
docker run test-changedetectionio bash -c 'echo 127.0.0.1 localhost.localdomain >> /etc/hosts; cd changedetectionio && pytest tests/test_jsonpath_jq_selector.py'
docker build https://github.com/dgtlmoon/changedetection.io.git#1917-glibc-mistmatch-arm-upgrade-bookworm -t test-changedetectionio
docker build https://github.com/dgtlmoon/changedetection.io.git#1917-glibc-mistmatch-arm-upgrade-bookworm -t test-changedetectionio
that is truly amazing! cool!
btw: does the watch you're editing include some filters? (jq, xpath, css etc?)
No.
@Constantin1489 Thanks for that neat trick!
@dgtlmoon I can confirm that 917-glibc-mistmatch-arm-upgrade-bookwor
works. And that it fails on master
.
@mschoettle this tag image should solve it, can you verify once more for me? https://hub.docker.com/layers/dgtlmoon/changedetection.io/dev/images/sha256-efff743e8d0de249bf4af201c985cbe9b7715a616545bb64f18913391c9fb309?context=explore
I can confirm that dgtlmoon/changedetection.io:dev
works on Raspberry Pi. Thanks again!
Describe the bug
When clicking "edit" on the home screen to edit a specific change detection watch an internal server error (500) is shown.
Version 0.45.5
Self-hosted on Raspberry Pi 4 as a container
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Open the edit page for the watch
Additional context
Logs:
Happens on import of
jq
:Potential solution:
With the
-bookworm
variant of the Python image the correct glibc version is used and importingjq
works without problems.