Jingles and Resource Usage

Hello,

I normally use Airtime, but today I installed Libretime because in Airtime I cannot automatically play Jingles (I manually add its every time), and after installing Libretime I saw that the same thing is here. Please tell me what is the difference and prons the libretime? (Sorry for my -Google Translate- English)

Biggest changes, newer UI, Podcasts, Auto Loading Playlists (ie automatically insert jingles/tracks/smartblocks), Bug fixes, Track Types (can categorize tracks based upon whether they are music/jingles/interviews etc), Compatible with newer versions of PHP & newer distributions of Linux vs. requiring an older version of PHP/distro to install. That’s the pros.

The cons are that it is in active development, there are bugs lurking and more might be introduced as we add new features, in theory it might no be as stable as airtime.

1 Like

Could you give some more details about using this feature?
especially about using JIN - Jingles.
I need to repeat the jingle every 3 songs.
how to do it ?

So the auto loading playlist would require you to basically create a playlist that includes a jingle smartblock setup as a dynamic smartblock that chooses 1 random item of type jingle. Then you would a smartblock have it choose 3 blocks of type music filtered however.

You can watch some of these videos - https://www.youtube.com/channel/UC-MA9GzkTb8th1YlDmF0NfA/videos - they were made before we implemented track types but if anything this should make the smartblock filtering easier/more intuitive. Let me know if you have any specific questions, it requires a little playing around with to understand.

But basically an autoloading playlist can be setup to repeat to fill a show and you can have it choose whatever you want in that loop. I can answer more specific questions if you run into anything trying to follow the tutorials.

1 Like

Well, thanks, I’ll watch and try, I hope I can do it, because it is very important for me. if it doesn’t work out, I will write to you.

I have another question about the use of resources.
Airtime uses 15% of the CPU (on Vultr $2.50/mo package with 1 CPU and 512MB RAM - Ubuntu 16.04) but
LibreTime uses 50% of the CPU (on Hetzner €2.49/mo. package with 1 CPU and 2GB RAM - Ubuntu 18.04)

why is LibreTime using so many resources? maybe I installed it wrong? or is it ok?

Airtime

Libretime

Also, when I click Status link (on Settings) /systemstatus

and when I click Save button in General (on Settings) /preference

i get an error message

Oops!
Something went wrong!

/var/log/airtime/zend-php.log

