TP75
April 25, 2019, 4:50pm
1
After an update to groupfolder 3.0.0 occ seems to get broken completely by this app version i.e. including the maintenance command. See the 3.0.0 upgrade breaks occ #395 bug report.
You may try this workaround at your own risk and after your own careful consideration as admin:
disable the app Group Folder in the app view of the GUI as admin
change to the command line of the NC server and follow the below procedure.
cd ~/my-nextcloud
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
sudo ls -la /var/www/nextcloud
sudo mv /var/www/nextcloud/apps/groupfolders /var/www/nextcloud/apps/groupfolders_3-0-0.backup
wget -q https://github.com/nextcloud/groupfolders/releases/download/v2.0.4/groupfolders-2.0.4.tar.gz -P .
sudo -u www-data tar -zxf groupfolders-2.0.4.tar.gz -C /var/www/nextcloud/apps
sudo -u www-data php /var/www/nextcloud/occ app:enable groupfolders
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
This procedure downgrades to groupfolders 2.0.4 and should allow continuity to the NC environment.
One may recall former troubles like Groupfolders 2.0.0 breaks NC 14 and NC 15 .
Sanook
April 25, 2019, 5:16pm
2
In my case the app is working without any problems.
I’m using PHP 7.2, NC 15.0.7 and Group Folders 3.0.0
Which apps dou you have installed?
occ apps:list
Maybe antoher app ist disturbing the Group Folder app?
TP75
April 25, 2019, 5:21pm
3
Please have a look at the bug report and there seem to be issues in an environment very similar to yours.
Same for me. Need to run a files:scan, but I am unable to do so - due to the exact same error.
NC 15.0.7, PHP 7.2, Ubuntu 18.04, Groupfolders 3.0.0
_Originally posted by @IntelligentesTierMaulApollo13 in 3.0.0 upgrade breaks occ · Issue #395 · nextcloud/groupfolders · GitHub
TP75
April 29, 2019, 12:37pm
4
opened 10:08PM - 24 Apr 19 UTC
closed 06:43PM - 25 Apr 19 UTC
````
# occ
An unhandled exception has been thrown:
ParseError: syntax error, … unexpected '=' in /var/www/cluster4711/apps/groupfolders/lib/Command/ACL.php:150
Stack trace:
#0 /var/www/cluster4711/lib/composer/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/cluster...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('OCA\\GroupFolder...')
#2 [internal function]: spl_autoload_call('OCA\\GroupFolder...')
#3 /var/www/cluster4711/lib/private/AppFramework/Utility/SimpleContainer.php(96): ReflectionClass->__construct('OCA\\GroupFolder...')
#4 /var/www/cluster4711/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\GroupFolder...')
#5 /var/www/cluster4711/lib/private/AppFramework/DependencyInjection/DIContainer.php(426): OC\AppFramework\Utility\SimpleContainer->query('OCA\\GroupFolder...')
#6 /var/www/cluster4711/lib/private/ServerContainer.php(116): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\GroupFolder...')
#7 /var/www/cluster4711/lib/private/Console/Application.php(219): OC\ServerContainer->query('OCA\\GroupFolder...')
#8 /var/www/cluster4711/lib/private/Console/Application.php(134): OC\Console\Application->loadCommandsFromInfoXml(Array)
#9 /var/www/cluster4711/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/cluster4711/occ(11): require_once('/var/www/cluster...')
```
Disabling the groupfolders app in settings makes `occ` work again.
This is on Nextcloud 15.0.7.0 (current stable).
@IntelligentesTierMaulApollo13 made a correction:
Same for me. Need to run a files:scan, but I am unable to do so - due to the exact same error.
NC 15.0.7, PHP 7.2 7.0, Ubuntu 18.04, Groupfolders 3.0.0~~
(As it turned out the PHP version used on our server was 7.0 (and not 7.2 as stated before)
This seems to be a PHP 7.0 compatibility issue. See the #395 comment by @nuvitong .
@juliushaertl : Hopefully groupfolder 3.0.0 gets fixed and will be continued for running with PHP 7.0 in NC 15 for Debian 9 environments.
See both An unhandled exception has been thrown #396 and Evaluate dropping php7.0 support #12021 for an assessment.
TP75
May 9, 2019, 12:09pm
5
Apparently the more current version 3.0.2 should fix the issue.
Beware of 3.0.1 upgrade breaks NextCloud 15 #417 .
Thanks to @icewind1991 for the efforts.