Der-Henning / tgtg

Scanner for Too Good To Go Notifications
https://github.com/Der-Henning/tgtg/wiki
GNU General Public License v3.0
415 stars 68 forks source link

Latest version not working on my Raspberry 2B+ #558

Open lukemt opened 4 days ago

lukemt commented 4 days ago

I just upgraded to the latest version using docker on my Raspberry 2B+ and it does not work anymore. It prints: Segmentation fault

Log output:

pi@raspberrypi:~/projects/tgtg $ docker compose up --force-recreate
WARN[0000] /home/pi/projects/tgtg/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 15/15
 ✔ scanner Pulled                                                                                                                 420.3s 
   ✔ 655a25168115 Pull complete                                                                                                    41.5s 
   ✔ 9b9be0ab417d Pull complete                                                                                                    64.0s 
   ✔ f00f9beb254e Pull complete                                                                                                   224.3s 
   ✔ 90294d5f81f6 Pull complete                                                                                                   229.2s 
   ✔ 82ff1bc6b73a Pull complete                                                                                                   232.5s 
   ✔ 0cf3d3e23185 Pull complete                                                                                                   234.1s 
   ✔ 9d031c3ba913 Pull complete                                                                                                   234.5s 
   ✔ c8991df6588e Pull complete                                                                                                   235.2s 
   ✔ 546191cb9ece Pull complete                                                                                                   235.8s 
   ✔ b73b1f4532e6 Pull complete                                                                                                   242.5s 
   ✔ 9d5d0aba90ac Pull complete                                                                                                   413.1s 
   ✔ 71ce3d068e23 Pull complete                                                                                                   414.8s 
   ✔ b64b8b7d7c29 Pull complete                                                                                                   415.4s 
   ✔ 4f4fb700ef54 Pull complete                                                                                                   415.7s 
[+] Running 2/2
 ✔ Network tgtg_default      Created                                                                                                1.8s 
 ✔ Container tgtg-scanner-1  Created                                                                                               12.1s 
Attaching to scanner-1
scanner-1  | Updating UID and GID to 1000:1000
scanner-1  | usermod: no changes
scanner-1  | Segmentation fault
scanner-1 exited with code 139
pi@raspberrypi:~/projects/tgtg $ 

I tried several times and re-downloaded everything.

As for comparison I tried the new version on my intel macbook and there it did work with no issues.

Der-Henning commented 4 days ago

Hi @lukemt. I don't have any amrv7 based systems here for debuging. No problems on armv8 and x86 for me. Are you using the default debian or the alpine based image? Could you please try to build the image on your pi? So we can check if it is a problem with one of the used libraries.

lukemt commented 4 days ago

Hi @Der-Henning Thanks for replying so promptly! I was using this image in the docker-compose: derhenning/tgtg:latest-alpine Yes I already started building the image on the pi! Unfortunately it does take an eternity to build on the pi. I'm 25 minutes in already :D

Der-Henning commented 4 days ago

Yes, many of the required packages are not available for armv7 and need to be build on installation. Even the github workflow runner needs 10 minutes.

lukemt commented 4 days ago

Holy cow, after 1h6m42s it finished building. It started and it works just fine :D

Der-Henning commented 3 days ago

@lukemt Could you please test whether the image with the tag v1.22.0-alpine has the same problem?

lukemt commented 2 days ago

I will! Unfortunately my pi has only isdn internet speed, so i will have to change SIM-Cards temporarily, which I can't do remotely, in oder to download the new version. I will try to test it later today or tomorrow. Sorry about that!

aldebaran54 commented 1 day ago

Hello, Thanks for your comments. I have the same problem on a pi0. Could you please explain how to build the image ? Thanks

lukemt commented 23 hours ago

@aldebaran54 yes, you clone the repo. Then comment out the image in the docker-compose.yaml and uncomment the build-context-dockerfile section.

Then docker compose up as usual

lukemt commented 23 hours ago

Unfortunately I couldn't get to testing the v1.22.0-alpine tagged version. I'm also now away from home. @aldebaran54 Can you please try that too?

aldebaran54 commented 8 hours ago

I also confirm that it works after an image rebuild on my pi0 ! (armv6). I can share the image if necessary. Thanks a lot !

I tried with the image tgtg and the tag v1.22, but same issue with exit and code 139. But not surprising because it's the same image ? same id ? Did I misunderstood something ?

image pull with the tag, modification in the docker compose file, and docker compose ..@raspberrypi:~/tgtg $ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE tgtg-scanner latest df7a022a9665 2 hours ago 120MB derhenning/tgtg latest-alpine ed1f24f29cab 5 days ago 121MB derhenning/tgtg v1.22.0-alpine ed1f24f29cab 5 days ago 121MB