2020-07-21T09:24:50+03:00 WARN (4): ahiskaradyo.com SQLSTATE[55P03]: Lock not available: 7 ERROR:  could not obtain lock on row in relation "cc_pref"
2020-07-21T12:39:11+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:26 - errorAction()] - ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2020-07-21T12:39:11+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:27 - errorAction()] - #0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(106): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(57): checkRMQConnection()
#8 /usr/share/airtime/php/airtime_mvc/application/views/scripts/systemstatus/index.phtml(7): checkExternalServices()
#9 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View.php(157): include('/usr/share/airt...')
#10 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View/Abstract.php(890): Zend_View->_run('/usr/share/airt...')
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('systemstatus/in...', NULL)
#13 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#17 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#21 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#22 {main}
2020-07-21T12:39:11+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:54 - errorAction()] - An internal application error has occurred.: PhpAmqpLib\Exception\AMQPProtocolConnectionException: ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile. in /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php:661
Stack trace:
#0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(106): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(57): checkRMQConnection()
#8 /usr/share/airtime/php/airtime_mvc/application/views/scripts/systemstatus/index.phtml(7): checkExternalServices()
#9 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View.php(157): include('/usr/share/airt...')
#10 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View/Abstract.php(890): Zend_View->_run('/usr/share/airt...')
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('systemstatus/in...', NULL)
#13 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#17 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#21 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#22 {main}
2020-07-21T12:39:30+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:26 - errorAction()] - ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2020-07-21T12:39:30+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:27 - errorAction()] - #0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/application/models/RabbitMq.php(23): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/application/models/RabbitMq.php(50): Application_Model_RabbitMq::sendMessage('airtime-pypo', 'direct', true, '{"station_name"...')
#8 /usr/share/airtime/php/airtime_mvc/application/models/Preference.php(226): Application_Model_RabbitMq::SendMessageToPypo('update_station_...', Array)
#9 /usr/share/airtime/php/airtime_mvc/application/controllers/PreferenceController.php(43): Application_Model_Preference::SetHeadTitle('Ah\xC4\xB1ska Radyo', Object(Zend_View))
#10 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(516): PreferenceController->indexAction()
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#14 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#15 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#16 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#17 {main}
2020-07-21T12:39:30+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:54 - errorAction()] - An internal application error has occurred.: PhpAmqpLib\Exception\AMQPProtocolConnectionException: ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile. in /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php:661
Stack trace:
#0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/application/models/RabbitMq.php(23): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/application/models/RabbitMq.php(50): Application_Model_RabbitMq::sendMessage('airtime-pypo', 'direct', true, '{"station_name"...')
#8 /usr/share/airtime/php/airtime_mvc/application/models/Preference.php(226): Application_Model_RabbitMq::SendMessageToPypo('update_station_...', Array)
#9 /usr/share/airtime/php/airtime_mvc/application/controllers/PreferenceController.php(43): Application_Model_Preference::SetHeadTitle('Ah\xC4\xB1ska Radyo', Object(Zend_View))
#10 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(516): PreferenceController->indexAction()
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#13 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#14 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#15 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#16 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#17 {main}
2020-07-21T12:43:33+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:26 - errorAction()] - ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2020-07-21T12:43:33+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:27 - errorAction()] - #0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(106): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(57): checkRMQConnection()
#8 /usr/share/airtime/php/airtime_mvc/application/views/scripts/systemstatus/index.phtml(7): checkExternalServices()
#9 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View.php(157): include('/usr/share/airt...')
#10 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View/Abstract.php(890): Zend_View->_run('/usr/share/airt...')
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('systemstatus/in...', NULL)
#13 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#17 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#21 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#22 {main}
2020-07-21T12:43:33+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:54 - errorAction()] - An internal application error has occurred.: PhpAmqpLib\Exception\AMQPProtocolConnectionException: ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile. in /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php:661
Stack trace:
#0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(106): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(57): checkRMQConnection()
#8 /usr/share/airtime/php/airtime_mvc/application/views/scripts/systemstatus/index.phtml(7): checkExternalServices()
#9 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View.php(157): include('/usr/share/airt...')
#10 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View/Abstract.php(890): Zend_View->_run('/usr/share/airt...')
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('systemstatus/in...', NULL)
#13 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#17 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#21 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#22 {main}
2020-07-21T12:45:36+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:26 - errorAction()] - ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2020-07-21T12:45:36+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:27 - errorAction()] - #0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(106): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(57): checkRMQConnection()
#8 /usr/share/airtime/php/airtime_mvc/application/views/scripts/systemstatus/index.phtml(7): checkExternalServices()
#9 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View.php(157): include('/usr/share/airt...')
#10 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View/Abstract.php(890): Zend_View->_run('/usr/share/airt...')
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('systemstatus/in...', NULL)
#13 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#17 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#21 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#22 {main}
2020-07-21T12:45:36+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:54 - errorAction()] - An internal application error has occurred.: PhpAmqpLib\Exception\AMQPProtocolConnectionException: ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile. in /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php:661
Stack trace:
#0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(106): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')
#7 /usr/share/airtime/php/airtime_mvc/build/airtime-setup/load.php(57): checkRMQConnection()
#8 /usr/share/airtime/php/airtime_mvc/application/views/scripts/systemstatus/index.phtml(7): checkExternalServices()
#9 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View.php(157): include('/usr/share/airt...')
#10 /usr/share/airtime/php/vendor/zf1s/zend-view/library/Zend/View/Abstract.php(890): Zend_View->_run('/usr/share/airt...')
#11 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(912): Zend_View_Abstract->render(NULL)
#12 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(933): Zend_Controller_Action_Helper_ViewRenderer->renderScript('systemstatus/in...', NULL)
#13 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/Helper/ViewRenderer.php(972): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('indexAction')
#17 /usr/share/airtime/php/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /usr/share/airtime/php/vendor/zf1s/zend-application/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /usr/share/airtime/php/airtime_mvc/application/airtime-boot.php(84): Zend_Application->run()
#21 /usr/share/airtime/php/airtime_mvc/public/index.php(68): require_once('/usr/share/airt...')
#22 {main}
2020-07-21T12:46:04+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:26 - errorAction()] - ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.
2020-07-21T12:46:04+03:00 ERR (3): ahiskaradyo.com [ErrorController.php:27 - errorAction()] - #0 [internal function]: PhpAmqpLib\Connection\AbstractConnection->connection_close(Object(PhpAmqpLib\Wire\AMQPReader))
#1 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(199): call_user_func(Array, Object(PhpAmqpLib\Wire\AMQPReader))
#2 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(341): PhpAmqpLib\Channel\AbstractChannel->dispatch('10,50', '\x01\x93oACCESS_REFUS...', NULL)
#3 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(212): PhpAmqpLib\Channel\AbstractChannel->wait(Array)
#4 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(180): PhpAmqpLib\Connection\AbstractConnection->connect()
#5 /usr/share/airtime/php/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Connection/AMQPStreamConnection.php(59): PhpAmqpLib\Connection\AbstractConnection->__construct('airtime', 'airtime', '/airtime', false, 'AMQPLAIN', NULL, 'en_US', Object(PhpAmqpLib\Wire\IO\StreamIO), 0)
#6 /usr/share/airtime/php/airtime_mvc/application/models/RabbitMq.php(23): PhpAmqpLib\Connection\AMQPStreamConnection->__construct('127.0.0.1', '5672', 'airtime', 'airtime', '/airtime')

