Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 26.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.2 LTS x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): PHP 8.1.2-1ubuntu2.11 (cli) (built: Feb 22 2023 22:56:18) (NTS)
The issue you are facing:
I am trying to upgrade my nextcloud installation from version 26 to 27 via the command line but get the following output on the first line after executing this command:
sudo -u www-data php /var/www/html/nextcloud/updater/updater.phar
Nextcloud Updater - version: v26.0.0beta2-9-g64e2e4c dirty
Current version is 26.0.2.
When I select y in order to start the update I get the following error:
Check for expected files …PHP Warning: touch(): Unable to create file /mnt/nc-data/updater-oc6tun5nmw51/.step because Permission denied in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 1019
[✘] Check for expected files failed
Could not create .step
Update failed. To resume or retry just execute the updater again.
I cannot see how to resolve this problem as it has always upgraded flawlessly in the past.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- Run the updater from the command line
- Select ‘Y’ to start the upgrade
- Receive the warning of failer above
The output of your Nextcloud log in Admin > Logging:
No logs generated specific to running the update command
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '*********',
'passwordsalt' => '*********',
'secret' => '**************',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '*********.co.uk',
2 => '***.***.***.5',
3 => '2a02:8010:****:****:****',
),
'datadirectory' => '/mnt/nc-data',
'dbtype' => 'pgsql',
'version' => '26.0.2.1',
'overwrite.cli.url' => 'https://*******.co.uk',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => '*****',
'dbpassword' => '**********',
'installed' => true,
'maintenance' => false,
'integrity.check.disabled' => false,
'htaccess.RewriteBase' => '/',
'activity_expire_days' => 14,
'knowledgebaseenabled' => false,
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => '2',
'logtimezone' => 'Europe/London',
'log_rotate_size' => '104857600',
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.5,
'dbindex' => 1,
),
'default_phone_region' => 'GB',
'mail_smtpmode' => 'sendmail',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '*****',
'mail_domain' => '******.co.uk',
'allow_local_remote_servers' => true,
'auth.bruteforce.protection.enabled' => true,
'blacklisted_files' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
),
'cron_log' => true,
'defaultapp' => 'files,dashboard',
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\XBitmap',
5 => 'OC\\Preview\\Movie',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\MP3',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
),
'filesystem_check_changes' => 0,
'filelocking.enabled' => 'true',
'maintenance_window_start' => 1,
'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,
'profile.enabled' => false,
'quota_include_external_storage' => false,
'skeletondirectory' => '',
'trashbin_retention_obligation' => 'auto, 7',
'updater.release.channel' => 'stable',
);
The output of your Apache/nginx/system log in /var/log/____
:
Nothing relevant in error.log
Nothing relevant in access.log
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
Having cleared the nextcloud log file and run the update command, the file shows nothing.