Joshua Parker Ruehlig
Hall of Famer
- Joined
- Dec 5, 2011
- Messages
- 5,949
so did the update go through or not?
Did you ever get OwnCloud to work with PHP 7? I am currently runnig OwnCLoud 8.2.1 with PHP 5.4. Can you give me some hints on the process of updating PHP to the never version? I know the PHP has a lot of dependencies and I plan on upgrading Owncloud to a version that support s PHP 7 but how the heck did you know which dependencies owncloud uses and which are needed to be installed. Any help would be appreciated. I am using OwnCloud in a FreeNAS jail that I have been upgrading from version 7.0. I have been manually upgrading OwnCloud for a few years now but with 8.2.1 5.4 is no longer supported and I have tried installing PHP 5.6 but It does not work because I think I am missing some of the PHP dependanciesohh, thanks for the followup. gonna upgrade my server to 8.2.3 then and try out php7 =]
maybe 9.0 next week
I have all the php7 dependencies listed in this guide.Did you ever get OwnCloud to work with PHP 7? I am currently runnig OwnCLoud 8.2.1 with PHP 5.4. Can you give me some hints on the process of updating PHP to the never version? I know the PHP has a lot of dependencies and I plan on upgrading Owncloud to a version that support s PHP 7 but how the heck did you know which dependencies owncloud uses and which are needed to be installed. Any help would be appreciated. I am using OwnCloud in a FreeNAS jail that I have been upgrading from version 7.0. I have been manually upgrading OwnCloud for a few years now but with 8.2.1 5.4 is no longer supported and I have tried installing PHP 5.6 but It does not work because I think I am missing some of the PHP dependancies
Thanks in advance
It really shouldn't be that bad if you use 'pkg'. What do you mean by manually?I will give this a try but I have to rebuild my test instance, I tried upgrading the PHP manually and it completely screwed up my jail and now I can't even get back in there to do anything with an SSH client. What is worse is I preformed a backup of the dataset in FreeNAS before the upgrade and the restore didn't work. I am not really sure what happened but I know I need to rebuild the my test instance and I am hoping to get to that this week. I will post once I get this done. This is a personal project for a non-profit and I wish I could work on this during the day but no luck with that. ;)
It sounds like your /media mountpoint got unmounted. I'd try remounting it, then trying the upgrade.Today I was unable to access owncloud. I went to my installed plugins in the freeNAS GUI and noticed there was an owncloud update.
I tried to update owncloud, hoping that would fix it, and got the following error:
Sep 15 18:58:59 freenas manage.py: [middleware.exceptions:37] [MiddlewareError: umount: /mnt/volumeEternia/jails/owncloud_1/media: not a file system root directory]
Any thoughts? I've been running FreeNAS-9.3-STABLE-201512121950 for months with no issues until today...
I think this happens because of bugs/unreliable code in the freenas PBI upgrade process.Why would this randomly happen?
Could you post what I actually need to do in order to remount the /media direction? It's been so long I don't remember the code and googling isn't helping...
It really shouldn't be that bad if you use 'pkg'. What do you mean by manually?
Just pkg delete all the php5X packages, and pkg install everything I have listed in that thread.
Your mountpoint looks bad to me from looking at those paths. I recommend you remove it.Thanks Joshua. Unfortunately, that didn't work either.
Sep 18 09:53:09 freenas manage.py: [middleware.exceptions:37] [MiddlewareError: The path could not be mounted /mnt/volumeEternia/jails/owncloud_1: Mount failed (64) -> mount_nullfs: /mnt/volumeEternia/jails/owncloud_1 (/mnt/volumeEternia/jails/owncloud_1) and /mnt/volumeEternia/jails/owncloud_1/media are not distinct paths
]
[root@freenas] ~# jexec owncloud_1 csh root@owncloud_1:/ # chsh -s /bin/sh www chsh: user information updated root@owncloud_1:/ # su www $ cd /usr/pbi/owncloud-amd64/www/owncloud $ $ /usr/pbi/owncloud-amd64/bin/php ./occ upgrade The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php ownCloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade Set log level to debug Turned on maintenance mode Exception: Updates between multiple major versions and downgrades are unsupported. Update failed Maintenance mode is kept active Reset log level $
cp /usr/pbi/owncloud-amd64/www/owncloud/config/config.php . rm -r /usr/pbi/owncloud-amd64/www/owncloud fetch "http://download.owncloud.org/community/owncloud-VERSION.tar.bz2" tar jxf owncloud-*.tar.bz2 -C /usr/local/www cp config.php /usr/pbi/owncloud-amd64/www/owncloud/config chown -R www:www /usr/pbi/owncloud-amd64/www/owncloud su -m www -c 'php /usr/pbi/owncloud-amd64/www/owncloud/occ upgrade' rm owncloud-*.tar.bz2
As adrian said, you probably need to upgrade to each major version from where you started. I'd keep a backup of your current config.php somewhere just in case.
You could try the below, replacing VERSION with 8.1.0, 8.2.0, 9.0.0, 9.1.0
Code:cp /usr/pbi/owncloud-amd64/www/owncloud/config/config.php . rm -r /usr/pbi/owncloud-amd64/www/owncloud fetch "http://download.owncloud.org/community/owncloud-VERSION.tar.bz2" tar jxf owncloud-*.tar.bz2 -C /usr/local/www cp config.php /usr/pbi/owncloud-amd64/www/owncloud/config chown -R www:www /usr/pbi/owncloud-amd64/www/owncloud su -m www -c 'php /usr/pbi/owncloud-amd64/www/owncloud/occ upgrade' rm owncloud-*.tar.bz2
the fetch and tar commands should download successive versions of owncloud and unpack them, recreating your owncloud directory each time you go through the steps.Hello Joshua, thanks for your help. I tried your suggestion, but it failed. First because we delete "/usr/pbi/owncloud-amd64/www/owncloud" only to later copy a file to the same destination, which fails. I solved this by recreating the directory. But later you suggest to execute "su -m www -c 'php /usr/pbi/owncloud-amd64/www/owncloud/occ upgrade'" which also fails because these executables do not exist. I tried figuring out what you really meant by searching for these executables somewhere else and tried a few things, but it didn't work out... Perhaps you can help me out here.
Thanks!
airflow
the fetch and tar commands should download successive versions of owncloud and unpack them, recreating your owncloud directory each time you go through the steps.
You did replace the word VERSION in the fetch command right?
"tar jxf owncloud-*.tar.bz2 -C /usr/local/www" to "tar jxf owncloud-*.tar.bz2 -C /usr/pbi/owncloud-amd64/www".
"su -m www -c 'php /usr/pbi/owncloud-amd64/www/owncloud/occ upgrade'" to "su -m www -c '/usr/pbi/owncloud-amd64/bin/php /usr/pbi/owncloud-amd64/www/owncloud/occ upgrade'"
root@owncloud_1:~/owncloud.config.bak # su -m www -c '/usr/pbi/owncloud-amd64/bin/php /usr/pbi/owncloud-amd64/www/owncloud/occ upgrade' An unhandled exception has been thrown: exception 'OCP\AutoloadNotAllowedException' with message 'Autoload path not allowed: /root/owncloud.config.bak/config.php' in /usr/pbi/owncloud-amd64/www/owncloud/lib/autoloader.php:138 Stack trace: #0 /usr/pbi/owncloud-amd64/www/owncloud/lib/autoloader.php(158): OC\Autoloader->isValidPath('/root/owncloud....') #1 [internal function]: OC\Autoloader->load('OC\\Config') #2 /usr/pbi/owncloud-amd64/www/owncloud/lib/base.php(133): spl_autoload_call('OC\\Config') #3 /usr/pbi/owncloud-amd64/www/owncloud/lib/base.php(485): OC::initPaths() #4 /usr/pbi/owncloud-amd64/www/owncloud/lib/base.php(1061): OC::init() #5 /usr/pbi/owncloud-amd64/www/owncloud/console.php(42): require_once('/usr/pbi/ownclo...') #6 /usr/pbi/owncloud-amd64/www/owncloud/occ(11): require_once('/usr/pbi/ownclo...') #7 {main}root@owncloud_1:~/owncloud.config.bak #