Version 3.0.1 Debian - Oops! Something went wrong!

Hello everyone, trying here to install Libretime on a fresh machine. The script finished with no errors, i ran the database migrate and can see the site on por 8080 as requested with the install command:

sudo ./install --listen-port 8080 http://xxx.xxx.xx.xx

Nothing I had to change on the ylm config file
Did the migrate command and then started the target.

Can see the Libretime website but when I try to log in i get the:
Oops! Something went wrong!
Message.

Been reading the threads but nothing has really help my case cause also seems that logs have changed a bit now with this version.

Laslty, i did read something about chaning RabbitQM user password but it didnt mention how to acomplish such task

Any help is appreciated,
TIA

Hi,

The best way to troubleshoot your setup is to read the log files, in your case I would recommend starting with the legacy.log:

Thanks for your answer, i’ve reinstalled and moved a bit fwd but still same error on the web page, but on the backend i get quite positve output:

All services active and running


sudo systemctl --all --plain | egrep 'libretime|nginx|php.*-fpm'



  libretime-analyzer.service                                                                            loaded    active   running   LibreTime Media Analyzer Service                                                   
  libretime-api.service                                                                                 loaded    active   running   LibreTime API Service                                                              
  libretime-liquidsoap.service                                                                          loaded    active   running   LibreTime Liquidsoap Service                                                       
  libretime-playout.service                                                                             loaded    active   running   LibreTime Playout Service                                                          
  libretime-worker.service                                                                              loaded    active   running   LibreTime Worker Service                                                           
  nginx.service                                                                                         loaded    active   running   A high performance web server and a reverse proxy server                           
  php7.4-fpm.service                                                                                    loaded    active   running   The PHP 7.4 FastCGI Process Manager                                                
  libretime-api.socket                                                                                  loaded    active   running   LibreTime API Socket                                                               
  libretime.target                                                                                      loaded    active   active    LibreTime Services

Will continue to dig

I get to see this error through the legacy log, any hints appreciated

~/libretime$ tail -n 200 /var/log/libretime/legacy.log 
2023-01-30T18:05:50+01:00 INFO (6): You must explicitly start the session with Zend_Session::start() when session options are set to strict.
2023-01-30T18:06:02+01:00 ERR (3): [CORSHelper.php:13 - enableCrossOriginRequests()] - request origin 'http://135.181.216.23:8080' is not in allowed 'http://135.181.216.23, '!
2023-01-30T18:06:02+01:00 NOTICE (5): Trying to get property 'id' of non-object
2023-01-30T18:06:02+01:00 ERR (3): [ErrorController.php:28 - errorAction()] - Forbidden
2023-01-30T18:06:02+01:00 ERR (3): [ErrorController.php:29 - errorAction()] - #0 /usr/share/libretime/legacy/application/controllers/LoginController.php(24): CORSHelper::enableCrossOriginRequests()
#1 /usr/share/libretime/legacy/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(516): LoginController->indexAction()
#2 /usr/share/libretime/legacy/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch()
#3 /usr/share/libretime/legacy/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
#4 /usr/share/libretime/legacy/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#5 /usr/share/libretime/legacy/vendor/zf1s/zend-application/library/Zend/Application.php(391): Zend_Application_Bootstrap_Bootstrap->run()
#6 /usr/share/libretime/legacy/application/airtime-boot.php(77): Zend_Application->run()
#7 /usr/share/libretime/legacy/public/index.php(56): require_once('/usr/share/libr...')
#8 {main}
2023-01-30T18:06:02+01:00 ERR (3): [ErrorController.php:62 - errorAction()] - An internal application error has occurred.: Zend_Controller_Action_Exception: Forbidden in /usr/share/libretime/legacy/application/common/CORSHelper.php:15
Stack trace:
#0 /usr/share/libretime/legacy/application/controllers/LoginController.php(24): CORSHelper::enableCrossOriginRequests()
#1 /usr/share/libretime/legacy/vendor/zf1s/zend-controller/library/Zend/Controller/Action.php(516): LoginController->indexAction()
#2 /usr/share/libretime/legacy/vendor/zf1s/zend-controller/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch()
#3 /usr/share/libretime/legacy/vendor/zf1s/zend-controller/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
#4 /usr/share/libretime/legacy/vendor/zf1s/zend-application/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#5 /usr/share/libretime/legacy/vendor/zf1s/zend-application/library/Zend/Application.php(391): Zend_Application_Bootstrap_Bootstrap->run()
#6 /usr/share/libretime/legacy/application/airtime-boot.php(77): Zend_Application->run()
#7 /usr/share/libretime/legacy/public/index.php(56): require_once('/usr/share/libr...')
#8 {main}

If the above error is related to the config file, i have this there:

  # List of origins allowed to access resources on the server,
  # the [general.public_url] origin is automatically included.
  # > default is []
  allowed_cors_origins: []

The following line is important:

[CORSHelper.php:13 - enableCrossOriginRequests()] - request origin 'http://135.181.216.23:8080' is not in allowed 'http://135.181.216.23, '!

It says your origin (the url in your browser: http://135.181.216.23:8080) is not allowed. The list of allowed origins is currently ['http://135.181.216.23'] which is probably containing the general.public_url you configured (as described by the comment for the allowed_cors_origins setting).

You probably have to change your public url and including the port number http://135.181.216.23:8080 .

In addition, I now see your install command, and you missed the port in public_url arguments:

# From
sudo ./install --listen-port 8080 http://xxx.xxx.xx.xx

# To
sudo ./install --listen-port 8080 http://xxx.xxx.xx.xx:8080

Oh, so my mistake was to assume that by adding the --listen-port 8080 flag there was no need to be redundant on repeating the port :8080 portion to the URL.

Can I simply re-run the installer with the proper line?

ok, the change (error) was that… i had modiefied the config.yml file and added the :8080 port… FIXED