NC 12.0.2 - Login background Image - cant upload

Unable to upload login background image.
I can, however, upload a new logo, the same image I am trying to upload as the login background works just fine.

Nextcloud version 12.0.2
cPanel Version 64.0 (build 36)
Apache Version 2.2.31
PHP Version 5.4.45 (used by cPanel)
MySQL Version 5.6.36-cll-lve
Architecture x86_64
Operating System linux
Kernel Version 2.6.32-604.30.3.lve1.3.63.el6.x86_64
PHP version : 7.1 (selected in cPanel)

Is this the first time you’ve seen this error?: yes

Can you reliably replicate it? (If so, please outline steps):

  • Login as admin
  • settings -> theme
  • reset login image to default, no problems
  • click the ‘upload new login background’
  • upload the jpeg, shows ‘saved’
  • no preview shows, spinner stays

Works just fine on my home Linux machine, does not work in my hosting provider

Config
indent preformatted text by 4 spaces
<?php
$CONFIG = array (
‘installed’ => true,
‘dbtype’ => ‘mysql’,
‘dbname’ => ‘owncloud’,
‘dbuser’ => ‘owncld’,
‘dbpassword’ => ‘?’,
‘dbhost’ => ‘localhost’,
‘dbtableprefix’ => ‘oc_’,
‘forcessl’ => false,
‘theme’ => ‘’,
‘3rdpartyroot’ => ‘’,
‘3rdpartyurl’ => ‘’,
‘blacklisted_files’ =>
array (
0 => ‘.htaccess’,
),
‘default_language’ => ‘en’,
‘overwritehost’ => ‘’,
‘overwriteprotocol’ => ‘’,
‘overwritewebroot’ => ‘’,
‘overwritecondaddr’ => ‘’,
‘overwrite.cli.url’ => ‘/’,
‘defaultapp’ => ‘calendar’,
‘knowledgebaseenabled’ => true,
‘knowledgebaseurl’ => ‘htt p://api.apps.nextcloud.com/v1’,
‘appstoreenabled’ => true,
‘appstoreurl’ => ‘htt p://api.apps.nextcloud.com/v1’,
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/home/?/www/cloud/apps’,
‘url’ => ‘/apps’,
‘writable’ => true,
),
),
‘mail_smtpdebug’ => false,
‘mail_smtpmode’ => ‘smtp’,
‘mail_smtphost’ => ‘127.0.0.1’,
‘mail_smtpport’ => ‘587’,
‘mail_smtptimeout’ => 10,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘appcodechecker’ => ‘’,
‘log_type’ => ‘nextcloud’,
‘logfile’ => ‘/home/?/cloud/logs/nextcloud.log’,
‘loglevel’ => 0,
‘logdateformat’ => ‘F d, Y H:i:s’,
‘passwordsalt’ => ‘?’,
‘hashingCost’ => 10,
‘trashbin_retention_obligation’ => ‘180, auto’,
‘allow_user_to_change_display_name’ => true,
‘xframe_restriction’ => true,
‘custom_csp_policy’ => ‘default-src ‘self’; script-src ‘self’ ‘unsafe-eval’; style-src ‘self’ ‘unsafe-inline’; frame-src *; img-src *; font-src ‘self’ data:; media-src *’,
‘customclient_desktop’ => ‘’,
‘customclient_android’ => ‘’,
‘customclient_ios’ => ‘’,
‘remember_login_cookie_lifetime’ => 1296000,
‘updatechecker’ => true,
‘writable_appsdir’ => true,
‘datadirectory’ => ‘/home/?/cloud/data’,
‘version’ => ‘12.0.2.0’,
‘maxZipInputSize’ => ‘838860800’,
‘allowZipDownload’ => true,
‘instanceid’ => ‘?’,
‘maintenance’ => false,
‘trusted_domains’ =>
array (
0 => ‘cloud.example.com’,
1 => ‘cloud-alias.example.dom’,
2 => ‘?’,
3 => ‘~/www/cloud’,
),
‘secret’ => ‘?’,
‘mail_from_address’ => ‘support’,
‘mail_domain’ => ‘example.com’,
‘appstore.experimental.enabled’ => true,
‘mail_smtpauth’ => 1,
‘mail_smtpname’ => ‘?’,
‘mail_smtppassword’ => ‘?’,
);

Log during period of upload attempt

{"reqId":"dEF3QqHFjKgGgjxVvhhT","level":0,"time":"August 31, 2017 08:17:54","remoteAddr":"?.?.?.?","user":"admin","app":"core","method":"GET","url":"\/index.php\/apps\/theming\/styles?reload=1504167474224","message":"ming\/css\/theming.scss compiled and successfully cached","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"rrVmxs5RuBI0dCx9uAeq","level":0,"time":"August 31, 2017 08:17:55","remoteAddr":"?.?.?.?","user":"admin","app":"core","method":"GET","url":"\/index.php\/css\/core\/server.css?reload=1504167474218","message":"core\/css\/server.scss compiled and successfully cached","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"rrVmxs5RuBI0dCx9uAeq","level":0,"time":"August 31, 2017 08:17:55","remoteAddr":"?.?.?.?","user":"admin","app":"core","method":"GET","url":"\/index.php\/css\/core\/server.css?reload=1504167474218","message":"core\/css\/share.scss compiled and successfully cached","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}
{"reqId":"f5jwaOyT88r3ikNrrVE7","level":0,"time":"August 31, 2017 08:17:56","remoteAddr":"?.?.?.?","user":"admin","app":"core","method":"GET","url":"\/index.php\/apps\/calendar\/","message":"core\/css\/server.scss compiled and successfully cached","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.2.0"}

I’m having the same problem, using nextcloud snap 12.0.4 with Ubuntu 16.04. When I try to edit the background it says that the file is read-only. SuperUser cannot change the permissions for the file.

I am having the same issue as superstes.

Have you identified a resolution?