Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owncloud non-functional with "illegal instruction" errors, post-upgrade #25348

Closed
mach-o opened this issue Jul 4, 2016 · 5 comments
Closed

Comments

@mach-o
Copy link

mach-o commented Jul 4, 2016

Owncloud has been non-functional since I upgraded it last night. I have also been receiving emails that look like the following every twenty minutes since then:

Subject: Cron root@raspberrypi [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean
Body: Illegal instruction

This started when I ran a regular upgrade:

$ sudo aptitude upgrade
[snip]
Preparing to unpack .../libmysqlclient18_5.6.30-1bpo8+1_armhf.deb ...
Unpacking libmysqlclient18:armhf (5.6.30-1
bpo8+1) over (5.5.46-0+deb7u1) ...
Preparing to unpack .../owncloud-files_9.0.3-3.1_all.deb ...
Unpacking owncloud-files (9.0.3-3.1) over (9.0.2-1.1) ...
Preparing to unpack .../owncloud-deps-php5_9.0.3-2.1_all.deb ...
owncloud-deps-php5: occ maintenance:mode --on
Illegal instruction
Unpacking owncloud-deps-php5 (9.0.3-2.1) over (9.0.2-1.1) ...
Conf owncloud disabled.
To activate the new configuration, you need to run:
service apache2 reload
Preparing to unpack .../owncloud_9.0.3-2.1_all.deb ...
Unpacking owncloud (9.0.3-2.1) over (9.0.2-1.1) ...
Setting up libmysqlclient18:armhf (5.6.30-1~bpo8+1) ...
Setting up owncloud-files (9.0.3-3.1) ...
Setting up owncloud-deps-php5 (9.0.3-2.1) ...
Enabling conf owncloud.
To activate the new configuration, you need to run:
service apache2 reload
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
apache2_invoke rewrite: already enabled
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript apache2, action "restart" failed.
apache2_invoke owncloud: already enabled
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript apache2, action "reload" failed.
Leaving server in maintenance mode. Please run occ upgrade manually.

See https://doc.owncloud.org/server/9.0/admin_manual/maintenance/upgrade.html

Illegal instruction
Setting up owncloud (9.0.3-2.1) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...

[later:]
$ sudo service apache2 reload
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
$ systemctl status apache2.service

  • apache2.service - LSB: Apache2 web server
    Loaded: loaded (/etc/init.d/apache2)
    Active: failed (Result: exit-code) since Sun 2016-07-03 22:01:33 EDT; 10h ago
    $ journalctl -xn
    No journal files were found.

I am running owncloud on a Rasbperry Pi running the raspbian operating system:

$ uname -a
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux
$ cat /etc/apt/sources.list.d/owncloud.list
deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /
$ apache2 -v
Server version: Apache/2.4.10 (Raspbian)
Server built: Jan 23 2016 22:26:49
$ php5 -v
Illegal instruction
$ mysqld --version
160704 8:18:44 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
mysqld Ver 5.5.46-0+deb7u1 for debian-linux-gnu on armv7l ((Debian)
$ dpkg -l owncloud | grep owncloud
ii owncloud 9.0.3-2.1 all ownCloud - Server
$ sudo -u www-data php occ app:list
$ sudo cat config/config.php

'[redacted]', 'passwordsalt' => '[redacted]', 'secret' => '[redacted]', 'trusted_domains' => array ( 0 => '[redacted]', 1 => '[redacted]', ), 'datadirectory' => '/var/www/owncloud/data', 'overwrite.cli.url' => '[redacted]', 'dbtype' => 'mysql', 'version' => '9.0.2.2', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud', 'dbpassword' => '[redacted]', 'logtimezone' => 'UTC', 'installed' => true, 'appstore.experimental.enabled' => true, 'memcache.local' => '\OC\Memcache\Redis', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, 'timeout' => 0, ), 'theme' => '', 'loglevel' => 1, 'maintenance' => false, 'trashbin_retention_obligation' => 'auto', 'updatechecker' => false, ); $ sudo -u www-data php occ config:list system $ sudo -u www-data php occ ldap:show-config
@DeepDiver1975 DeepDiver1975 added this to the 9.0.4 milestone Jul 4, 2016
@DeepDiver1975
Copy link
Member

@jnweiger THX

@mach-o
Copy link
Author

mach-o commented Jul 4, 2016

Also: Is it possible this is an unrelated problem in php5? (see especially the output of "php5 -v" above)

@PVince81 PVince81 modified the milestones: 9.0.5, 9.0.4 Jul 18, 2016
@crrodriguez
Copy link

"SIGILL" (Illegal instruction) is raised when the CPU does not understand an instruction...

Where did you got PHP5 and does it work by itself.. you can try php5 -i

@crrodriguez
Copy link

So, you got the wrong php5 package for your distribution 's ABI, most likely you ended with a armv7 package instead of an armv6. hence illegal instruction.
This is not an owncloud bug, thanks for your report.

@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants