PDA

View Full Version : Problem installing Airplay bridge



Man in a van
2018-12-09, 07:18
I am having difficulty installing philippe_44's Airplay bridge (v0.4.7.1) on the following devices:

1) O2 Joggler running Squeezeplay OS

2) Raspberrypi 3b running Raspbian Stretch with desktop
and
3) Shuttle XS35GS V3 running Debian Stretch with Raspberry Pi Desktop (the Raspberry Pi Desktop OS for PC and Mac - based on Debian Stretch).

It installs on:

4) Raspberrypi 3b running piCorePlayer


All devices are running the latest LMS v7.9.2 nightly.

Device #1 and 2 display essentially the same failure message in the Server log file


2018-12-09 13:02:43 squeezeboxserver_safe started.
[18-12-09 13:02:49.0543] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 13:02:50.7580] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:02:50.7762] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:02:53.5528] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:02:53.5745] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:02:54.0696] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 13:02:57.3530] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:02:57.3749] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:05:14.3720] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 13:05:20.3426] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:05:20.3755] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:05:20.6389] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:05:20.6586] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:05:22.0520] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:05:22.0713] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:05:22.4224] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 13:05:30.4749] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 13:05:30.6439] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:05:56.7613] Plugins::RaopBridge::Squeeze2raop::start (135) executable not having 'x' permission, correcting
[18-12-09 13:06:26.7798] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting

Device #3 has much the same message


2018-12-09 13:41:20 squeezeboxserver_safe stopped.
2018-12-09 13:41:40 squeezeboxserver_safe started.
[18-12-09 13:41:43.5328] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:25:23 CET 2018) perl 5.024001 - i686-linux-gnu-thread-multi-64int
[18-12-09 13:42:16.0071] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 13:42:46.0127] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting


Device #4 the rpi 3B with picoreplayer starts Airplay with the following log message


[18-12-09 13:30:24.5155] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 13:30:47.0646] Plugins::RaopBridge::Squeeze2raop::start (135) executable not having 'x' permission, correcting


When I click OK on the box to generate the config file, the piCorePlayer takes about 15 seconds to load.

The devices that fail timeout after about 1second (or less even).

Im sure in the past I have installed the plugin on both the Joggler and the rpi running Raspbian (but the latter might have been the lite version).

Any help is appreciated.

Thanks

ronnie

Man in a van
2018-12-09, 07:45
Just tried a quick install of Rasbian-Lite and it appears to have the same problem



2018-12-09 14:34:22 squeezeboxserver_safe started.
[18-12-09 14:34:25.9340] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 14:34:28.1175] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:34:28.1558] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:34:29.4607] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:34:29.5392] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:34:30.0336] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 14:34:34.9730] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:34:35.0086] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
2018-12-09 14:40:57 squeezeboxserver_safe stopped.
2018-12-09 14:40:58 squeezeboxserver_safe started.
[18-12-09 14:41:01.3454] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 14:41:01.4988] Slim::Utils::Misc::msg (1252) Warning: [14:41:01.4980] format error: can't find EOCD signature
at /usr/sbin/squeezeboxserver line 486.
[18-12-09 14:41:02.1434] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:02.2380] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:41:02.6757] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:02.7739] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:41:03.9535] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:04.0471] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:41:04.5386] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 14:41:07.9467] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:08.0431] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
2018-12-09 14:41:47 squeezeboxserver_safe stopped.
2018-12-09 14:41:47 squeezeboxserver_safe started.
[18-12-09 14:41:50.3959] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 14:41:54.0706] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:54.1858] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:41:54.5763] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:54.6712] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:41:56.2387] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:41:56.3175] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:41:56.7648] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 14:42:00.2363] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:42:00.3328] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:42:26.7731] Plugins::RaopBridge::Squeeze2raop::start (135) executable not having 'x' permission, correcting
[18-12-09 14:42:56.7910] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 14:43:05.8950] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting

slimhase
2018-12-09, 07:49
I am having difficulty installing philippe_44's Airplay bridge (v0.4.7.1) on the following devices:

1) O2 Joggler running Squeezeplay OS

2) Raspberrypi 3b running Raspbian Stretch with desktop
and
3) Shuttle XS35GS V3 running Debian Stretch with Raspberry Pi Desktop (the Raspberry Pi Desktop OS for PC and Mac - based on Debian Stretch).

It installs on:

4) Raspberrypi 3b running piCorePlayer


All devices are running the latest LMS v7.9.2 nightly.

Device #1 and 2 display essentially the same failure message in the Server log file
.....
When I click OK on the box to generate the config file, the piCorePlayer takes about 15 seconds to load.

The devices that fail timeout after about 1second (or less even).

Im sure in the past I have installed the plugin on both the Joggler and the rpi running Raspbian (but the latter might have been the lite version).

Any help is appreciated.

Thanks

ronnie

I have that Plugin working both on a Joggler and a Raspberry Zero.

In the settings-section of the plugin under "Select Binary", I needed to selected the *-static version. That did the trick for me.
Hope this helps.

Man in a van
2018-12-09, 07:56
I have that Plugin working both on a Joggler and a Raspberry Zero.

In the settings-section of the plugin under "Select Binary", I needed to selected the *-static version. That did the trick for me.
Hope this helps.


Yeah I have tried the static solution without success (I have been plugging away at this for the past week or so). Thanks for the reminder though, I haven't tried that yet today:o.

It seems to me that the "generating" bit is timing out before it should.

Man in a van
2018-12-09, 08:04
15 mississippis and the static works on the rpi3B Rasbian-Lite :) (thanks, slimhase, for the reminder)

Alas no luck with the Joggler




[18-12-09 14:58:00.5293] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 14:58:30.5383] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 14:59:00.5472] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 14:59:30.5562] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 15:00:00.5654] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 15:00:30.5744] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 15:01:00.4315] Plugins::RaopBridge::Squeeze2raop::start (135) executable not having 'x' permission, correcting
[18-12-09 15:01:00.5843] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 15:01:16.2041] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 15:01:17.2156] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting

castalla
2018-12-09, 08:04
Using the correct binary helper? I always use the static versions

Man in a van
2018-12-09, 08:06
Using the correct binary helper? I always use the static versions

Yes and No

There's only the two to choose from :(

Man in a van
2018-12-09, 08:18
[QUOTE=Man in a van;928180]15 mississippis and the static works on the rpi3B Rasbian-Lite :) (thanks, slimhase, for the reminder)

I forgot the log for the rpi3B



[18-12-09 14:56:45.5988] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 14:56:55.4918] Plugins::RaopBridge::Squeeze2raop::start (135) executable not having 'x' permission, correcting
2018-12-09 14:59:33 squeezeboxserver_safe stopped.
2018-12-09 14:59:37 squeezeboxserver_safe started.
[18-12-09 14:59:42.5726] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 14:59:43.3775] Slim::Utils::IPDetect::_init (140) Warning: Couldn't call connect() - falling back to 127.0.0.1
[18-12-09 14:59:43.5229] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:43.9517] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:59:44.7833] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:45.0712] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:59:47.1450] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:47.4676] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:59:48.1643] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 14:59:52.3197] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:52.3654] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 15:14:21.3646] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting

I had to do a hard reset as I i got me IP Addresses in a bit of a twist (sigh).

philippe_44
2018-12-09, 22:44
[QUOTE=Man in a van;928180]15 mississippis and the static works on the rpi3B Rasbian-Lite :) (thanks, slimhase, for the reminder)

I forgot the log for the rpi3B



[18-12-09 14:56:45.5988] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting
[18-12-09 14:56:55.4918] Plugins::RaopBridge::Squeeze2raop::start (135) executable not having 'x' permission, correcting
2018-12-09 14:59:33 squeezeboxserver_safe stopped.
2018-12-09 14:59:37 squeezeboxserver_safe started.
[18-12-09 14:59:42.5726] main::init (387) Starting Logitech Media Server (v7.9.2, 1543258616, Mon Nov 26 20:26:16 CET 2018) perl 5.024001 - arm-linux-gnueabihf-thread-multi-64int
[18-12-09 14:59:43.3775] Slim::Utils::IPDetect::_init (140) Warning: Couldn't call connect() - falling back to 127.0.0.1
[18-12-09 14:59:43.5229] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:43.9517] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:59:44.7833] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:45.0712] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:59:47.1450] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:47.4676] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 14:59:48.1643] main::checkDataSource (1110) Warning: Schema updated or no media found in the database, initiating scan.
[18-12-09 14:59:52.3197] Slim::Utils::SQLiteHelper::postConnect (374) Optimizing DB because of missing or empty sqlite_stat1 table
[18-12-09 14:59:52.3654] Slim::Schema::forceCommit (2147) Warning: Trying to commit transactions before DB is initialized!
[18-12-09 15:14:21.3646] Plugins::RaopBridge::Squeeze2raop::beat (185) crashed ... restarting

