linuxserver / docker-tvheadend

GNU General Public License v3.0
168 stars 90 forks source link

[BUG] Cron not working #224

Closed lukasheinz92 closed 1 year ago

lukasheinz92 commented 1 year ago

Is there an existing issue for this?

Current Behavior

I enter a container as a root, add new cron job into /etc/crontabs/root and save the file but the cron job will not trigger. I also tried to use different commands, various access rights, restart a containers etc. but nothing worked.

The actual cron job is: */15 * * * * /config/sledovanitv/sledovanitv-epg.sh > /config/data/sledovanitv-epg-cron.xml

Expected Behavior

It should run at defined period and run a command - in my case to overwrite /config/data/sledovanitv-epg-cron.xml.

Steps To Reproduce

  1. I enter the container as a root
  2. I open the /etc/crontabs/root file using command nano /etc/crontabs/root
  3. I add a cron job */15 * * * * /config/sledovanitv/sledovanitv-epg.sh > /config/data/sledovanitv-epg-cron.xml on a new line (the end of the file)
  4. I save the file

Environment

- OS: Debian (OpenMediaVault 5.6)
- How docker service was installed: using GUI in OpenMediaVault

CPU architecture

arm64

Docker creation

version: "2.1"
services:
  tvheadend:
    image: ghcr.io/linuxserver/tvheadend:arm32v7-latest
    container_name: tvheadend
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Prague
    volumes:
      - /srv/dev-disk-by-uuid/appdata/tvheadend:/config
      - /srv/dev-disk-by-uuid/library/TV:/recordings
    ports:
      - 9981:9981
      - 9982:9982
    devices:
      - /dev/dri:/dev/dri #optional
      - /dev/dvb:/dev/dvb #optional
    restart: unless-stopped

Container logs

2023-04-23 09:56:54.893 [   INFO] xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2023-04-23 09:56:54.903 [   INFO] spawn: Executing "/usr/bin/tv_grab_file"
2023-04-23 09:56:55.797 [   INFO] xmltv: /usr/bin/tv_grab_file: grab took 1 seconds
2023-04-23 09:56:55.868 [   INFO] xmltv: /usr/bin/tv_grab_file: parse took 0 seconds
2023-04-23 09:56:55.868 [   INFO] xmltv: /usr/bin/tv_grab_file:  channels   tot=  337 new=    0 mod=    0
2023-04-23 09:56:55.868 [   INFO] xmltv: /usr/bin/tv_grab_file:  brands     tot=    0 new=    0 mod=    0
2023-04-23 09:56:55.868 [   INFO] xmltv: /usr/bin/tv_grab_file:  seasons    tot=    0 new=    0 mod=    0
2023-04-23 09:56:55.868 [   INFO] xmltv: /usr/bin/tv_grab_file:  episodes   tot=    0 new=    0 mod=    0
2023-04-23 09:56:55.868 [   INFO] xmltv: /usr/bin/tv_grab_file:  broadcasts tot= 3298 new=    0 mod=    5
2023-04-23 10:00:00.000 [   INFO] xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2023-04-23 10:00:00.010 [   INFO] spawn: Executing "/usr/bin/tv_grab_file"
2023-04-23 10:00:00.907 [   INFO] xmltv: /usr/bin/tv_grab_file: grab took 1 seconds
2023-04-23 10:00:00.977 [   INFO] xmltv: /usr/bin/tv_grab_file: parse took 0 seconds
2023-04-23 10:00:00.977 [   INFO] xmltv: /usr/bin/tv_grab_file:  channels   tot=  337 new=    0 mod=    0
2023-04-23 10:00:00.977 [   INFO] xmltv: /usr/bin/tv_grab_file:  brands     tot=    0 new=    0 mod=    0
2023-04-23 10:00:00.977 [   INFO] xmltv: /usr/bin/tv_grab_file:  seasons    tot=    0 new=    0 mod=    0
2023-04-23 10:00:00.977 [   INFO] xmltv: /usr/bin/tv_grab_file:  episodes   tot=    0 new=    0 mod=    0
2023-04-23 10:00:00.977 [   INFO] xmltv: /usr/bin/tv_grab_file:  broadcasts tot= 3237 new=    0 mod=    0
2023-04-23 10:06:00.000 [   INFO] xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2023-04-23 10:06:00.004 [   INFO] spawn: Executing "/usr/bin/tv_grab_file"
2023-04-23 10:06:00.918 [   INFO] xmltv: /usr/bin/tv_grab_file: grab took 1 seconds
2023-04-23 10:06:00.989 [   INFO] xmltv: /usr/bin/tv_grab_file: parse took 0 seconds
2023-04-23 10:06:00.989 [   INFO] xmltv: /usr/bin/tv_grab_file:  channels   tot=  337 new=    0 mod=    0
2023-04-23 10:06:00.989 [   INFO] xmltv: /usr/bin/tv_grab_file:  brands     tot=    0 new=    0 mod=    0
2023-04-23 10:06:00.989 [   INFO] xmltv: /usr/bin/tv_grab_file:  seasons    tot=    0 new=    0 mod=    0
2023-04-23 10:06:00.989 [   INFO] xmltv: /usr/bin/tv_grab_file:  episodes   tot=    0 new=    0 mod=    0
2023-04-23 10:06:00.989 [   INFO] xmltv: /usr/bin/tv_grab_file:  broadcasts tot= 3234 new=    0 mod=    0
2023-04-23 10:51:04.481 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 10:51:05.476 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 11:51:04.481 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 11:51:05.476 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 12:04:00.000 [   INFO] xmltv: /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
2023-04-23 12:04:00.010 [   INFO] spawn: Executing "/usr/bin/tv_grab_file"
2023-04-23 12:04:00.899 [   INFO] xmltv: /usr/bin/tv_grab_file: grab took 1 seconds
2023-04-23 12:04:00.968 [   INFO] xmltv: /usr/bin/tv_grab_file: parse took 0 seconds
2023-04-23 12:04:00.968 [   INFO] xmltv: /usr/bin/tv_grab_file:  channels   tot=  337 new=    0 mod=    0
2023-04-23 12:04:00.968 [   INFO] xmltv: /usr/bin/tv_grab_file:  brands     tot=    0 new=    0 mod=    0
2023-04-23 12:04:00.968 [   INFO] xmltv: /usr/bin/tv_grab_file:  seasons    tot=    0 new=    0 mod=    0
2023-04-23 12:04:00.968 [   INFO] xmltv: /usr/bin/tv_grab_file:  episodes   tot=    0 new=    0 mod=    0
2023-04-23 12:04:00.968 [   INFO] xmltv: /usr/bin/tv_grab_file:  broadcasts tot= 2965 new=    0 mod=    0
2023-04-23 12:51:04.481 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 12:51:05.476 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 13:51:04.482 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 13:51:05.477 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 14:04:01.006 [   INFO] mpegts: 626MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:04:01.033 [   INFO] subscription: 0007: "epggrab" subscribing to mux "626MHz", weight: 4, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", service: "Raw PID Subscription"
2023-04-23 14:04:02.512 [WARNING] linuxdvb: Unhandled ERROR_BIT_COUNT scale: 0
2023-04-23 14:04:02.512 [WARNING] linuxdvb: Unhandled ERROR_BLOCK_COUNT scale: 0
2023-04-23 14:04:02.512 [WARNING] linuxdvb: Unhandled TOTAL_BLOCK_COUNT scale: 0
2023-04-23 14:04:12.570 [   INFO] subscription: 0007: "epggrab" unsubscribing
2023-04-23 14:04:13.570 [   INFO] mpegts: 570MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:04:13.571 [   INFO] subscription: 0009: "epggrab" subscribing to mux "570MHz", weight: 4, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", service: "Raw PID Subscription"
2023-04-23 14:04:25.567 [   INFO] subscription: 0009: "epggrab" unsubscribing
2023-04-23 14:05:30.567 [   INFO] mpegts: 674MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:05:30.594 [   INFO] subscription: 000A: "epggrab" subscribing to mux "674MHz", weight: 4, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", service: "Raw PID Subscription"
2023-04-23 14:07:08.384 [   INFO] subscription: 000A: "epggrab" unsubscribing
2023-04-23 14:07:09.385 [   INFO] mpegts: 514MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:07:09.385 [   INFO] subscription: 000C: "epggrab" subscribing to mux "514MHz", weight: 4, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", service: "Raw PID Subscription"
2023-04-23 14:07:56.509 [   INFO] subscription: 000C: "epggrab" unsubscribing
2023-04-23 14:21:36.318 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/777 -- 404
2023-04-23 14:21:39.711 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/760 -- 404
2023-04-23 14:21:40.029 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/761 -- 404
2023-04-23 14:21:41.266 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/760 -- 404
2023-04-23 14:21:49.213 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/797 -- 404
2023-04-23 14:21:54.896 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/797 -- 404
2023-04-23 14:21:57.557 [   INFO] mpegts: 626MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:21:57.583 [   INFO] subscription: 000D: "192.168.0.111 [  | Kodi Media Center ]" subscribing on channel "Prima +1", weight: 100, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", mux: "626MHz", provider: "CESKE RADIOKOMUNIKACE", service: "Prima +1", profile="htsp", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:22:09.227 [   INFO] subscription: 000D: "192.168.0.111 [  | Kodi Media Center ]" unsubscribing from "Prima +1", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:22:09.237 [   INFO] mpegts: 626MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:22:09.238 [   INFO] subscription: 000E: "192.168.0.111 [  | Kodi Media Center ]" subscribing on channel "Prima", weight: 100, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", mux: "626MHz", provider: "CESKE RADIOKOMUNIKACE", service: "Prima", profile="htsp", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:22:10.351 [   INFO] subscription: 000E: "192.168.0.111 [  | Kodi Media Center ]" unsubscribing from "Prima", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:22:10.354 [   INFO] mpegts: 626MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:22:10.355 [   INFO] subscription: 000F: "192.168.0.111 [  | Kodi Media Center ]" subscribing on channel "Prima +1", weight: 100, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", mux: "626MHz", provider: "CESKE RADIOKOMUNIKACE", service: "Prima +1", profile="htsp", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:33:03.557 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/761 -- 404
2023-04-23 14:33:05.926 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/761 -- 404
2023-04-23 14:33:05.974 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/760 -- 404
2023-04-23 14:33:15.090 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/797 -- 404
2023-04-23 14:33:30.346 [   INFO] subscription: 000F: "192.168.0.111 [  | Kodi Media Center ]" unsubscribing from "Prima +1", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:33:30.359 [   INFO] mpegts: 570MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:33:30.360 [   INFO] subscription: 0010: "192.168.0.111 [  | Kodi Media Center ]" subscribing on channel "Seznam.cz TV", weight: 100, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", mux: "570MHz", provider: "CDG", service: "Seznam.cz TV", profile="htsp", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:44:52.595 [   INFO] subscription: 0010: "192.168.0.111 [  | Kodi Media Center ]" unsubscribing from "Seznam.cz TV", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:44:56.920 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/777 -- 404
2023-04-23 14:45:03.486 [  ERROR] http: 192.168.0.111: HTTP/1.1 HEAD (2) /imagecache/777 -- 404
2023-04-23 14:45:07.093 [   INFO] mpegts: 626MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:45:07.123 [   INFO] subscription: 0011: "192.168.0.111 [  | Kodi Media Center ]" subscribing on channel "ocko", weight: 100, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", mux: "626MHz", provider: "CESKE RADIOKOMUNIKACE", service: "Ocko", profile="htsp", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:45:21.271 [   INFO] subscription: 0011: "192.168.0.111 [  | Kodi Media Center ]" unsubscribing from "ocko", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:45:21.311 [   INFO] mpegts: 626MHz in TV Hat - tuning on Sony CXD2880 #0 : DVB-T #0
2023-04-23 14:45:21.312 [   INFO] subscription: 0012: "192.168.0.111 [  | Kodi Media Center ]" subscribing on channel "Ocko STAR", weight: 100, adapter: "Sony CXD2880 #0 : DVB-T #0", network: "TV Hat", mux: "626MHz", provider: "CESKE RADIOKOMUNIKACE", service: "Ocko STAR", profile="htsp", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 14:51:04.482 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 14:51:05.476 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 15:04:02.916 [WARNING] linuxdvb: Unhandled TOTAL_BIT_COUNT scale: 3
2023-04-23 15:51:04.482 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 15:51:07.978 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 16:04:03.304 [WARNING] linuxdvb: Unhandled TOTAL_BIT_COUNT scale: 3
2023-04-23 16:51:04.481 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 16:51:05.476 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
2023-04-23 17:04:03.684 [WARNING] linuxdvb: Unhandled TOTAL_BIT_COUNT scale: 3
2023-04-23 17:08:19.214 [   INFO] subscription: 0012: "192.168.0.111 [  | Kodi Media Center ]" unsubscribing from "Ocko STAR", hostname="192.168.0.111", username="192.168.0.111", client="Kodi Media Center"
2023-04-23 17:51:04.482 [   INFO] spawn: Executing "/config/sledovanitv/sledovanitv-autoconfig.sh"
2023-04-23 17:51:05.477 [   INFO] iptv: m3u parse: 0 new mux(es) in network 'SledovaniTV' (total 95)
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity