-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Upgrade Nextcloud 14 : Copy error step 3 backup #10627
Comments
Can you check the permissions of your data directory? Does the webserver has write access to /var/nc_data/updater-oct4dzqp3hji/backups/ ? |
Yep ! And it started to create folders and files : root:backups# ls |
Could you check permissions and owner for /var/www/nextcloud/config/config.php.bak? I guess www-data does not have enough rights to read this file. |
Ok for config.php.bak it's owned by root indeed : |
Yes ! Thank you !! <3 Too bad that these app (announcementcenter, onlyoffice, quota_warning, socialsharing_email, spreed) are not compatible.. yet !? 😄 |
So, was it normal to have these permissions ? or I made a mistake somehow ? |
@quentinDupont The file is not supposed to be there. From the ending it might be a temporary copy of some editor that has not been removed. Besides that this is not really a server issue. The updater cannot perform a backup if the files are not readable, so I'm closing this. |
Upgrade for Nextcloud Beta 3 end to step 3.
Steps to reproduce
Server configuration
Operating system:
Ubuntu 18.04
Web server:
Nginx
Database:
MariaDB
PHP version:
PHP 7.2.8
Nextcloud version: (see Nextcloud admin page)
13.0.5
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Log
2018-08-09T18:42:46+0200 uyi8GIffYf [info] Step 1 is in state "end".
2018-08-09T18:42:46+0200 uyi8GIffYf [info] POST request for step "2"
2018-08-09T18:42:46+0200 uyi8GIffYf [info] startStep("2")
2018-08-09T18:42:46+0200 uyi8GIffYf [info] checkWritePermissions()
2018-08-09T18:42:46+0200 uyi8GIffYf [info] end of checkWritePermissions()
2018-08-09T18:42:46+0200 uyi8GIffYf [info] endStep("2")
2018-08-09T18:42:46+0200 uewOsoT5hG [info] request to updater
2018-08-09T18:42:46+0200 uewOsoT5hG [info] currentStep()
2018-08-09T18:42:46+0200 uewOsoT5hG [info] Step 2 is in state "end".
2018-08-09T18:42:46+0200 uewOsoT5hG [info] POST request for step "3"
2018-08-09T18:42:46+0200 uewOsoT5hG [info] startStep("3")
2018-08-09T18:42:46+0200 uewOsoT5hG [info] createBackup()
2018-08-09T18:42:53+0200 uewOsoT5hG [error] POST request failed with other exception
2018-08-09T18:42:53+0200 uewOsoT5hG [error] Exception: Exception
Message: Could not copy "/var/www/nextcloud/config/config.php.bak" to "/var/nc_data/updater-oct4dzqp3hji/backups/nextcloud-13.0.5.2/config/config.php.bak"
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1291): Updater->createBackup()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:503
2018-08-09T18:42:53+0200 uewOsoT5hG [info] rollbackChanges("3")
2018-08-09T18:42:53+0200 uewOsoT5hG [info] unlink .step
2018-08-09T18:42:53+0200 uewOsoT5hG [info] end of rollbackChanges()
Config
{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"localhost",
"mydomain.fr"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "mydomain.fr",
"dbtype": "mysql",
"version": "13.0.5.2",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"activity_expire_days": 14,
"auth.bruteforce.protection.enabled": true,
"blacklisted_files": [
".htaccess",
"Thumbs.db",
"thumbs.db"
],
"cron_log": true,
"enable_previews": true,
"enabledPreviewProviders": [
"OC\Preview\PNG",
"OC\Preview\JPEG",
"OC\Preview\GIF",
"OC\Preview\BMP",
"OC\Preview\XBitmap",
"OC\Preview\Movie",
"OC\Preview\PDF",
"OC\Preview\MP3",
"OC\Preview\TXT",
"OC\Preview\MarkDown"
],
"filesystem_check_changes": 0,
"filelocking.enabled": "true",
"htaccess.RewriteBase": "/",
"integrity.check.disabled": false,
"knowledgebaseenabled": false,
"logfile": "/var/nc_data/nextcloud.log",
"loglevel": 2,
"logtimezone": "Europe/Berlin",
"log_rotate_size": 104857600,
"maintenance": false,
"memcache.local": "\OC\Memcache\APCu",
"memcache.locking": "\OC\Memcache\Redis",
"overwriteprotocol": "https",
"preview_max_x": 1024,
"preview_max_y": 768,
"preview_max_scale_factor": 1,
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0,
"timeout": 0
},
"quota_include_external_storage": false,
"share_folder": "/Shares",
"skeletondirectory": "",
"theme": "",
"trashbin_retention_obligation": "auto, 7",
"updater.release.channel": "beta",
"onlyoffice": {
"verify_peer_off": true
},
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "ssl",
"mail_smtpauth": 1,
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "465",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"updater.secret": "REMOVED SENSITIVE VALUE"
}
}
App
`Enabled:
Disabled:
The text was updated successfully, but these errors were encountered: