OpenMediaVault on Raspbian (Rpi1)

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

OpenMediaVault on Raspbian (Rpi1)

Post by ^rooker »

Installing OpenMediaVault (erasmus) from their repositories on Raspbian Jessie:
Processing triggers for libc-bin (2.19-18+deb8u6) ...
Processing triggers for libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u5) ...
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Processing triggers for php5-fpm (5.6.26+dfsg-0+deb8u1) ...
Job for php5-fpm.service failed. See 'systemctl status php5-fpm.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript php5-fpm, action "restart" failed.
dpkg: error processing package php5-fpm (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for openmediavault (3.0.48) ...

Code: Select all

$ journalctl -xn
-- Logs begin at Tue 2016-10-25 22:11:11 UTC, end at Wed 2016-10-26 00:09:19 UTC. --
Oct 26 00:09:09 rasputin sudo[14270]: pi : TTY=pts/1 ; PWD=/home/pi ; USER=root ; COMMAND=/etc/init.d/php5-fpm start
Oct 26 00:09:09 rasputin sudo[14270]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
Oct 26 00:09:10 rasputin systemd[1]: Starting The PHP FastCGI Process Manager...
-- Subject: Unit php5-fpm.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit php5-fpm.service has begun starting up.
Oct 26 00:09:10 rasputin php5-fpm-checkconf[14285]: Illegal instruction
Oct 26 00:09:10 rasputin systemd[1]: php5-fpm.service: main process exited, code=killed, status=4/ILL
Oct 26 00:09:10 rasputin systemd[1]: Failed to start The PHP FastCGI Process Manager.
-- Subject: Unit php5-fpm.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit php5-fpm.service has failed.
--
-- The result is failed.
Oct 26 00:09:10 rasputin systemd[1]: Unit php5-fpm.service entered failed state.
Oct 26 00:09:10 rasputin sudo[14270]: pam_unix(sudo:session): session closed for user root
Oct 26 00:09:19 rasputin sudo[14317]: pi : TTY=pts/1 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
Oct 26 00:09:19 rasputin sudo[14317]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
I think it's the following line that gives a hint:
php5-fpm-checkconf[14285]: Illegal instruction
To be continued...
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

OpenMediaVault on Raspbian (Rpi1): Solution!

Post by ^rooker »

I found a hint in a post from an OpenMediaVault developer that suggested a connection to a mismatching version of "php5-pam" package installed.

He suggested v1.0.3-2, but that was for the version(s) current on December 2014, so it didn't match my setup.

I've added the "omv-extras.org" repositories to apt-sources:

Code: Select all

deb http://packages.openmediavault.org/public erasmus main
deb http://packages.omv-extras.org/debian erasmus main
OS is Raspbian Jessie-Lite on Raspberry Pi 1.

Then:

Code: Select all

$ apt-get update
$ apt-get install php5-pam
This says it's gonna upgrade from 1.0.3-2 to 1.0.3-4. Both packages from the same package-maintainer (at OMV).

Looking goooooood:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
php5-pam
1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
2 not fully installed or removed.
Need to get 0 B/7,732 B of archives.
After this operation, 1,024 B disk space will be freed.
Reading changelogs... Done
(Reading database ... 50905 files and directories currently installed.)
Preparing to unpack .../php5-pam_1.0.3-4_armhf.deb ...
Unpacking php5-pam (1.0.3-4) over (1.0.3-2) ...
dpkg: warning: unable to delete old directory '/etc/php5/conf.d': Directory not empty
Setting up php5-fpm (5.6.26+dfsg-0+deb8u1) ...
Setting up php5-pam (1.0.3-4) ...
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
Unfortunately "omv-initsystem" throws an "Illegal instruction" error, but now at least "php5-fpm" installed properly, and Nginx doesn't complain about "Bad Gateway" anymore.

The web-interface welcomes me with a login-prompt.
Zen... 8)
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: OpenMediaVault on Raspbian (Rpi1)

Post by ^rooker »

Still not working.
"communication failure"
When trying to login to OMV web interface.

$ journalctl -xn:
php5-fpm[15780]: ool openmediavault-webgui: Unknown or unsupported timezone [tz=Etc/UTC]
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Re: OpenMediaVault on Raspbian (Rpi1)

Post by ^rooker »

$ sudo systemctl status php5-fpm.service
● php5-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
Active: failed (Result: signal) since Wed 2016-10-26 00:46:42 UTC; 483ms ago
Process: 1165 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=killed, signal=ILL)
Process: 1159 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
Main PID: 1165 (code=killed, signal=ILL)

Oct 26 00:46:42 rasputin php5-fpm-checkconf[1159]: Illegal instruction
Oct 26 00:46:42 rasputin systemd[1]: php5-fpm.service: main process exited, code=killed, status=4/ILL
Oct 26 00:46:42 rasputin systemd[1]: Failed to start The PHP FastCGI Process Manager.
Oct 26 00:46:42 rasputin systemd[1]: Unit php5-fpm.service entered failed state.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply