Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    11,246
    Our posts crossed - your logs provide the same info that seems to match the bug report.

    It looks sort sort of a timing issue - the last entry bug report indicates a workaround that might work by creating a resolv.conf file with relevant entries.

  2. #12
    Junior Member
    Join Date
    Jan 2010
    Posts
    10

    Couldn't resolve IP address

    Quote Originally Posted by nowork View Post
    Hi,

    In the past, there has been a problem with the squeezeboxserver service starting before the network services on linux/fedora at boot. When that happens squeezeboxserver can't successfully perform DNS lookups and fails to connect to the Internet. Other linux commands, e.g. ping, are invoked after the network is "up," and thus work correctly.

    A quick way to see if there is a DNS/network issue is to try a command line "service squeezeboxserver restart" Then see if squeezeboxserver connects to the Internet/mysqueezeboxserver.

    If this works, a more permanent solution/workaround is to delay the startup of squeezeboxserver until after the network is up.

    Good Luck!
    I changed from Kubuntu on a wired network connection to the same box (an Acer Aspire Revo) using wifi and had the same problem. The restart command solved the problem for me. I looked at the /etc/init.d file, hoping that bum might help retime the initialisation.

    In the end, I added the restart command to the KDE Autostart menu in System Settings/Startup Shutdown by popping the command into a script file called 'squeezeboxserver.sh'. As I am using the Logitech Media Server 7.7.1, I needed to change the command, appropriately.

    By disabling kdewallet, the wifi connection starts up without a password and I set Session Management/Default Leave option to 'Turn Off Computer'. This way I can use the server computer in headless mode. Turning it on automatically logs into Kubuntu, a wifi connection and Logitech Media Server. A brief operation of the power button shuts it down after 30 seconds.

    Regards
    Roy Leith

  3. #13
    Junior Member
    Join Date
    Jan 2010
    Posts
    10
    Quote Originally Posted by Roy Leith View Post
    In the end, I added the restart command to the KDE Autostart menu in System Settings/Startup Shutdown by popping the command into a script file called 'squeezeboxserver.sh'. As I am using the Logitech Media Server 7.7.1, I needed to change the command, appropriately.

    By disabling kdewallet, the wifi connection starts up without a password and I set Session Management/Default Leave option to 'Turn Off Computer'. This way I can use the server computer in headless mode. Turning it on automatically logs into Kubuntu, a wifi connection and Logitech Media Server. A brief operation of the power button shuts it down after 30 seconds.

    Regards
    Roy Leith
    And it was a disaster! Just putting the command into Autostart did not do the trick. It probably gave up, without superuser privileges. I tried a bash script with a 20s sleep and that stopped the system dead. I had to restart by leaning on the power button. I tried Task Scheduler, but it would only allow personal tasks and the restart command needs superuser privileges. I logged in as root and put a system task in. I tried it out and it claimed to be restarting the server, but it did not solve the problem. Running the command in a terminal as root was fine.

    I put xx at the beginning of the logitechmediaserver file in /etc/init.d. Even though it ran after the network management daemon, it was still too early. I am now stumped.

    For now, I will turn on the television I am using as a monitor and use my launcher to restart the server as kdesudo superuser.

    If anyone comes up with an effective way of running the Logitech Media Server machine as a headless commodity device, I would love to hear it!

    Regards
    Roy Leith

  4. #14
    Senior Member
    Join Date
    May 2008
    Location
    United States
    Posts
    8,154
    Quote Originally Posted by Roy Leith View Post
    If anyone comes up with an effective way of running the Logitech Media Server machine as a headless commodity device, I would love to hear it!

    Regards
    Roy Leith
    not exactly what you are asking, but I run LMS as a headless 24/7, rarely have to touch "device" using Vortexbox (a fedora linux system packaged with a webGUI designed for running/updating things like LMS, SONOS, etc.). Works nicely. Vortexbox can be installed on just about any old computer.
    Location 1: VortexBox Appliance 6TB (2.2) > LMS 7.7.2 > Transporter, Touch, Boom, Radio w/Battery (all ethernet)
    Location 2: VBA 3TB (2.2) > LMS 7.7.2 > Touch > Benchmark DAC I, Boom, Radio w/Battery (all ethernet except Radio)
    Office: Win7(64) > LMS 7.7.2 > SqueezePlay
    Spares: VBA 4TB, SB3, Touch (3), Radio (3), CONTROLLER
    Controllers: iPhone4S (iPeng), iPad2 (iPengHD & SqueezePad), CONTROLLER, or SqueezePlay 7.7 on Win7(64) laptop
    Ripping (FLAC) - dbpoweramp, Tagging - mp3tag, Spotify

  5. #15
    Junior Member
    Join Date
    Jan 2010
    Posts
    10

    Couldn't resolve IP address for: www.mysqueezebox.com: Solved!

    Quote Originally Posted by Roy Leith View Post
    I logged in as root and put a system task in. I tried it out and it claimed to be restarting the server, but it did not solve the problem. Running the command in a terminal as root was fine.
    The challenge was to turn my Acer Aspire Revo into an appliance I could turn on and off without needing a screen. It is wifi connected and the network manager needs time to set up the wifi connection. Then I needed superuser powers to restart the Squeezebox server.

    I ran sudo systemsettings to add,

    sh "/home/roy/Documents/Scripts/service logitechmediaserver restart.sh"
    as a System Cron in Task Manager to run at boot. Here is the script it points to,
    sleep 40 > /dev/null
    service logitechmediaserver restart > /dev/null
    I should, probably, have tried > /dev/null at the end of the cron command, but what I have done, does work. The sleep line gives a 40 second delay before the restart. When I get a round tuit, I will try reduced values. For now, I can turn the Revo on and off, correctly, with the power button and get the full service as long as I give it time to 'warm up'.

    Regards Roy Leith

  6. #16
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Västerås Sweden
    Posts
    11,660
    Quote Originally Posted by Roy Leith View Post

    If anyone comes up with an effective way of running the Logitech Media Server machine as a headless commodity device, I would love to hear it!

    Regards
    Roy Leith
    besides vortex box almost any server linux or or linux can be used to this effect I use ClarkConect linux (nowadays they are clear OS ) and just install the rpm build of LMS , LMS has it own web-UI the server has it own UI .
    I cinfigured a samba share to for copying the music it also has a music-ip server .
    --------------------------------------------------------------------
    Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
    Bedroom/Office: Boom
    Kitchen: Touch + powered Fostex PM0.4
    Misc use: Radio (with battery)
    iPad1 with iPengHD & SqueezePad
    (in storage SB3, reciever ,controller )
    server HP proliant micro server N36L with ClearOS Linux

    http://people.xiph.org/~xiphmont/demo/neil-young.html

  7. #17
    Junior Member
    Join Date
    Jan 2010
    Posts
    10

    Couldn't resolve IP address for: www.mysqueezebox.com


    I ran sudo systemsettings to add,

    sh "/home/roy/Documents/Scripts/service logitechmediaserver restart.sh"
    as a System Cron in Task Manager to run at boot. Here is the script it points to,

    sleep 40 > /dev/null
    service logitechmediaserver restart > /dev/null
    Regards Roy Leith
    I should have pointed out that you have to install the KDE cron front-end in order to see the task manager in system settings. Also, you need to make the script file run as root.

    You might like to try this improved script.

    while (( ! ifconfig wlan0 | grep -q 'inet addr:192.168.1.' ))
    do
    sleep 3
    done
    service logitechmediaserver restart > /dev/null
    Every 3 seconds it checks the wireless interface for a connection by running the ifconfig command and checking for the text 'inet addr:192.168.1.'. If the network connection is not up, the -q option makes grep return the 'not found' value of '1' and the while loop goes to sleep for three seconds and then has another go. Once the network interface is up and running, ifconfig returns the IP address and grep returns a '0' to indicate it has found the text. The script goes on to restart the server.

    Regards
    Roy Leith

  8. #18
    Senior Member
    Join Date
    Mar 2006
    Location
    Sydney, Australia
    Posts
    1,166
    I run 7.7 on Ubuntu and have the same problem accessing www.mysqueezebox.com

    Logitech Media Server Version: 7.7.2 - r33866 @ Mon Feb 27 02:15:33 PST 2012

    this means none of My Apps work. Restarting LMS does not fix the problem despite the fact that networking is fine (I can ping the site from the box).

    This has been a frustration for some time. Any suggestions would be appreciated!

  9. #19

    Couldn't resolve IP address

    I'm having this same problem. LMS is not finding IP address for mysqueezebox.com although I can reach it in my browser, as well as ping it in the terminal.

    Here's the server log:


    [12-05-18 15:49:26.6127] Slim::Utils::Misc::msg (1304) Warning: [15:49:26.6122] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114
    [12-05-18 15:49:33.6150] Slim::Utils::Misc::msg (1304) Warning: [15:49:33.6145] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114
    [12-05-18 15:49:43.6170] Slim::Utils::Misc::msg (1304) Warning: [15:49:43.6165] EV: error in callback (ignoring): pack_sockaddr: invalid host at /usr/share/squeezeboxserver/lib/AnyEvent/DNS.pm line 1114
    [12-05-18 15:49:48.6195] Slim::Networking::Async:NS::__ANON__ (96) Lookup failed for mysqueezebox.com
    [12-05-18 15:49:48.6202] Slim::Networking::SqueezeNetwork::_error (596) Unable to login to SN: Couldn't resolve IP address for: mysqueezebox.com

    here's line 1114 in DNS.pm referred to in log:

    1114 my $sa = AnyEvent::Socket:ack_sockaddr (DOMAIN_PORT, $server);

    Any suggestions?

  10. #20
    Having the same issue with Mint 13 and LMS 7.7.2 - r33893.
    LMS not able to access internet, so no mysqueezebox, radio streams, or 3rd party plugins.
    Restart of LMS does not help.
    Please anyone?

    Edit: Solved, see:
    http://forums.slimdevices.com/showth...639#post707639
    http://forums.linuxmint.com/viewtopi...03835&p=590881
    Last edited by Veggen; 2012-06-13 at 13:54.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •