-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
After upgrade to 8.1.1 enabling apps take down owncloud #18315
Comments
Related to #18224 @LukasReschke You worked on the app management code recently. Can we combine re-activation and upgrade of an app in app management? |
My guess is that the app.php gets loaded after an app update even if the requirements in the info.xml are not met |
Linking relevant issue owncloud-archive/news#838 |
I have seen the same problem on my test-machine (Debian 7/Apache/PHP 5.4.x/MySQL), upgrade to 8.1.1 (from 8.1.0) via SuSE-repo, that was ok. Owncloud broke after upgrade of News app to latest version. Disabling via occ-command (sudo -u www-data....) fails as well: |
As I see it might be related to News 6.0.0 breaks owncloud. Ok but how should I now disable News (or any app) if it breaks owncloud? |
@kalletabur according to @PVince81 this should work in the top owncloud directory:
|
you might need to enable maintenance mode first by editing config/config.php and setting "maintenance" to true. This will prevent loading broken apps and should restore core CLI functionality. |
This doesn't work.
then removed 'memcache.local' => '\OC\Memcache\APC' and error changed
|
Ah, apparently too many internal ifs and hacks. Another way would be to connect to the database and run the first command listed here: https://github.com/owncloud/news#how-do-i-reset-the-news-app DELETE FROM oc_appconfig WHERE appid = 'news'; |
Basically there should be one entry point for apps that parses all info.xml files, does all the dependency checks if the app is upgraded and disables it if needed and finally progresses with execution. |
Deleting from DB works. |
@kalletabur yes, it's basically updating the DB for apps, the message is misleading and needs to be fixed. |
@Xenopathic Could this also be fixed by #18839? |
@MorrisJobke Hmm, it would certainly prevent the errors when the News app is disabled, but it doesn't help the case where a broken app can take down the entire oC instance. That issue is being tracked in #17451 |
I am having the same problem..I upgraded to 8.1.1 Owncloud and after upgrade, enabling the gallery app, my owncloud service crashed and returned a blank startup screen. I tried deleting the app:gallery from the database as mentioned above...restart the server, I am not able to get the Owncloud back running.. appreciate any help.. |
Please take a look in your ownCloud and apache error logs |
Did you get news back to work? I currently get the same error: |
Aha. You guys are using the news app. |
The news app requires PHP 5.5 as minimum: owncloud-archive/news#811. Please update. Let's close this issue then as we're aware of the "app can kill ownCloud" issue and are discussing this at other places. |
argh. another example that we can't just drop support for other software that our users out there still use. this is also true for for important apps. kills the user experience and reputation of ownCloud |
@karlitschek the issue here is a bug which kills the user experience ;) |
an app that wants to have the official tag can't just drop for php 5.4 while it is still officially supported by the rest of ownCloud. |
5.4 is EOL You can drop the official tag if you want to |
Sorry @BernhardPosselt - but this is so fuxxing ignorant of you! Is there any reason for being such an prick? |
Please let's not get personal. The issue here at hand is that due to a bug in owncloud the php requirement is not checked during upgrade -> app is not properly disabled -> owncloud breaks |
BTW you can always download an older version if you want to run 5.4 |
Which one would be the last version to run with 5.4? |
Check https://github.com/owncloud/news/releases Anything prior to 6 |
Steps to reproduce
Expected behaviour
Documents apps should be working, News app should be working as normal
Actual behaviour
After enabling Documents app I wanted to verify that app is enabled (on 8.0.4 Documents app was impossible to enable), going to Enabled tab show empty page. Going to another App/Conf page (Files app, Admin page) triggers some new update - User is thrown out and Owncloud Update page is shown. When "Update" is finished and user is let in. Now after going to enable News app owncloud is unresponsible - pages are empty even when going to URL with an another browser
Reloading services or system reboot don't fix
News app wasn't actually important. I just wanted to test whether owncloud starts again updating process - it didn't .. instead disabled owncloud. Maybe installing other apps don't disable owncloud or maybe they do.
Server configuration
Operating system:
Debian 7.8
Web server:
NGINX 1.2.1-2.2+wheezy3
Database:
MySQL 5.5.44-0+deb7u1
PHP version:
PHP 5.4.41-0+deb7u1
ownCloud version: (see ownCloud admin page)
8.1.1-1 (this is Debian package version .. cause web interface isn't responding)
8.1.1.3 (version from config.php)
Updated from an older ownCloud or fresh install:
8.0.2
List of activated apps:
Activity, Deleted files, External storage support, First Run Wizard, LDAP user and group backend, Mail Template Editor, PDF Viewer, Pictures, Server-side Encryption, Share Files, Text Editor, Versions, Video Viewer (taken from earlier issue - web interface is not responding and occ script not working)
Running occ scripts (app:list, config:list,occ ldap:show-config) throws exception:
sudo -u www-data php occ app:list
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption:
yes
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
Client configuration
Browser:
Chrome, FF
Operating system:
Ubuntu 14
Logs
Web server error log
ownCloud log (data/owncloud.log)
Screenshots
The text was updated successfully, but these errors were encountered: