Uploading photos gives errors

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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:


Or for longer, use three backticks above and below the code snippet:


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 :heart:

Nextcloud version (eg, 12.0.2): 16.04
Operating system and version (eg, Ubuntu 17.04): 2.6.32-042stab132.1
Apache or nginx version (eg, Apache 2.4.25): 2.4.39
PHP version (eg, 7.1): 7.1

The issue you are facing:

Unable to upload any photos or image files after an otherwise fairly successful installation.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. -> Files
  2. Upload File
  3. “An unknown error has occurred”

The output of your Nextcloud log in Admin > Logging:

Fatal	files_antivirus	OCA\Files_Antivirus\BackgroundJob\BackgroundScanner::run, exception: The antivirus executable could not be found at /usr/bin/clamscan

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'ocevhwa2717j',
  'passwordsalt' => 'ECz/mCmhybg4morwfbOPj7p9cbyH6Y',
  'secret' => 'tjrcRbIpbUmszuio4qICMQG5g+Rkc+uPRd7hSGY/0z+yqDH+',
  'trusted_domains' => 
  array (
    0 => 'skus.info',
  'datadirectory' => '/home/skus/skus_data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'https://xxxx.info',
  'dbname' => 'xxxx_info',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxx_dbase',
  'dbpassword' => 'xxxxxxxxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => 'xxxx.info',
  'mail_smtphost' => 'mail.xxxx.info',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpname' => 'admin@xxxx.info',
  'mail_smtppassword' => 'xxxx',
  'maintenance' => false,
  'updater.secret' => 'xxxx',
  'theme' => '',
  'loglevel' => 2,

The output of your Apache/nginx/system log in /var/log/____:

Not sure where this is (HostGator.com VPS)