Install problem libretime-3.0.0-beta.0

Sorry for my English, I go through translator being French.
First of all I would like to thank you for taking over the project and solving the php7 problem etc.

I’m trying to install on a freshly installed and updated ubuntu 20.04.
I’m having trouble installing, so I’m attaching the Terminal log:

Désolé pour mon anglais, je passe par traducteur étant français.
Tout d’abord je tien a vous remercier d’avoir repris le projet et résolu le problème php7 etc.

Je tente de faire une installation sur un ubuntu 20.04 fraîchement installé et mis à jour.
J’ai des problèmes d’installation, alors je vous joint l’historique du Terminal :

shortened version because too long :
in red :

Ver Cluster Port Status Owner    Data directory              Log file
12  main    5432 down   postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log

ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.


2022-09-23 11:09:13.562 | WARNING  | libretime_shared.config._base:_load_file_values:62 - provided config filepath '/etc/libretime/config.yml' is not a file
2022-09-23 11:09:13.563 | CRITICAL | libretime_shared.config._base:__init__:50 - 1 validation error for Config
general
  field required (type=value_error.missing)
maradio@maradio-Latitude-E6420:~/libretime$ sudo systemctl start libretime.target
Failed to start libretime.target: Unit libretime.target not found.
maradio@maradio-Latitude-E6420:~/libretime$ 
maradio@maradio-Latitude-E6420:~/libretime$ sudo -u libretime libretime-api migrate
2022-09-23 11:13:28.525 | WARNING  | libretime_shared.config._base:_load_file_values:62 - provided config filepath '/etc/libretime/config.yml' is not a file
2022-09-23 11:13:28.526 | CRITICAL | libretime_shared.config._base:__init__:50 - 1 validation error for Config
general
  field required (type=value_error.missing)
 

Hey,
This is the important line:

2022-09-23 11:09:13.562 | WARNING  | libretime_shared.config._base:_load_file_values:62 - provided config filepath '/etc/libretime/config.yml' is not a file

Seems like your configuration file is not present, you need to fix that and make sure all the required fields are set. Otherwise the configuration validator will fail hard.

Thank you for your reply. The file is there and is long. I have to do what exactly?

# See https://libretime.org/docs/admin-manual/setup/configuration/

general:
  # The public url.
  # > this field is REQUIRED
  public_url: 192.168.1.36:80
  # The internal API authentication key.
  # > this field is REQUIRED
  api_key: .......................
  # List of origins allowed to access resources on the server, the public url
  # origin is automatically included.
  # > default is []
  allowed_cors_origins: []

  # The server timezone, should be a lookup key in the IANA time zone database,
  # for example Europe/Berlin.
  # > default is UTC
  timezone: UTC

  # How many hours ahead Playout should cache scheduled media files.
  # > default is 1
  cache_ahead_hours: 1

  # Authentication adaptor to use for the legacy service, specify a class like
  # LibreTime_Auth_Adaptor_FreeIpa to replace the built-in adaptor.
  # > default is local
  auth: local

storage:
  # Path of the storage directory.
  # > default is /srv/libretime
  path: /srv/libretime

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: ..........................

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: ........................

playout:
  # Liquidsoap connection host.
  # > default is localhost
  liquidsoap_host: localhost
  # Liquidsoap connection port.
  # > default is 1234
  liquidsoap_port: 1234

  # The format for recordings.
  # > must be one of (ogg, mp3)
  # > default is ogg
  record_file_format: ogg
  # The bitrate for recordings.
  # > default is 256
  record_bitrate: 256
  # The samplerate for recordings.
  # > default is 44100
  record_samplerate: 44100
  # The number of channels for recordings.
  # > default is 2
  record_channels: 2
  # The sample size for recordings.
  # > default is 16
  record_sample_size: 16

liquidsoap:
  # Liquidsoap server listen address.
  # > default is 127.0.0.1
  server_listen_address: "127.0.0.1"
  # Liquidsoap server listen port.
  # > default is 1234
  server_listen_port: 1234

  # Input harbor listen address.
  # > default is ["0.0.0.0"]
  harbor_listen_address: ["0.0.0.0"]

stream:
  # Inputs sources.
  inputs:
    # Main harbor input.
    main:
      # Harbor input public url. If not defined, the value will be generated from
      # the [general.public_url] hostname, the input port and mount.
      public_url:
      # Mount point for the main harbor input.
      # > default is main
      mount: main
      # Listen port for the main harbor input.
      # > default is 8001
      port: 8001

    # Show harbor input.
    show:
      # Harbor input public url. If not defined, the value will be generated from
      # the [general.public_url] hostname, the input port and mount.
      public_url:
      # Mount point for the show harbor input.
      # > default is show
      mount: show
      # Listen port for the show harbor input.
      # > default is 8002
      port: 8002

  # Output streams.
  outputs:
    # Default icecast output
    # This can be reused to define multiple outputs without duplicating data
    .default_icecast_output: &default_icecast_output
      host: localhost
      port: 8000
      source_password: ..........................
      admin_password: ..........................
      name: LibreTime!
      description: LibreTime Radio!
      website: https://libretime.org
      genre: various

    # Icecast output streams.
    # > max items is 3
    icecast:
      # The default Icecast output stream
      - <<: *default_icecast_output
        enabled: true
        public_url:
        mount: main
        audio:
          format: ogg
          bitrate: 256

      # You can define extra outputs by reusing the default output using a yaml anchor
      - <<: *default_icecast_output
        enabled: false
        mount: main-low
        audio:
          format: ogg
          bitrate: 128

      - # Whether the output is enabled.
        # > default is false
        enabled: false
        # Output public url, If not defined, the value will be generated from
        # the [general.public_url] hostname, the output port and mount.
        public_url:
        # Icecast server host.
        # > default is localhost
        host: localhost
        # Icecast server port.
        # > default is 8000
        port: 8000
        # Icecast server mount point.
        # > this field is REQUIRED
        mount: main
        # Icecast source user.
        # > default is source
        source_user: source
        # Icecast source password.
        # > this field is REQUIRED
        source_password: hackme
        # Icecast admin user.
        # > default is admin
        admin_user: admin
        # Icecast admin password. If not defined, statistics will not be collected.
        admin_password: hackme

        # Icecast output audio.
        audio:
          # Icecast output audio format.
          # > must be one of (aac, mp3, ogg, opus)
          # > this field is REQUIRED
          format: ogg
          # Icecast output audio bitrate.
          # > must be one of (32, 48, 64, 96, 128, 160, 192, 224, 256, 320)
          # > this field is REQUIRED
          bitrate: 256

          # format=ogg only field: Embed metadata (track title, artist, and show name)
          # in the output stream. Some bugged players will disconnect from the stream
          # after every songs when playing ogg streams that have metadata information
          # enabled.
          # > default is false
          enable_metadata: false

        # Icecast stream name.
        name: LibreTime!
        # Icecast stream description.
        description: LibreTime Radio!
        # Icecast stream website.
        website: https://libretime.org
        # Icecast stream genre.
        genre: various

    # Shoutcast output streams.
    # > max items is 1
    shoutcast:
      - # Whether the output is enabled.
        # > default is false
        enabled: false
        # Output public url. If not defined, the value will be generated from
        # the [general.public_url] hostname and the output port.
        public_url:
        # Shoutcast server host.
        # > default is localhost
        host: localhost
        # Shoutcast server port.
        # > default is 8000
        port: 8000
        # Shoutcast source user.
        # > default is source
        source_user: source
        # Shoutcast source password.
        # > this field is REQUIRED
        source_password: hackme
        # Shoutcast admin user.
        # > default is admin
        admin_user: admin
        # Shoutcast admin password. If not defined, statistics will not be collected.
        admin_password: hackme

        # Shoutcast output audio.
        audio:
          # Shoutcast output audio format.
          # > must be one of (aac, mp3)
          # > this field is REQUIRED
          format: mp3
          # Shoutcast output audio bitrate.
          # > must be one of (32, 48, 64, 96, 128, 160, 192, 224, 256, 320)
          # > this field is REQUIRED
          bitrate: 256

        # Shoutcast stream name.
        name: LibreTime!
        # Shoutcast stream website.
        website: https://libretime.org
        # Shoutcast stream genre.
        genre: various

    # System outputs.
    # > max items is 1
    system:
      - # Whether the output is enabled.
        # > default is false
        enabled: false
        # System output kind.
        # > must be one of (alsa, ao, oss, portaudio, pulseaudio)
        # > default is alsa
        kind: alsa

Please give more details and context to your questions.

  1. I was referring to the configuration file that was missing, so make sure the configuration file path is right. You might have a configuration file at /etc/libretime/config.yml.tmp which is not the right path.
  2. The libretime.target systemd unit is also missing from your installation:
maradio@maradio-Latitude-E6420:~/libretime$ sudo systemctl start libretime.target
Failed to start libretime.target: Unit libretime.target not found.

So make sure the installation succeeded before going any further. If your installation failed please read the installation logs, and post them if you didn’t find your error.

Hello and thank you again for your help. What do I do for the error log to put it here for you?
Personally, I don’t see what to do. I await your help.

Sorry but I will not do your work, I can only give you some pointers and links.

Simply try again, and read the logs. Use docker-compose if you aren’t comfortable installing LibreTime using the installer script.

It got complicated. I had been able to install airtime by following a tutorial, but in 32 bits, except here the computer is in 64 bits. Your libretime recovery would allow me to be on Xubuntu 20 much better than having to be on Debian 8 openbox.
Where do I find newspapers?
After that I don’t understand the dock since everything is in English.
I’m not far from getting there because starting, choice session there is now a libretime, but I do not know the password.

Thanks for the help anyway. So close to the goal! Tempi, we arrive in October and I will have no choice but to use airtime on debian 8 or radio dj on win7. Good luck with your project, but helas too complex because partly installed, but unusable.

Hello, I had icecast2 which was already working and there I installed apache. After restarting the installation, I have these problems:

maradio@maradio-Latitude-E6420:~/libretime$ sudo -u libretime libretime-api migrate
2022-09-28 10:38:22.280 | WARNING  | libretime_shared.config._base:_load_file_values:62 - provided config filepath '/etc/libretime/config.yml' is not a file
2022-09-28 10:38:22.282 | CRITICAL | libretime_shared.config._base:__init__:50 - 1 validation error for Config
general
  field required (type=value_error.missing)

maradio@maradio-Latitude-E6420:~/libretime$ sudo systemctl start libretime.target
Failed to start libretime.target: Unit libretime.target not found.

Thank you in advance for your help so that I no longer have these errors.