Internal Server Error when uploading files on external store with web client

Nextcloud version (eg, 11.0.3):
Operating system and version (eg, Ubuntu 16.04):
Apache version (eg, Apache 2.4.18):
PHP version (eg, 5.6): 7.0.15
Is this the first time you’ve seen this error?: yes

Can you reliably replicate it? no

The issue you are facing:
Every time I want to upload a file to Nextocloud with the web-interface I get an “internal server error”. The files is uploaded correctly but it seems that something must be wrong…

The output of your Nextcloud log in Admin > Logging:

Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_filecache" SET "mtime"=? WHERE ("mtime" <> ? OR "mtime" IS NULL) AND "fileid" = ? ' with params ["1493729604.474", "1493729604.474", 88767]: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "1493729604.474"

/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 128: Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException(‘An exception oc…’, Object(Doctrine\DBAL\Driver\PDOException))
/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 836: Doctrine\DBAL\DBALException driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Driver\PDOException), ‘UPDATE "oc_file…’, Array)
/var/www/nextcloud/lib/private/DB/Connection.php - line 194: Doctrine\DBAL\Connection->executeQuery(‘UPDATE "oc_file…’, Array, Array, NULL)
/var/www/nextcloud/lib/private/Files/Cache/Cache.php - line 312: OC\DB\Connection->executeQuery(‘UPDATE "oc_file…’, Array)
/var/www/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php - line 138: OC\Files\Cache\Cache->update(88767, Array)
/var/www/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php - line 138: OC\Files\Cache\Wrapper\CacheWrapper->update(88767, Array)
/var/www/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php - line 111: OC\Files\Cache\Wrapper\CacheWrapper->update(88767, Array)
/var/www/nextcloud/lib/private/Files/View.php - line 1533: OC\Files\Cache\Wrapper\CacheWrapper->put(‘IT-STP-Nst-006 …’, Array)
/var/www/nextcloud/lib/private/Files/View.php - line 567: OC\Files\View->putFileInfo(’/rgl/files/Info…’, Array)
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 209: OC\Files\View->touch(’/Informatik/IT-…’, ‘1493729604.474’)
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 137: OCA\DAV\Connector\Sabre\File->put(Resource id #32)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1072: OCA\DAV\Connector\Sabre\Directory->createFile(‘test.xml’, Resource id #32)

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

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

Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.