You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Picture should upload in a few seconds, and website is refreshing
Actual behavior
Picture is uploading, but process will hung
After switching the website context, and go back to the Personal Settings the Profile Picture was uploaded properly.
Server configuration detail
Operating system: Linux 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
LDAP configuration (delete this part if not used)
NO LDAP Config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Dragon/52.15.25.665 Chrome/52.0.2743.82 Safari/537.36
Operating system:
Logs
Browser log
Insert your webserver log here
Nextcloud log
Insert your Nextcloud log here
{"reqId":"***REMOVED SENSITIVE VALUE***","level":3,"time":"2018-02-12T15:11:47+01:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"no app in context","method":"POST","url":"\/index.php\/avatar\/cropped","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\DriverException\",\"Message\":\"An exception occurred while executing 'UPDATE `oc_cards` SET `carddata` = ?, `lastmodified` = ?, `size` = ?, `etag` = ? WHERE (`uri` = ?) AND (`addressbookid` = ?)' with params [\\\"BEGIN:VCARD\\\\r\\\\nVERSION:3.0\\\\r\\\\nPRODID:-\\\\\\\/\\\\\\\/Sabre\\\\\\\/\\\\\\\/Sabre VObject 4.1.2\\\\\\\/\\\\\\\/EN\\\\r\\\\nUID:***REMOVED SENSITIVE VALUE***\\\\r\\\\nFN:***REMOVED SENSITIVE VALUE***\\\\r\\\\nN:***REMOVED SENSITIVE VALUE***;;;;\\\\r\\\\nEMAIL;TYPE=OTHER:xxxxxxxxxxxxxxx\\\\r\\\\nPHOTO;ENCODING=b;TYPE=image\\\\\\\/jpeg:\\\\\\\/9j\\\\\\\/4AAQSkZJRgABAQAAAQABAAD\\\\\\\/\\\\\\\/gA7Q1JFQVRPUj\\\\r\\\\n o
{"reqId":"WoGgl9OOsy5TXXriH4-pSgAAAAQ","level":3,"time":"2018-02-12T15:11:47+01:00","remoteAddr":"15.203.137.73","user":"REMOVED SENSITIVE VALUE","app":"core","method":"POST","url":"/index.php/avatar/cropped","message":"Exception: {"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT fileid, storage, path, path_hash, parent, name, mimetype, mimepart, size, mtime,\n\t\t\t\t\t storage_mtime, encrypted, etag, permissions, checksum\n\t\t\t\tFROM oc_filecache WHERE storage = ? AND path_hash = ?' with params [24, \"d86b35adda1aedc00873efeac3fabb30\"]:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":0,"Trace":"#0 \/var\/www\/html\/nextcloud\/3rdparty\/doct
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT fileid, storage, path, path_hash, parent, name, mimetype, mimepart, size, mtime, storage_mtime, encrypted, etag, permissions, checksum FROM oc_filecache WHERE storage = ? AND path_hash = ?' with params [24, "d86b35adda1aedc00873efeac3fabb30"]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php - line 128: Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php - line 855: Doctrine\DBAL\DBALException driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'SELECT fileid...', Array)
/var/www/html/nextcloud/lib/private/DB/Connection.php - line 192: Doctrine\DBAL\Connection->executeQuery('SELECT fileid...', Array, Array, NULL)
/var/www/html/nextcloud/lib/private/Files/Cache/Cache.php - line 137: OC\DB\Connection->executeQuery('SELECT fileid...', Array)
/var/www/html/nextcloud/lib/private/Files/Cache/HomeCache.php - line 76: OC\Files\Cache\Cache->get('cache/tmpAvatar')
/var/www/html/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php - line 70: OC\Files\Cache\HomeCache->get('cache/tmpAvatar')
/var/www/html/nextcloud/lib/private/Files/Cache/Updater.php - line 156: OC\Files\Cache\Wrapper\CacheWrapper->get('cache/tmpAvatar')
/var/www/html/nextcloud/lib/private/Files/View.php - line 327: OC\Files\Cache\Updater->remove('cache/tmpAvatar')
/var/www/html/nextcloud/lib/private/Files/View.php - line 1171: OC\Files\View->removeUpdate(Object(OCA\RansomwareProtection\StorageWrapper), 'cache/tmpAvatar')
/var/www/html/nextcloud/lib/private/Files/View.php - line 721: OC\Files\View->basicOperation('unlink', '/tmpAvatar', Array)
/var/www/html/nextcloud/lib/private/Cache/File.php - line 146: OC\Files\View->unlink('tmpAvatar')
/var/www/html/nextcloud/core/Controller/AvatarController.php - line 336: OC\Cache\File->remove('tmpAvatar')
yes .. thx for the comment .. i will tell that to one of my users, who already did this kind of action.
By the way .. i saw some other options to setup ... --->
You can add a wait_timeout line to the mysqld section of your my.cnf configuration file.
The value is specified in seconds. For example, to set the timeout to 24 hours:
[mysqld]
wait_timeout = 86400
But i'm not sure of the consquences .. so i think .. i will wait for other opinions, before implementing.
@Githopp192 Are you using SSL for the mysql connection? Maybe try to disable this as it was reported in #3709 that it solved the issue. Beside that it is best to continue with those MySQL server has gone away in #8863. Thanks
Steps to reproduce
Expected behavior
Picture should upload in a few seconds, and website is refreshing
Actual behavior
Picture is uploading, but process will hung
After switching the website context, and go back to the Personal Settings the Profile Picture was uploaded properly.
Server configuration detail
Operating system: Linux 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64
Webserver: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.1.13 (apache2handler)
Database: mysql 5.5.56
PHP version: 7.1.13
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, json, ldap, exif, mcrypt, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, wddx, xmlreader, xmlwriter, xsl, memcached, zip, Zend OPcache
Nextcloud version: 12.0.5 - 12.0.5.3
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from an older Nextcloud
Where did you install Nextcloud from:
From the official website
Signing status
Array
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
LDAP configuration (delete this part if not used)
NO LDAP Config
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Dragon/52.15.25.665 Chrome/52.0.2743.82 Safari/537.36
Operating system:
Logs
Browser log
Nextcloud log
{"reqId":"WoGgl9OOsy5TXXriH4-pSgAAAAQ","level":3,"time":"2018-02-12T15:11:47+01:00","remoteAddr":"15.203.137.73","user":"REMOVED SENSITIVE VALUE","app":"core","method":"POST","url":"/index.php/avatar/cropped","message":"Exception: {"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT
fileid
,storage
,path
,path_hash
,parent
,name
,mimetype
,mimepart
,size
,mtime
,\n\t\t\t\t\tstorage_mtime
,encrypted
,etag
,permissions
,checksum
\n\t\t\t\tFROMoc_filecache
WHEREstorage
= ? ANDpath_hash
= ?' with params [24, \"d86b35adda1aedc00873efeac3fabb30\"]:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":0,"Trace":"#0 \/var\/www\/html\/nextcloud\/3rdparty\/doctDoctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT
fileid
,storage
,path
,path_hash
,parent
,name
,mimetype
,mimepart
,size
,mtime
,storage_mtime
,encrypted
,etag
,permissions
,checksum
FROMoc_filecache
WHEREstorage
= ? ANDpath_hash
= ?' with params [24, "d86b35adda1aedc00873efeac3fabb30"]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone awayfileid
...', Array)fileid
...', Array, Array, NULL)fileid
...', Array)Browser log
Insert your browser log here, this could for example include:
The text was updated successfully, but these errors were encountered: