exec: python3: not found
See original GitHub issueAfter upgrading my docker containers today I started to receive a python3 error. Below is the section of my docker compose file as well as the relevant log lines. The last section just keeps repeating. Everything goes back to working if I change from latest to v5.0.0
cf-companion:
container_name: cf-companion
image: tiredofit/traefik-cloudflare-companion:latest
security_opt:
- no-new-privileges:true
restart: unless-stopped
networks:
- socket_proxy
depends_on:
- socket-proxy
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro # Use Docker Socket Proxy instead for improved security
environment:
- TIMEZONE=$TZ
- TRAEFIK_VERSION=2
- CF_EMAIL=$CLOUDFLARE_EMAIL # Same as traefik
# - CF_TOKEN=$CLOUDFLARE_API_TOKEN # Scoped api token not working. Error 10000.
- CF_TOKEN=$CLOUDFLARE_API_KEY # Same as traefik
- TARGET_DOMAIN=$DOMAINNAME
- DOMAIN1=$DOMAINNAME
- DOMAIN1_ZONE_ID=$CLOUDFLARE_ZONEID # Copy from Cloudflare Overview page
- DOMAIN1_PROXIED=TRUE
- DOCKER_HOST=tcp://socket-proxy:2375
- CONTAINER_LOG_LEVEL=DEBUG
secrets: # not working
- cloudflare_email
- cloudflare_api_key
- cloudflare_zoneid
today at 9:31 PM [cont-init.d] 99-container: executing...
today at 9:31 PM [DEBUG] ** [container] Getting ready to start '03-zabbix' service
today at 9:31 PM [DEBUG] ** [container] Skipping '04-cron' service for startup routines
today at 9:31 PM [DEBUG] ** [container] Skipping '05-smtp' service for startup routines
today at 9:31 PM [DEBUG] ** [container] Getting ready to start '10-cloudflare-companion' service
today at 9:31 PM [cont-init.d] 99-container: exited 0.
today at 9:31 PM [cont-init.d] done.
today at 9:31 PM [services.d] starting services
today at 9:31 PM [DEBUG] ** [traefik-cloudflare-companion] Checking to see if container initialization scripts have completed
today at 9:31 PM [DEBUG] ** [traefik-cloudflare-companion] Checking to see if service has initialized
today at 9:31 PM [DEBUG] ** [zabbix] Checking to see if container initialization scripts have completed
today at 9:31 PM [DEBUG] ** [zabbix] Checking to see if service has initialized
today at 9:31 PM [services.d] done.
today at 9:31 PM ./run: line 11: exec: python3: not found
today at 9:31 PM [INFO] ** [traefik-cloudflare-companion] Starting Traefik Cloudflare Companion
today at 9:31 PM [INFO] ** [zabbix] Starting Zabbix Agent
today at 9:31 PM Starting Zabbix Agent [alpine]. Zabbix 5.0.3 (revision {ZABBIX_REVISION}).
today at 9:31 PM Press Ctrl+C to exit.
today at 9:31 PM
today at 9:31 PM [DEBUG] ** [traefik-cloudflare-companion] Checking to see if container initialization scripts have completed
today at 9:31 PM [DEBUG] ** [traefik-cloudflare-companion] Checking to see if service has initialized
today at 9:31 PM [INFO] ** [traefik-cloudflare-companion] Starting Traefik Cloudflare Companion
today at 9:31 PM ./run: line 11: exec: python3: not found
today at 9:31 PM [DEBUG] ** [traefik-cloudflare-companion]
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Bash: Python3: command not found (Windows, discord.py)
Solution: Symbolic Link python3.exe. Just create a symbolic link named python3.exe in a directory which is in your PATH environment variable ( ...
Read more >-bash: python: command not found error and solution - nixCraft
-bash: python: command not found. This error means Python is either not installed or your installation damaged including wrong $PATH settings..
Read more >Solve Python3 Command Not Found Error in Bash - Delft Stack
You may be using the wrong version if you get a bash: python3: command not found error while executing a Python program. First,...
Read more >How to Fix - bash: python: command not found Error
The - bash: python: command not found error shows mainly because of three reasons. First of all, is the python executable installed on...
Read more >Fix Python Command Not Found Error in Linux
As you can see, this common error has 3 main possible reasons. Installing Python, defining the correct path, or fixing symbolic links are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Interesting. I just built a new latest from Docker Hub, pulled and it was missing python3. I then turned off “Build Caching” and ran another build and it appeared. I’ll do some research why this would be happening - but in the meantime I’ve turned it off entirely and the image should be usable again, sorry about this!
Amazing thanks for the update. I’ll pull the new image and use that. For reference, this is the has that was causing issues: sha256:82a583ee1771024c89e3865daf453244a70da82c4ce87da4a8b0b527505dd753