I had to do a hard reset as I i got me IP Addresses in a bit of a twist (sigh).

I'll investigate these crashes (and you should not have to only use the -static version, it helps as all codecs are built-in, but it should still run)

Man in a van
2018-12-10, 02:45
thanks Philippe :)

Man in a van
2018-12-12, 11:58
[QUOTE=Man in a van;928186]

I'll investigate these crashes (and you should not have to only use the -static version, it helps as all codecs are built-in, but it should still run)


A gentle bump for this problem, have you had time for an investigation, Philippe?


ronnie

Man in a van
2018-12-13, 11:33
I guess this is a dead Snow Goose/Joggler

Time to give up on it I think.

I'm watching the thread over here with interest

https://forums.slimdevices.com/showthread.php?106289-announce-ShairTunes2W-Airtunes-on-LMS-(forked-version-with-Windows-support)&p=928568#post928568

What I don't understand is that it won't run on the Raspbian Stretch Desktop either.

I'll just pop Airplay on a pi and get on with life.

ronnie

philippe_44
2018-12-13, 15:43
I guess this is a dead Snow Goose/Joggler

Time to give up on it I think.

I'm watching the thread over here with interest

https://forums.slimdevices.com/showthread.php?106289-announce-ShairTunes2W-Airtunes-on-LMS-(forked-version-with-Windows-support)&p=928568#post928568

What I don't understand is that it won't run on the Raspbian Stretch Desktop either.

I'll just pop Airplay on a pi and get on with life.

ronnie

Investigating these takes time to reproduce and isolate the crash. So far, I've corrected one race condition which seems to be the problem, but I'm not sure yet. For the other thread on Shairtunes, I can do the work of adding yet another version of RSA binaries ... But seriously I'm still confused if Shairtunes or AirPlay bridge is what is needed there

Man in a van
2018-12-14, 02:06
Hi philippe.

I did not mean to sound disparaging of your efforts, I understand that investigation requires time.

Regards

ronnie

Man in a van
2018-12-18, 04:45
I noticed that philippe_44 had updated the Airplay-bridge plugin and decided that I would give it another bash on the O2 Joggler.

I made a fresh install of the Squeezeplay OS

http://https://birdslikewires.net/squeezeplay-os#content

and installed LMS v7.9.2 using the procedure described on the Wiki,

http://wiki.slimdevices.com/index.php/Debian_Package

with a couple of additions,




sudo sed -i.bak 's/ubuntu.datahop.net/archive.ubuntu.com/g' /etc/apt/sources.list

sudo apt-get update

---------------------------------------------------------------------------------------------------------
#1)

sudo apt-get -y install libio-socket-ssl-perl lame
--------------------------------------------------------------
#2)

os=$(dpkg --print-architecture)

if [ "$os" = "armhf" ]; then os=arm; fi

url="http://www.mysqueezebox.com/update/?version=7.9.2&revision=1&geturl=1&os=deb$os"

latest_lms=$(wget -q -O - "$url")

---------------------------------------------------------------------------
#3)

mkdir sources

cd sources

--------------------------------------------------------------------
#4)

wget $latest_lms

lms_deb=${latest_lms##*/}

sudo dpkg -i $lms_deb

------------------------------------------------------------------------------
#5)

sudo apt-get -f install




The squeeze2roap-x86 binary refused to work using either Autosave or Generate to install the configuration file.

I switched to the static binary and with Autosave ticked, one screen refresh installed the configuration file.

26286


Next up was the Chromecast bridge plugin (also updated, I believe).

I followed the same procedure as with the Airbridge plugin, I had to change the binary to static.

26287


Many thanks to philippe_44 for the updated version of the two bridges, and also a tip of the hat to slimhase.


ronnie