[SOLVED] Files don't show up in library after uploading
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    I just installed Airtime and got the configurations and everything setup for port 8010 (because I am already using port 80 for a website) and when I login to airtime and upload music, it uploads the music files successfully and I can find them in a ftp client in the /srv/airtime/stor/imported/organize directory but when I go to the library in airtime, the music i uploaded does not show up there. I can post the configuration or logs of any files that you want I am just not sure what yet.

    Edit:
    if it helps, the .identifier files are also being created. It is just not listing them in the library.
    Post edited by Marcus at 2013-06-04 17:08:13
  • 20 Comments sorted by
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    I did a complete fresh install of Airtime (cleared all the dependencies and such) and then something funny happened. The music that I uploaded before showed up in the library...but I still can't upload. So essentially I have to completely re-install airtime to get the music to show in the library.
    Post edited by Marcus at 2013-06-02 20:07:08
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    Now I have another problem to add...I tried creating the stream and everything worked fine untill i went to the stream settings and changed something. When I saved it seemed to delete this file: /etc/airtime/liquidsoap.cfg. I had it backed up from before so I tried uploading it because obveously airtime can't work without this file. But every time I upload it...airtime automatically deletes it. I have some weird problems going on. Is there anyone that can help. I have re-installed 7 times.
  • Hey! Which OS did you go with? And are you running from dedicated hardware or a virtual server? Probably not a good idea to use this on a machine with anything else, to be honest...
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    Ubuntuserver, Dedicated hardware.
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    Well it seemed to happen when I had the port of Airtime set to 8010 (because I also have a website on apache). Even though I went through every config file and changed the port to 8010. So for now my website is down and airtime is on port 80 because airtime is more important right now. It would be nice if airtime had support for more ports than port 80 though.
  • Sounds like your dependencies are broken or permissions are out of whack. The delay in adding files is normal because they're analyzed by silan and replaygain first. And yeah, Airtime is sorta locked to 80 right now, as you have also discovered. Keep on plugging away! The more you use it, the more you'll start to appreciate it. :)
  • @Marcus

    You can change the Airtime port. You have to edit two config files for it to work.
    Change the base_port in /etc/airtime/airtime.conf and /etc/airtime/api_client.cfg

    Once that is done, run these commands:

    sudo service airtime-media-monitor restart
    sudo service airtime-playout restart
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    @Denise

    After doing what you said, the output of airtime-check-system is as follows:
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = UNKNOWN
    MACHINE_ARCHITECTURE           = UNKNOWN
    TOTAL_MEMORY_MBYTES            = UNKNOWN
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = UNKNOWN
    OS                             = Ubuntu 12.04.2 LTS x86_64
    CPU                            = AMD Athlon(tm) II X3 425 Processor
    WEB_SERVER                     = Apache/2.2.22 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%
    -- Displaying log file /var/log/airtime/pypo/pypo.log
    --     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    -- HTTPError: HTTP Error 404: Not Found
    --
    -- 2013-06-03 16:31:32,866 INFO - [api_client.py : is_server_compatible() : line 162] - Unable to get Airtime version number.
    --
    --
    --
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = 0
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    -- Displaying log file /var/log/airtime/pypo-liquidsoap/ls_script.log
    -- 2013/06/03 16:31:17 [server:3] Client localhost disconnected.
    -- 2013/06/03 16:31:27 [server:3] New client: localhost.
    -- 2013/06/03 16:31:27 [server:3] Client localhost disconnected.
    -- 2013/06/03 16:31:27 [server:3] New client: localhost.
    -- 2013/06/03 16:31:27 [server:3] Client localhost disconnected.
    --
    --
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    -- Displaying log file /var/log/airtime/media-monitor/media-monitor.log
    --   File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    --     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    -- HTTPError: HTTP Error 404: Not Found
    --
    -- 2013-06-03 16:31:28,009 INFO - [Thread-1] [syncdb.py : reload_directories()] : LINE 49 - HTTP Error 404: Not Found
    --
    --
    -- There appears to be a problem with your Airtime installation.

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Did you update the /etc/apache/site-available/airtime?
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member

    Did you update the /etc/apache/site-available/airtime?



    Yes
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    What's the output when open url http://localhost:8010/?
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    It loads airtime, lets me log in. When I upload files they don't get added to the library, when I change stream settings it just deletes the liquidsoap.cfg, and a bunch of other weird problems.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    So you mean you can login by http://localhost:8010 but fail to execute airtime-check-system?
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    Yes, but tons of things are messed up. And I can run the airtime-check-system command:

    Post edited by Marcus at 2013-06-04 12:16:21
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Interesting, what's settings you made in /etc/apache/site-enabled/airtime? 
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member

    Interesting, what's settings you made in /etc/apache/site-enabled/airtime? 



    http://pastebin.com/u8jawSbJ
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    I think there is one line missing in airtime's site config:
    php_admin_value upload_tmp_dir /tmp

    BTW, how about /etc/airtime/airtime.conf and /etc/airtime/api_config.cfg, please cover the api-key.



    Post edited by Cliff Wang at 2013-06-04 15:34:59
    Cloud Radio -> http://airtime.pro
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    http://pastebin.com/3XBfJMvW - airtime.conf

    Btw thanks for helping. :D
  • Vote Up0Vote Down MarcusMarcus
    Posts: 16Member
    So...I tried re-installing airtime once again for the 7th time and set the ports and everything and it is working now! I'm really not sure what I did different to fix it but it's fixed! Thanks Cliff for your help!
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    You are welcome.

    I don't think airtime.conf is correct, should be like:
    [database]
    host = localhost
    dbname = airtime
    dbuser = airtime
    dbpass = airtime

    [rabbitmq]
    host = 127.0.0.1
    port = 5672
    user = airtime
    password = ***********************
    vhost = /airtime

    [general]
    api_key = *****************
    web_server_user = www-data
    airtime_dir = /usr/share/airtime
    base_url = localhost
    base_port = 80
    base_dir = /
    cache_ahead_hours = 1

    [monit]
    monit_user = guest
    monit_password = airtime

    [soundcloud]
    connection_retries = 3
    time_between_retries = 60

    Post edited by Cliff Wang at 2013-06-04 17:09:46
    Cloud Radio -> http://airtime.pro