klein0r / ioBroker.youtube

Add your YouTube stats into ioBroker
https://haus-automatisierung.com/
MIT License
8 stars 5 forks source link

Bug report: Youtube adapter terminates itself? Status orange #96

Closed mtoensing closed 1 year ago

mtoensing commented 1 year ago

The problem

The adapter seems to work as it populates the object tree fields with data. But the adapter is shown in orange in the adapter list of ibroker and the logs tell me that it has been terminated.

Screenshot 2023-08-03 at 11 45 30

Version of nodejs

v18.17.0

Version of ioBroker js-controller

4.0.24

Version of Adapter

v4.2.1

Operating system running ioBroker

Docker V8 latest

Checklist of files to include below

Additional information & file uploads

2023-08-03 11:40:32.954 - debug: youtube.0 (14432) Redis Objects: Use Redis connection: 127.0.0.1:9001 2023-08-03 11:40:32.996 - debug: youtube.0 (14432) Objects client ready ... initialize now 2023-08-03 11:40:32.998 - debug: youtube.0 (14432) Objects create System PubSub Client 2023-08-03 11:40:32.999 - debug: youtube.0 (14432) Objects create User PubSub Client 2023-08-03 11:40:33.021 - debug: youtube.0 (14432) Objects client initialize lua scripts 2023-08-03 11:40:33.032 - debug: youtube.0 (14432) Objects connected to redis: 127.0.0.1:9001 2023-08-03 11:40:33.054 - debug: youtube.0 (14432) Redis States: Use Redis connection: 127.0.0.1:9000 2023-08-03 11:40:33.063 - debug: youtube.0 (14432) States create System PubSub Client 2023-08-03 11:40:33.064 - debug: youtube.0 (14432) States create User PubSub Client 2023-08-03 11:40:33.114 - debug: youtube.0 (14432) States connected to redis: 127.0.0.1:9000 2023-08-03 11:40:33.271 - info: youtube.0 (14432) starting. Version 4.2.1 in /opt/iobroker/node_modules/iobroker.youtube, node: v18.17.0, js-controller: 4.0.24 2023-08-03 11:40:33.327 - debug: youtube.0 (14432) [onReady] found 1 channels in config, fetching data 2023-08-03 11:40:33.335 - debug: youtube.0 (14432) [onReady] using existing channel id "UCar1gwRwYqAGSNAuZoKDh2w" of object for "marctvde" 2023-08-03 11:40:33.351 - debug: youtube.0 (14432) [getChannelData] youtube/v3/channels - request init: UCar1gwRwYqAGSNAuZoKDh2w 2023-08-03 11:40:33.564 - debug: youtube.0 (14432) [getChannelData] youtube/v3/channels - received data for UCar1gwRwYqAGSNAuZoKDh2w (200): {"kind":"youtube#channelListResponse","etag":"Ho4mZ14NhVtZ1qycV_BnoIJJAss","pageInfo":{"totalResults":1,"resultsPerPage":5},"items":[{"kind":"youtube#channel","etag":"lJ9kYg3TzgFoj3rYmg-NlxKCLN8","id":"UCar1gwRwYqAGSNAuZoKDh2w","snippet":{"title":"MarcTV","description":"Der YouTube Kanal von Marc Tönsing und dem Blog MarcTV https://marc.tv. Seit 15 Jahren wird hier alles vom Kurzfilm über Erklärungvideos bis hin zur Videos, die sicherlich nicht ins Internet gehören hochgeladen.\n\n★ Blog: https://marc.tv \nAlles andere ist nur Zweitverwertung. \n\n★ Abo: https://marc.tv/abo\nNewsletter, Facebook, Github usw\n\n★ Twitter: https://twitter.com/marctv\nMarcTV in kurz und gut","customUrl":"@marctvde","publishedAt":"2006-07-28T01:20:35Z","thumbnails":{"default":{"url":"https://yt3.ggpht.com/ytc/AOPolaRZh17RG2bzFHNq-Cb0QDpU2WPOdS1s2nz9CpdvAw=s88-c-k-c0x00ffffff-no-rj","width":88,"height":88},"medium":{"url":"https://yt3.ggpht.com/ytc/AOPolaRZh17RG2bzFHNq-Cb0QDpU2WPOdS1s2nz9CpdvAw=s240-c-k-c0x00ffffff-no-rj","width":240,"height":240},"high":{"url":"https://yt3.ggpht.com/ytc/AOPolaRZh17RG2bzFHNq-Cb0QDpU2WPOdS1s2nz9CpdvAw=s800-c-k-c0x00ffffff-no-rj","width":800,"height":800}},"localized":{"title":"MarcTV","description":"Der YouTube Kanal von Marc Tönsing und dem Blog MarcTV https://marc.tv. Seit 15 Jahren wird hier alles vom Kurzfilm über Erklärungvideos bis hin zur Videos, die sicherlich nicht ins Internet gehören hochgeladen.\n\n★ Blog: https://marc.tv \nAlles andere ist nur Zweitverwertung. \n\n★ Abo: https://marc.tv/abo\nNewsletter, Facebook, Github usw\n\n★ Twitter: https://twitter.com/marctv\nMarcTV in kurz und gut"},"country":"DE"},"statistics":{"viewCount":"1848747","subscriberCount":"2380","hiddenSubscriberCount":false,"videoCount":"177"}}]} 2023-08-03 11:40:33.585 - debug: youtube.0 (14432) [getChannelVideoData] youtube/v3/search - request init: UCar1gwRwYqAGSNAuZoKDh2w 2023-08-03 11:40:33.943 - debug: youtube.0 (14432) [getChannelVideoData] youtube/v3/search - received data for UCar1gwRwYqAGSNAuZoKDh2w (200): {"kind":"youtube#searchListResponse","etag":"EhYsK59dFOapPInCEzFmvO2o3ao","nextPageToken":"CAUQAA","regionCode":"DE","pageInfo":{"totalResults":177,"resultsPerPage":5},"items":[{"kind":"youtube#searchResult","etag":"T_ANb7IjgX8HiJ1IobcdsEeEnd0","id":{"kind":"youtube#video","videoId":"3-lpKJqEnR4"},"snippet":{"publishedAt":"2023-05-06T08:00:57Z","channelId":"UCar1gwRwYqAGSNAuZoKDh2w","title":"Gran Turismo™ 7 auf PS5 - Traumgrafik mit Ray-Tracing am Lago Maggiore","description":"Blogartikel: https://marc.tv/gran-turismo-7-das-ultimative-rennspielerlebnis/","thumbnails":{"default":{"url":"https://i.ytimg.com/vi/3-lpKJqEnR4/default.jpg","width":120,"height":90},"medium":{"url":"https://i.ytimg.com/vi/3-lpKJqEnR4/mqdefault.jpg","width":320,"height":180},"high":{"url":"https://i.ytimg.com/vi/3-lpKJqEnR4/hqdefault.jpg","width":480,"height":360}},"channelTitle":"MarcTV","liveBroadcastContent":"none","publishTime":"2023-05-06T08:00:57Z"}},{"kind":"youtube#searchResult","etag":"JslgMh8SRvMto9zWmUp6cY705go","id":{"kind":"youtube#video","videoId":"gL29XoS0ntI"},"snippet":{"publishedAt":"2023-04-23T13:45:54Z","channelId":"UCar1gwRwYqAGSNAuZoKDh2w","title":"Burning Shores - Spektakuläre Besichtigungstour auf Wasser und Luft in Horizon 2: Forbidden West","description":"","thumbnails":{"default":{"url":"https://i.ytimg.com/vi/gL29XoS0ntI/default.jpg","width":120,"height":90},"medium":{"url":"https://i.ytimg.com/vi/gL29XoS0ntI/mqdefault.jpg","width":320,"height":180},"high":{"url":"https://i.ytimg.com/vi/gL29XoS0ntI/hqdefault.jpg","width":480,"height":360}},"channelTitle":"MarcTV","liveBroadcastContent":"none","publishTime":"2023-04-23T13:45:54Z"}},{"kind":"youtube#searchResult","etag":"_xRRKZA42XFW6KrhjgXb8edcJLQ","id":{"kind":"youtube#video","videoId":"u43lzKOtYEE"},"snippet":{"publishedAt":"2023-03-24T16:40:18Z","channelId":"UCar1gwRwYqAGSNAuZoKDh2w","title":"Horizon II: Aloys entspannter Strandtag - PS5 Grafikpräsentation (4K HDR, 60FPS) | Kein Kampf","description":"Die beeindruckendste PlayStation 5 Grafik-Demonstration. Aloys Tag am Strand, an dem sie etwas Zeit für sich hatte.","thumbnails":{"default":{"url":"https://i.ytimg.com/vi/u43lzKOtYEE/default.jpg","width":120,"height":90},"medium":{"url":"https://i.ytimg.com/vi/u43lzKOtYEE/mqdefault.jpg","width":320,"height":180},"high":{"url":"https://i.ytimg.com/vi/u43lzKOtYEE/hqdefault.jpg","width":480,"height":360}},"channelTitle":"MarcTV","liveBroadcastContent":"none","publishTime":"2023-03-24T16:40:18Z"}},{"kind":"youtube#searchResult","etag":"cZOmCGtK3GUQz5LOt460L8YGTQk","id":{"kind":"youtube#video","videoId":"BuHOyhM2fCg"},"snippet":{"publishedAt":"2022-09-19T16:35:05Z","channelId":"UCar1gwRwYqAGSNAuZoKDh2w","title":"JAVA Minecraft 1.19 Server auf Raspberry Pi in 4 Minuten (Automatische Aktualisierungen!)","description":"Diese Anleitung installiert einen Minecraft Server per Docker auf dem Raspberry Pi in unter 4 Minuten. Der Server startet ...","thumbnails":{"default":{"url":"https://i.ytimg.com/vi/BuHOyhM2fCg/default.jpg","width":120,"height":90},"medium":{"url":"https://i.ytimg.com/vi/BuHOyhM2fCg/mqdefault.jpg","width":320,"height":180},"high":{"url":"https://i.ytimg.com/vi/BuHOyhM2fCg/hqdefault.jpg","width":480,"height":360}},"channelTitle":"MarcTV","liveBroadcastContent":"none","publishTime":"2022-09-19T16:35:05Z"}},{"kind":"youtube#searchResult","etag":"YN9KQzDMpGoNMc1PFFfIsqagGWA","id":{"kind":"youtube#video","videoId":"MAFed-jXfYY"},"snippet":{"publishedAt":"2022-03-18T13:53:22Z","channelId":"UCar1gwRwYqAGSNAuZoKDh2w","title":"Elden Ring Sword of Night and Flame Tribute","description":"Elden Ring is straightforward in a pre 1.03 patch version. The Sword of Night and Flame paired with an Azur Comet together with ...","thumbnails":{"default":{"url":"https://i.ytimg.com/vi/MAFed-jXfYY/default.jpg","width":120,"height":90},"medium":{"url":"https://i.ytimg.com/vi/MAFed-jXfYY/mqdefault.jpg","width":320,"height":180},"high":{"url":"https://i.ytimg.com/vi/MAFed-jXfYY/hqdefault.jpg","width":480,"height":360}},"channelTitle":"MarcTV","liveBroadcastContent":"none","publishTime":"2022-03-18T13:53:22Z"}}]} 2023-08-03 11:40:33.999 - debug: youtube.0 (14432) [onReady] everything done - instance will stop soon 2023-08-03 11:40:34.508 - info: youtube.0 (14432) Terminated (NO_ERROR): Without reason 2023-08-03 11:40:35.053 - info: host.iobrokerv-8 instance system.adapter.youtube.0 terminated with code 0 (NO_ERROR)

klein0r commented 1 year ago

Where is the issue?

Please google the difference between a "daemon" adapter and a "schedule" adapter.