karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
300 stars 107 forks source link

Backup file #387

Closed 20com closed 1 year ago

20com commented 1 year ago

Trying KH17 version, backup file is not working, switching back to KH15 or official Icecast version and same config, it's working well. Intro file is working well, just backup function...

karlheyes commented 1 year ago

can you try the latest master work for the same setup. It is probably down to the changes in the http processing. Legacy code expecting something to be present when it is not. I've been fixing up a few of those, the intro was working yesterday in the code and just now the fallback to file/override seems to be working as expected in the master tree

karl

20com commented 1 year ago

Hi. Thanks. Tried now, but same result, sorry :(

karlheyes commented 1 year ago

can you show me the level 4 log around the time of the source shutdown then?

20com commented 1 year ago

Yes, here it is:

[2023-01-24 13:31:35] INFO connection/_handle_source_request Source logging in at mountpoint "/stream" [2023-01-24 13:31:35] INFO format-mp3/format_mp3_get_plugin Created format details for /stream [2023-01-24 13:31:35] INFO source/_source_client_startup sources count is now 1 [2023-01-24 13:31:35] INFO source/source_apply_mount Applying mount information for "/stream" [2023-01-24 13:31:35] INFO source/source_client_response source /stream is ready to start [2023-01-24 13:31:35] INFO source/source_init Source /stream initialised [2023-01-24 13:31:35] INFO source/source_read listener count on /stream now 0 [2023-01-24 13:31:35] INFO mpeg/check_for_mp3 MPEG 1 Layer 3 Detected (44100 2 128 kbps) on XXX.XXX.XXX.XXX [2023-01-24 13:31:35] INFO source/source_set_override for /stream set to /../var/spool/sounds/fallbackfile_stream.mp3 [2023-01-24 13:31:42] INFO admin/admin_handle_general_request processing file stats [2023-01-24 13:31:42] INFO admin/admin_handle_general_request processing file stats [2023-01-24 13:32:03] INFO admin/admin_handle_general_request processing file stats [2023-01-24 13:32:06] INFO admin/admin_handle_general_request processing file stats [2023-01-24 13:32:22] INFO admin/admin_handle_general_request processing file stats [2023-01-24 13:32:22] INFO connection/connection_thread connection thread finished [2023-01-24 13:32:22] INFO source/source_shutdown Source "/stream" exiting [2023-01-24 13:32:22] INFO source/source_client_read no more listeners on /stream [2023-01-24 13:32:22] INFO source/_free_source freeing source "/stream" [2023-01-24 13:32:23] INFO connection/connection_thread_shutdown shutting down connection thread [2023-01-24 13:32:23] INFO slave/_slave_thread shutting down current relays [2023-01-24 13:32:23] INFO slave/_slave_thread Slave thread shutdown complete [2023-01-24 13:32:23] INFO client/workers_adjust requested worker count 0 [2023-01-24 13:32:23] INFO client/worker shutting down [2023-01-24 13:32:23] INFO client/worker_stop stopping incoming worker thread [2023-01-24 13:32:23] INFO client/worker shutting down [2023-01-24 13:32:23] INFO main/server_process Shutting down [2023-01-24 13:32:23] INFO auth/auth_shutdown Auth shutdown complete [2023-01-24 13:32:23] INFO connection/connection_listen_sockets_close Closing port 9999 on 0.0.0.0 [2023-01-24 13:32:23] INFO yp/yp_shutdown YP cleanup complete [2023-01-24 13:32:23] INFO fserve/fserve_shutdown file serving stopped [2023-01-24 13:32:26] INFO thread/ lock abort set to 0 [2023-01-24 13:32:26] INFO logging/recheck_log_file Using log file var/log//access.log [2023-01-24 13:32:26] INFO logging/recheck_log_file Using log file var/log//playlist.log [2023-01-24 13:32:26] INFO main/server_proc_init Icecast 2.4.0-kh17 server reading configuration from ../test/etc/server.conf [2023-01-24 13:32:26] INFO connection/get_ssl_certificate SSL certificate found at /certificado/certificado.pem [2023-01-24 13:32:26] INFO connection/get_ssl_certificate SSL using ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA [2023-01-24 13:32:26] INFO connection/connection_setup_sockets 1 listener socket(s) for port 9999 address 0.0.0.0 [2023-01-24 13:32:26] INFO connection/connection_setup_sockets 1 listening sockets setup complete [2023-01-24 13:32:26] INFO fserve/fserve_initialize file serving started [2023-01-24 13:32:26] INFO main/server_process Icecast 2.4.0-kh17 server started [2023-01-24 13:32:26] WARN slave/slave_startup process has 10240 max file descriptor limit [2023-01-24 13:32:26] INFO client/workers_adjust requested worker count 1 [2023-01-24 13:32:26] INFO client/worker_start starting incoming worker thread 0x558eb8fcaa20 [2023-01-24 13:32:26] INFO client/log_commit_thread started [2023-01-24 13:32:26] DBUG yp/yp_recheck_config Updating YP configuration [2023-01-24 13:32:26] DBUG client/worker 0x558eb8fcad40 now has 0 clients [2023-01-24 13:32:26] DBUG client/worker 0x558eb8fcaa20 now has 0 clients [2023-01-24 13:32:26] INFO yp/yp_recheck_config Adding new YP server "http://dir.xiph.org/cgi-bin/yp-cgi" (timeout 15s, default interval 600s) [2023-01-24 13:32:26] INFO yp/yp_client_add Starting Directory client for YP processing [2023-01-24 13:32:26] DBUG fserve/find_fh /../var/spool/sounds/fallbackfile_stream.mp3 (4) not found in cache [2023-01-24 13:32:26] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcad40 [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global banned_IPs (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global client_connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global clients (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global listener_connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global listeners (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global outgoing_kbitrate (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global source_client_connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global source_relay_connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global source_total_connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global sources (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global stats (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global stats_connections (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global stream_kbytes_read (0) [2023-01-24 13:32:26] DBUG stats/stats_global_calc update global stream_kbytes_sent (0) [2023-01-24 13:32:26] INFO connection/connection_thread connection thread started [2023-01-24 13:32:26] DBUG client/worker 0x558eb8fcad40 now has 1 clients [2023-01-24 13:32:26] DBUG yp/check_servers Add pending yps http://dir.xiph.org/cgi-bin/yp-cgi [2023-01-24 13:32:26] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:26] DBUG connection/setup_source_client_callback client expects 100 continue [2023-01-24 13:32:26] DBUG client/worker 0x558eb8fcaa20 now has 1 clients [2023-01-24 13:32:26] INFO connection/_handle_source_request Source logging in at mountpoint "/stream" [2023-01-24 13:32:26] DBUG source/source_format_init parser found for /stream [2023-01-24 13:32:26] INFO format-mp3/format_mp3_get_plugin Created format details for /stream [2023-01-24 13:32:26] DBUG stats/stats_handle new source stat /stream [2023-01-24 13:32:26] INFO source/_source_client_startup sources count is now 1 [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "listenurl" (http://test:9999/stream) [2023-01-24 13:32:26] INFO source/source_apply_mount Applying mount information for "/stream" [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "listener_peak" (0) [2023-01-24 13:32:26] DBUG format-mp3/format_mp3_apply_settings sending metadata interval 16000 [2023-01-24 13:32:26] DBUG format-mp3/format_mp3_apply_settings charset UTF-8 [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "public" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "server_name" (no name) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "genre" (various) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "server_type" (audio/mpeg) [2023-01-24 13:32:26] DBUG source/source_update_settings max listeners to -1 [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "max_listeners" (-1) [2023-01-24 13:32:26] DBUG source/source_update_settings public set to 0 [2023-01-24 13:32:26] DBUG source/source_update_settings source timeout to 10 [2023-01-24 13:32:26] INFO source/source_client_response source /stream is ready to start [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "slow_listeners" (0) [2023-01-24 13:32:26] DBUG stats/modify_node_event update "/stream" server_type (audio/mpeg) [2023-01-24 13:32:26] DBUG stats/modify_node_event update "/stream" listener_peak (0) [2023-01-24 13:32:26] DBUG stats/modify_node_event update "/stream" listener_peak (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "listener_connections" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "total_mbytes_sent" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "total_bytes_sent" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "total_bytes_read" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "outgoing_kbitrate" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "incoming_bitrate" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "queue_size" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "connected" (0) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "source_ip" (185.254.205.153) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "stream_start" (24/Jan/2023:13:32:26 +0100) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "ice-bitrate" (128) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "ice-channels" (2) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "ice-samplerate" (44100) [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "audio_info" (ice-bitrate=128;ice-channels=2;ice-samplerate=44100) [2023-01-24 13:32:26] INFO source/source_init Source /stream initialised [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "user_agent" (butt 0.1.37) [2023-01-24 13:32:26] INFO source/source_read listener count on /stream now 0 [2023-01-24 13:32:26] DBUG stats/process_source_stat new node on /stream "listeners" (0) [2023-01-24 13:32:27] DBUG mpeg/mpeg_complete_frames_cb no frame sync on 185.254.205.153, re-checking after skipping 45 (8000) [2023-01-24 13:32:27] INFO mpeg/check_for_mp3 MPEG 1 Layer 3 Detected (44100 2 128 kbps) on 185.254.205.153 [2023-01-24 13:32:27] DBUG stats/process_source_stat new node on /stream "audio_codecid" (2) [2023-01-24 13:32:27] DBUG stats/process_source_stat new node on /stream "mpeg_samplerate" (44100) [2023-01-24 13:32:27] DBUG stats/process_source_stat new node on /stream "mpeg_channels" (2) [2023-01-24 13:32:27] INFO source/source_set_override for /stream set to /../var/spool/sounds/fallbackfile_stream.mp3 [2023-01-24 13:32:27] DBUG source/source_set_override checking for /../var/spool/sounds/fallbackfile_stream.mp3 on /stream [2023-01-24 13:32:27] DBUG fserve/find_fh /../var/spool/sounds/fallbackfile_stream.mp3 (4) not found in cache [2023-01-24 13:32:27] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:27] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:27] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:27] DBUG client/worker 0x558eb8fcaa20 now has 2 clients [2023-01-24 13:32:27] INFO xslt/xslt_update loaded stylesheet web//status-json.xsl [2023-01-24 13:32:27] DBUG client/worker 0x558eb8fcaa20 now has 1 clients [2023-01-24 13:32:27] DBUG stats/stats_global_calc update global client_connections (1) [2023-01-24 13:32:27] DBUG stats/stats_global_calc update global clients (1) [2023-01-24 13:32:27] DBUG stats/stats_global_calc update global connections (2) [2023-01-24 13:32:27] DBUG stats/stats_global_calc update global source_client_connections (1) [2023-01-24 13:32:27] DBUG stats/stats_global_calc update global source_total_connections (1) [2023-01-24 13:32:27] DBUG stats/stats_global_calc update global sources (1) [2023-01-24 13:32:28] DBUG stats/stats_global_calc update global outgoing_kbitrate (131) [2023-01-24 13:32:29] DBUG stats/stats_global_calc update global outgoing_kbitrate (7) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" incoming_bitrate (208768) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" total_bytes_read (52192) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" queue_size (51826) [2023-01-24 13:32:30] DBUG stats/modify_node_event update "/stream" connected (4) [2023-01-24 13:32:30] DBUG source/update_source_stats /stream queue size set to 524288 [2023-01-24 13:32:30] DBUG source/update_source_stats /stream min queue size set to 65536 [2023-01-24 13:32:30] DBUG source/update_source_stats /stream burst size set to 65535 [2023-01-24 13:32:30] DBUG source/source_change_worker moving source /stream from 0x558eb8fcaa20 to 0x558eb8fcad40 [2023-01-24 13:32:30] DBUG client/worker 0x558eb8fcaa20 now has 0 clients [2023-01-24 13:32:30] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcad40 [2023-01-24 13:32:30] DBUG client/worker 0x558eb8fcad40 now has 2 clients [2023-01-24 13:32:30] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:30] DBUG stats/stats_global_calc update global stream_kbytes_read (50) [2023-01-24 13:32:30] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:30] DBUG client/worker 0x558eb8fcaa20 now has 1 clients [2023-01-24 13:32:30] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:30] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:30] DBUG client/worker 0x558eb8fcaa20 now has 0 clients [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" incoming_bitrate (179664) [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" total_bytes_read (67375) [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" queue_size (66873) [2023-01-24 13:32:31] DBUG stats/modify_node_event update "/stream" connected (5) [2023-01-24 13:32:31] DBUG stats/stats_global_calc update global client_connections (2) [2023-01-24 13:32:31] DBUG stats/stats_global_calc update global connections (3) [2023-01-24 13:32:31] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:31] DBUG stats/stats_global_calc update global stream_kbytes_read (65) [2023-01-24 13:32:32] DBUG stats/stats_global_calc update global outgoing_kbitrate (9) [2023-01-24 13:32:33] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:33] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:33] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:33] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:34] DBUG stats/stats_global_calc update global client_connections (3) [2023-01-24 13:32:34] DBUG stats/stats_global_calc update global connections (4) [2023-01-24 13:32:34] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:35] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" incoming_bitrate (147136) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" total_bytes_read (147142) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" queue_size (72725) [2023-01-24 13:32:36] DBUG stats/modify_node_event update "/stream" connected (10) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global banned_IPs (0) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global listener_connections (0) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global listeners (0) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global source_relay_connections (0) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global stats (0) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global stats_connections (0) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global stream_kbytes_read (142) [2023-01-24 13:32:36] DBUG stats/stats_global_calc update global stream_kbytes_sent (0) [2023-01-24 13:32:36] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:36] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:36] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global client_connections (4) [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global clients (1) [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global connections (5) [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global source_client_connections (1) [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global source_total_connections (1) [2023-01-24 13:32:37] DBUG stats/stats_global_calc update global sources (1) [2023-01-24 13:32:38] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:39] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:39] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:39] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:39] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:40] DBUG stats/stats_global_calc update global client_connections (5) [2023-01-24 13:32:40] DBUG stats/stats_global_calc update global connections (6) [2023-01-24 13:32:40] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" incoming_bitrate (140032) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" total_bytes_read (227560) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" queue_size (73978) [2023-01-24 13:32:40] DBUG stats/modify_node_event update "/stream" connected (15) [2023-01-24 13:32:41] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:41] DBUG stats/stats_global_calc update global stream_kbytes_read (222) [2023-01-24 13:32:42] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:42] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:42] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:42] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:43] DBUG stats/stats_global_calc update global client_connections (6) [2023-01-24 13:32:43] DBUG stats/stats_global_calc update global connections (7) [2023-01-24 13:32:43] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:44] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:45] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:45] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:45] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:45] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" incoming_bitrate (137064) [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" total_bytes_read (308409) [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" queue_size (73978) [2023-01-24 13:32:46] DBUG stats/modify_node_event update "/stream" connected (20) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global banned_IPs (0) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global client_connections (7) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global connections (8) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global listener_connections (0) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global listeners (0) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global source_relay_connections (0) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global stats (0) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global stats_connections (0) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global stream_kbytes_read (300) [2023-01-24 13:32:46] DBUG stats/stats_global_calc update global stream_kbytes_sent (0) [2023-01-24 13:32:47] DBUG stats/stats_global_calc update global clients (1) [2023-01-24 13:32:47] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:47] DBUG stats/stats_global_calc update global source_client_connections (1) [2023-01-24 13:32:47] DBUG stats/stats_global_calc update global source_total_connections (1) [2023-01-24 13:32:47] DBUG stats/stats_global_calc update global sources (1) [2023-01-24 13:32:48] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:48] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:48] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:48] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:48] DBUG xslt/xslt_req_sheet file web//status-json.xsl has same mtime, not modified [2023-01-24 13:32:49] DBUG stats/stats_global_calc update global client_connections (8) [2023-01-24 13:32:49] DBUG stats/stats_global_calc update global connections (9) [2023-01-24 13:32:49] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:50] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" incoming_bitrate (134904) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" total_bytes_read (387867) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" queue_size (72725) [2023-01-24 13:32:51] DBUG stats/modify_node_event update "/stream" connected (25) [2023-01-24 13:32:51] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:51] DBUG stats/stats_global_calc update global stream_kbytes_read (377) [2023-01-24 13:32:51] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:51] DBUG connection/_handle_get_request start with /status-json.xsl [2023-01-24 13:32:51] DBUG auth/add_authenticated_listener Stats request, sending XSL transformed stats [2023-01-24 13:32:52] DBUG stats/stats_global_calc update global client_connections (9) [2023-01-24 13:32:52] DBUG stats/stats_global_calc update global connections (10) [2023-01-24 13:32:52] DBUG stats/stats_global_calc update global outgoing_kbitrate (2) [2023-01-24 13:32:53] DBUG stats/stats_global_calc update global outgoing_kbitrate (8) [2023-01-24 13:32:54] INFO source/source_read End of Stream /stream [2023-01-24 13:32:54] INFO source/source_shutdown Source "/stream" exiting [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" outgoing_kbitrate (0) [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" incoming_bitrate (131256) [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" total_bytes_read (443002) [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" total_bytes_sent (0) [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" total_mbytes_sent (0) [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" queue_size (72725) [2023-01-24 13:32:54] DBUG stats/modify_node_event update "/stream" connected (28) [2023-01-24 13:32:54] INFO source/source_set_fallback fallback on /stream to /../var/spool/sounds/fallbackfile_stream.mp3, but no listeners [2023-01-24 13:32:54] DBUG source/drop_source_from_tree stats still referenced on /stream [2023-01-24 13:32:54] DBUG stats/_free_source_stats delete source node /stream [2023-01-24 13:32:54] DBUG source/drop_source_from_tree removed source /stream (0x7fc418001ac0) from tree [2023-01-24 13:32:54] INFO source/source_client_read no more listeners on /stream [2023-01-24 13:32:54] DBUG source/source_clear_source clearing source "/stream" 0x7fc418001ac0 [2023-01-24 13:32:54] INFO source/_free_source freeing source "/stream" [2023-01-24 13:32:54] DBUG client/worker 0x558eb8fcad40 now has 1 clients [2023-01-24 13:32:54] DBUG fserve/find_fh /../var/spool/sounds/fallbackfile_stream.mp3 (4) not found in cache [2023-01-24 13:32:54] DBUG stats/stats_global_calc update global clients (0) [2023-01-24 13:32:54] DBUG stats/stats_global_calc update global outgoing_kbitrate (4) [2023-01-24 13:32:54] DBUG stats/stats_global_calc update global sources (0) [2023-01-24 13:32:54] DBUG stats/stats_global_calc update global stream_kbytes_read (431) [2023-01-24 13:32:54] DBUG yp/yp_pending_update running through YP changes [2023-01-24 13:32:54] DBUG yp/yp_pending_update Processed 1 changes [2023-01-24 13:32:55] DBUG fserve/find_fh /../var/spool/sounds/fallbackfile_stream.mp3 (4) not found in cache [2023-01-24 13:32:55] DBUG stats/stats_global_calc update global outgoing_kbitrate (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global banned_IPs (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global listener_connections (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global listeners (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global source_relay_connections (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global stats (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global stats_connections (0) [2023-01-24 13:32:56] DBUG stats/stats_global_calc update global stream_kbytes_sent (0) [2023-01-24 13:32:57] DBUG stats/stats_global_calc update global source_client_connections (1) [2023-01-24 13:32:57] DBUG stats/stats_global_calc update global source_total_connections (1) [2023-01-24 13:32:59] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20 [2023-01-24 13:32:59] DBUG connection/_handle_get_request start with /admin/stats [2023-01-24 13:32:59] DBUG admin/find_admin_command request (stats) not a builtin [2023-01-24 13:32:59] INFO admin/admin_handle_general_request processing file stats [2023-01-24 13:32:59] DBUG stats/stats_global_calc update global client_connections (10) [2023-01-24 13:32:59] DBUG stats/stats_global_calc update global connections (11) [2023-01-24 13:32:59] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x558eb8fcaa20

karlheyes commented 1 year ago

don't see any listeners on that, the outgoing bitrate seems to be 0 which matches the

[2023-01-24 13:32:54] INFO source/source_set_fallback fallback on /stream to /../var/spool/sounds/fallbackfile_stream.mp3, but no listeners
20com commented 1 year ago

True, sorry. I have tried again with a longer listening, and it works. I mean, if I listen it for 10 seconds and stop the source, it doesn't work, but if I listed it for longer (at least 1 min), it works :)

Anyway, with official Icecast version, it can play the backup file if you try to connect to the mountpoint and is not broadcasting. With KH is not working that way, only when you're listening and source fails. Could be possible to set it same way?

Thanks!!

karlheyes commented 1 year ago

That is a behavioural thing that might be preferred. With a stream present, we know there is a target bitrate but if there is no stream then something else needs to be determined. The file could be checked in certain cases but means more assessment but you can stipulate the target bitrate via the xml. The reason it takes about a minute is so that the incoming rate settles down (relays can burst for example) to something more appropriate. You can specify a bitrate tag in the stream mount or have a mount for the fallback with it in there or name the fallback file like something[128].mp3

karl