I solved the problem with the help #333

I applied the following commands in order.

sudo rabbitmqctl change_password airtime newpassword

Then update the following file with the new password:
/etc/airtime/airtime.conf

sudo -u postgress psql

ALTER USER airtime WITH ENCRYPTED PASSWORD 'newpassword';

Then update the following files with the new password:
database section:
/etc/airtime/airtime.conf
database driver section:
/usr/share/airtime/php/airtime_mvc/build/build.properties
dsn section:
/usr/share/airtime/php/airtime_mvc/build/runtime-conf.xml

Step One:

Set your music with “Track Type” option to “Music”. You would want to set other tracks as well, so if it is jingles, then set it to “Jingles”

Step Two:

Create a Smart Block and give it a name for your music (eg. Music - 3x) or for jingles (eg. Jingles 3x) . You can name it anything.

Set search criteria: [Track Type] [is] [Music]

Set Limit to: [3] [items]

Now you can add these Smart Blocks anywhere.

Step Three:

Create a playlist and arrange Smart Blocks the way you want it. Example:

Let’s say you named your playlist “Morning Show” for 1hr show. You drag all your smart blocks in the order you wish inside that playlist. Example:

SmartBlocks in this order inside Playlist

:arrow_forward: Intro
:arrow_forward: Music - 3x
:arrow_forward: Jingles - 3x
:arrow_forward: Music - 3x
:arrow_forward: Jingles - 3x
:arrow_forward: Music - 3x
:arrow_forward: Jingles - 3x
:arrow_forward: Music - 3x
:arrow_forward: Jingles - 3x
:arrow_forward: Music - 3x
:arrow_forward: Jingles - 3x
:arrow_forward: Music - 3x
:arrow_forward: Jingles - 3x

More than an hour worth if the show is an hour. If you’re not going to include Intro, you can just stop with two Smart Blocks, and set “Repeat Playlist into Full” on the show’s options but it will repeat the intro as well. We might need to create an option to not include 1st track.

Step Four:

Now you can add the Playlist to your show in Calendar, using Autoloading Playlist.

1 Like

Yes, I already did exactly the same thing, thank you very much.

Unfortunately I could not make a playlist with repeat into full for 24 hours. :frowning:

1 Like

How are you setting your show? It should work if you set the time from 0:00 to 0:00. You would need to set it up for the next day, and just have a different show for today since it won’t be able to do the repeat correctly. So if today is the 22nd, then create the show to start at 00:00 on the 23rd and ends on 00:00 on the 24th. So it looks like this:

I created a music (3 item) smart block and a jingle (1 item) smart block and then combined into playlist, works great, but when i use this in Show with Autoloading Playlist (Repeat Playlist Until Show is Full) for 24 hour it is not working, gives out only fews music items and fews jingles…

and how can we solve the high resource usage problem?

Autoloading Playlist (Repeat Playlist Until Show is Full) for 24 hour it is not working, gives out only fews music items and fews jingles…:frowning:

whats is wrong ? why not working ?

high CPU usage problems solved after fixing ACCESS and CONNECT problems “airtime” user to RabbitMQ

rabbitmqctl add_vhost /airtime
rabbitmqctl add_user airtime ZS0L42212JSQ1HL1JKWE # Key must be same as airtime.conf
rabbitmqctl set_permissions -p /airtime airtime "airtime-pypo|pypo-fetch|airtime-media-monitor|media-monitor" "airtime-pypo|pypo-fetch|airtime-media-monitor|media-monitor" "airtime-pypo|pypo-fetch|airtime-media-monitor|media-monitor"
rabbitmqctl change_password airtime password # password must be same as airtime.conf
invoke-rc.d rabbitmq-server restart
rabbitmqctl clear_permissions -p /airtime airtime
rabbitmqctl set_permissions -p /airtime airtime "." "." ".*"
invoke-rc.d rabbitmq-server restart

So I have problem only with Autoloading Playlist with Jingles :slight_smile:

If I can make Autoloading Playlist with Jingles until show is full, then I will finally switch from Airtime to LibreTime.

I thought that this is related to server resources, probably there is not enough server resources for operation. (my server 1vCPU and 2GB RAM) and I rescaled server to 2 vCPU but with a doubled processor (2 vCPU) also failed to create Autoloading Playlist with Jingles until show is full for 24 Hours.

Unfortunately, I failed to create a 24-hour show, so I divided the 24 hours into 6-hour slices and created shows. An automatic playlist was created for the first 6-hour slice. I could only solve it this way for now…

Schedule

Hmm, not sure why it is not working but here is one possible issue. The autoloading playlist is not propogated until 1 hour before the show is supposed to air. So it will be blank until then. There has been talk about making this happen at different time intervals but I haven’t been doing much libretime coding (or checking on the forums) sorry for the delay in responding.