Cannot Log In to LibreTime

Greetings, I’ve just installed LibreTime and cannot login to manage the station. I’m using Debian 11 from Digital Ocean, I’ve pointed a qualified domain name to the Ip address using No Ip. I’ve opened port# 8000 and 8080 (Not sure if that was required).
I followed the instructions from this Install using the installer | LibreTime and used the “Git repository” method. Everything went well, no errors, no issues.

Describe the problem
After the installation is completed then I visite: 143.198.141.114:8080/
I could not log in
I’ve tried admin & admin that did not work so I went to the configuration file: sudo nano /etc/libretime/config.yml then saw that the username for the database was libretime hence I tried libretime & libretime as username and password, yet the issue persist so I copied the password found in the configuration file, but to no avail. I found an old post which advised to do this: [quote=“maxtimbo, post:2, topic:1232”]
sudo -u postgres psql airtime
[/quote]
I got an error because my database is called libretime so I’vr changed airtime to libretime and restart libretime. That created another issue now once I click on log in the error populate even before I get a chance to type anything.

To reproduce
Steps to reproduce the behavior.

  1. Go to 143.198.141.114:8080/
  2. Click on …
  3. Scroll down to …
  4. See error

Expected behavior
I was expecting to see the correct username & password from the following /etc/libretime/config.yml but their don’t work. Can someone help me? So I’ve just reinstalled LibreTime and did not mess with it, here is what I see in /etc/libretime/config.yml perhaps I don’t know where to look for it.

database:
  # The hostname of the PostgreSQL server.
  # > default is localhost
  host: localhost
  # The port of the PostgreSQL server.
  # > default is 5432
  port: 5432
  # The name of the PostgreSQL database.
  # > default is libretime
  name: libretime
  # The username of the PostgreSQL user.
  # > default is libretime
  user: libretime
  # The password of the PostgreSQL user.
  # > default is libretime
  password: 44jdG654Drvms4ULqGACF3ddxccKPpaV
rabbitmq:
  # The hostname of the RabbitMQ server.
  # > default is localhost
  host: localhost
  # The port of the RabbitMQ server.
  # > default is 5672
  port: 5672
  # The virtual host of RabbitMQ server.
  # > default is /libretime
  vhost: /libretime
  # The username of the RabbitMQ user.
  # > default is libretime
  user: libretime
  # The password of the RabbitMQ user.
  # > default is libretime
  password: 6Re2jPNXGva0lumdPaaRhAv6JyiEQ1DE

LibreTime version
unknow

if music is playing that means the issue was resolved.

Greetings, I am writing to follow up on the login difficulties previously reported, which unfortunately continue to persist despite my recent efforts to implement a fresh installation.

After several months of attempting to resolve this issue, I have now successfully installed LibreTime version 4.5.0 on the same Debian 11 system using the official installer method. However, when attempting to access the application via http://haitirapkreyol.com:8080/login, I encounter the following error message:
Oops! Something went wrong!

Troubleshooting help More help

This recurring problem suggests there may be an underlying configuration or compatibility issue that I have not yet identified. Could you please provide guidance on the appropriate troubleshooting steps to diagnose and resolve this authentication failure?

I would appreciate any insights into what specific aspects of the installation or configuration I should examine to successfully access the LibreTime administration interface.

I want to let everybody know that I was able to fix the issue. It was actually fixes the other night but I was not sure how I fixed it so I nuked my server and started from the beginning and this time I selected Ubuntu 20.04 instead of Debian 11 (I’m unsure if this is a relevant factor) I followed the instructions to install libretime-4.5.0 on Ubuntu 20.04 and after the migration was completed I started libretime and here is what solves the issue and I did not do it previously.
sudo nano /etc/libretime/config.yml

then only edit the following listed below

General:
public_url: http://yourdomain.com:8080

allowed_cors_origins:
- "http://yourdomain.com:8080"
then saved the file with clt + x then hit yes, then hit Enter.

Remember to replace yourdomain.com with your actual domain name or ip address. I did not type the port# at the end of my domain name hence the reason I was not able to login. Once you add the port# :8080 after your domain name in boh locations of the config file /etc/libretime/config.yml then you’ll be able to login. I hope that this post will help someone who is experiencing the same issue.

Enjoy Libre Time

Thanks for persisting and coming back with the answer. This was bugging me just now. The troubleshooting section does mention that the URL in the browser and in the config need to be the same, but they really need to be the exact same. Down to http or https and the ports.

1 Like

I’m glad that I was able to help