You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP Fatal error: Class 'OC_Mount_Config' not found #22641
occ command to set overwrite.cli.url should run without throwing PHP Fatal error.
Actual behaviour
Command line output:
ownCloud is not installed - only a limited number of commands are available
ownCloud was successfully installed
PHP Fatal error: Class 'OC_Mount_Config' not found in /var/www/owncloud/lib/private/server.php on line 1238
Logfile:
{"reqId":"8qFxHc2nvaJz0B6ewS+D","remoteAddr":"","app":"PHP","message":"Class 'OC_Mount_Config' not found at \/var\/www\/owncloud\/lib\/private\/server.php#1238","level":3,"time":"2016-02-25T10:11:46+00:00"}
I've seen this using 9.0.1 EE,
before logging with any user, run sudo -u www-data ./occ
The first time it fails and says 'OC_Mount_Config' not found. A second run works.
Not happening in 9.1.0RC1 though.
During "occ maintenance:install", apparently the WND app enables itself but it doesn't auto-enable files_external
During "occ config:system" the register_command from WND tries to access files_external namespace directly without checks. Somehow it seems that the "app.php" was run too, so the code that enabled files_external does run, but not in a way that properly initializes the files_external app namespace.
Running "occ config:system" again works because here the files_external app is enabled so its namespace is properly initialized.
Since this is a hacky mess, I'll fix the WND app to auto-enable files_external at the time the app becomes enabled in "appinfo/install.php". I hope this is called for bundled apps...
If that doesn't work, add explicit code in "register_command.php" in WND to make sure the files_external namespace is loaded.
Activity
MorrisJobke commentedon Feb 25, 2016
Link please.
felixboehm commentedon Feb 25, 2016
Ohh - retested: No issue in community beta2: http://download.owncloud.org/community/testing/owncloud-9.0.0beta2.tar.bz2
Only in enterprise tar. Thought there should not be a difference.
davitol commentedon Jul 1, 2016
I reopen this issue due to it is still happening in "9.1.0.11","versionstring":"9.1.0 RC1","edition":"Enterprise"}
Steps to reproduce:
The 1st time a occ command is run, the following log appears:
DeepDiver1975 commentedon Jul 1, 2016
@davitol I cannot reproduce this 😢
SergioBertolinSG commentedon Jul 1, 2016
I've seen this using 9.0.1 EE,
before logging with any user, run sudo -u www-data ./occ
The first time it fails and says 'OC_Mount_Config' not found. A second run works.
Not happening in 9.1.0RC1 though.
DeepDiver1975 commentedon Jul 1, 2016
grrrr ... this is pure non-sense:
https://github.com/owncloud/core/blob/master/lib/private/Server.php#L1324-L1353
oc_mount_config lives in files_external - if this app is not loaded it will crash
DeepDiver1975 commentedon Jul 1, 2016
easiest thing would be to disallow deactivation of files_external
Make sure files_external is loaded before accessing \OC_Mount_Config …
11 remaining items
PVince81 commentedon Nov 30, 2016
Should not happen any more on master... Should we close or do you guys need a backportable quickfix ?
PVince81 commentedon Dec 6, 2016
ok then, I'll close. Thanks
PVince81 commentedon Feb 3, 2017
Reopening. It is not possible to use "occ maintenance:install" with EE and WND due to this.
PVince81 commentedon Feb 3, 2017
Okay, here is what happens:
register_commandfrom WND tries to access files_external namespace directly without checks. Somehow it seems that the "app.php" was run too, so the code that enabled files_external does run, but not in a way that properly initializes the files_external app namespace.Since this is a hacky mess, I'll fix the WND app to auto-enable files_external at the time the app becomes enabled in "appinfo/install.php". I hope this is called for bundled apps...
If that doesn't work, add explicit code in "register_command.php" in WND to make sure the files_external namespace is loaded.
PVince81 commentedon Feb 3, 2017
For previous versions, the workaround is to run "occ" once without any args and let it fail.
Subsequent calls to "occ" will then work.
PVince81 commentedon Feb 3, 2017
Fix for WND: https://github.com/owncloud/windows_network_drive/pull/79 using "appinfo/install.php" approach. That did the trick!
lock commentedon Aug 2, 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.