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

UX: "internal server error" on upgrade is not helpful (Caused by missing write permissions) #27

Open
dreua opened this issue May 3, 2021 · 2 comments

Comments

@dreua
Copy link

dreua commented May 3, 2021

What steps will reproduce the problem?

  • Go to "Update HumHub" -> Start Update -> Start

What is the expected result?

Update works. Or at least a more meaningful error message.

What do you get instead?

Downloading update package

Extracting package files

Validating package

Error!

An internal server error occurred.

Additional info

There is a second HumHub instance on the same server which updated without issues. I've used the updater previously without issues.

Q A
HumHub version 1.8.1 (Community Edition)
HumHub updater 2.1.9
PHP version 7.2.24
Operating system CentOS 8

Note: Also provide the full error stacks from Administration --> Information --> Logging and errors from your browser console if possible.
Note: Please use the community site for any questions on customizing HumHub.

Exception: Make sure all files are writable! 
(/var/www/[redacted]/html/protected/humhub/modules/file/actions/DownloadAction.php) in 
/var/www/[redacted]/html/protected/modules/updater/modules/packageinstaller/controllers/InstallController.php:58

Stack trace:
#0 [internal function]: humhub\modules\updater\modules\packageinstaller\controllers\InstallController->actionValidate()
#1 /var/www/[redacted]/html/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#2 /var/www/[redacted]/html/protected/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#3 /var/www/[redacted]/html/protected/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('validate', Array)
#4 /var/www/[redacted]/html/protected/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('package-install...', Array) 
#5 /var/www/[redacted]/html/protected/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(humhub\components\Request)) 
#6 /var/www/[redacted]/html/index.php(25): yii\base\Application->run() 
#7 {main}

Screenshot_20210503_093309

Edit: removed sensitive content

@dreua
Copy link
Author

dreua commented May 3, 2021

Quick workaround: Maybe just add a link to /index.php?r=admin%2Flogging in case of errors

@dreua dreua closed this as completed May 3, 2021
@dreua dreua reopened this May 3, 2021
@dreua
Copy link
Author

dreua commented May 3, 2021

OT: The causing issue was fixed by a simple chown apache:apache DownloadAction.php. I recreated this file as root therefore it had the wrong permissions.

What I want to see fixed here is a more stream lined UX for admins with similar issues, therefore I'll leave this issue open.

@dreua dreua changed the title "internal server error" on update from 1.8.1 to 1.8.2 UX: "internal server error" on upgrade is not helpful (Caused by missing write permissions) May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants