server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Cant upload any .PNG or .JPEG file

Open sunshine7x opened this issue 2 years ago • 1 comments

⚠️ This issue respects the following points: ⚠️

Bug description

I'm trying to upload image files like PNG or JPEG to any folder even the root folder and I can't. It gives me a message like this: " Destination folder "/example" no longer exists "

Steps to reproduce

  1. Create any folder
  2. Click to upload any image like PNG or JPEG
  3. A message apears : Destination folder "/example" no longer exists.

Expected behavior

Can upload image files normaly from web or webdav.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

25

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "drive.dgfile.com.br"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "22.2.10.2",
        "overwrite.cli.url": "https:\/\/drive.dgfile.com.br",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "l0en_",
        "filesystem_check_changes": 1,
        "knowledgebaseenabled": false,
        "filelocking.enabled": true,
        "default_language": "pt_BR",
        "force_language": "pt_BR",
        "default_locale": "pt_BR",
        "force_locale": "pt_BR",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtptimeout": "30",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "2525",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2

List of activated Apps

Enabled:
  - accessibility: 1.8.0
  - activity: 2.15.0
  - cloud_federation_api: 1.5.0
  - dav: 1.20.0
  - federatedfilesharing: 1.12.0
  - federation: 1.12.0
  - files: 1.17.0
  - files_pdfviewer: 2.3.1
  - files_sharing: 1.14.0
  - files_trashbin: 1.12.0
  - logreader: 2.7.0
  - lookup_server_connector: 1.10.0
  - oauth2: 1.10.0
  - provisioning_api: 1.12.0
  - serverinfo: 1.12.0
  - settings: 1.4.0
  - theming: 1.13.0
  - theming_customcss: 1.14.0
  - twofactor_backupcodes: 1.11.0
  - viewer: 1.6.0
  - workflowengine: 2.4.0
Disabled:
  - admin_audit
  - bruteforcesettings: 2.2.0
  - circles: 22.3.2
  - comments: 1.10.0
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - encryption
  - files_external
  - files_rightclick: 0.17.0
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - firstrunwizard: 2.9.0
  - nextcloud_announcements: 1.9.0
  - notifications: 2.8.0
  - occweb: 0.1.0
  - password_policy: 1.10.1
  - photos: 1.2.3
  - privacy: 1.4.0
  - recommendations: 0.8.0
  - sharebymail: 1.10.0
  - support: 1.3.0
  - survey_client: 1.8.0
  - systemtags: 1.10.0
  - text: 3.1.0
  - updatenotification: 1.10.0
  - user_ldap
  - user_status: 1.0.1
  - weather_status: 1.0.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

\\QueryBuilder","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/apps/files/lib/BackgroundJob/ScanFiles.php","line":119,"function":"getUserToScan","class":"OCA\\Files\\BackgroundJob\\ScanFiles","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files\\BackgroundJob\\ScanFiles","type":"->","args":[null]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/cron.php","line":150,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php","Line":101,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDO\\Exception","Message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":2006,"Trace":[{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":94,"function":"new","class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","type":"::","args":[{"errorInfo":["HY000",2006,"MySQL server has gone away"],"__class__":"PDOException"}]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Connection.php","line":1057,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/DB/Connection.php","line":236,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `user_id` FROM `l0en_filecache` `f` INNER JOIN `l0en_mounts` `m` ON `storage_id` = `storage` WHERE (`size` < ?) AND (`parent` > ?) LIMIT 1",[0,-1],[1,1],null]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":345,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT `user_id` FROM `l0en_filecache` `f` INNER JOIN `l0en_mounts` `m` ON `storage_id` = `storage` WHERE (`size` < :dcValue1) AND (`parent` > :dcValue2) LIMIT 1",[0,-1],[1,1]]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/apps/files/lib/BackgroundJob/ScanFiles.php","line":105,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/apps/files/lib/BackgroundJob/ScanFiles.php","line":119,"function":"getUserToScan","class":"OCA\\Files\\BackgroundJob\\ScanFiles","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files\\BackgroundJob\\ScanFiles","type":"->","args":[null]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/cron.php","line":150,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php","Line":26,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":"HY000","Trace":[{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":92,"function":"execute","class":"PDOStatement","type":"->","args":[null]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Connection.php","line":1057,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/DB/Connection.php","line":236,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `user_id` FROM `l0en_filecache` `f` INNER JOIN `l0en_mounts` `m` ON `storage_id` = `storage` WHERE (`size` < ?) AND (`parent` > ?) LIMIT 1",[0,-1],[1,1],null]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":345,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT `user_id` FROM `l0en_filecache` `f` INNER JOIN `l0en_mounts` `m` ON `storage_id` = `storage` WHERE (`size` < :dcValue1) AND (`parent` > :dcValue2) LIMIT 1",[0,-1],[1,1]]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/apps/files/lib/BackgroundJob/ScanFiles.php","line":105,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/apps/files/lib/BackgroundJob/ScanFiles.php","line":119,"function":"getUserToScan","class":"OCA\\Files\\BackgroundJob\\ScanFiles","type":"->","args":[]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/BackgroundJob/Job.php","line":51,"function":"run","class":"OCA\\Files\\BackgroundJob\\ScanFiles","type":"->","args":[null]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/lib/private/BackgroundJob/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"/home/u277095962/domains/dgfile.com.br/public_html/drive/cron.php","line":150,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"/home/u277095962/domains/dgfile.com.br/public_html/drive/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","Line":92}},"CustomMessage":"Error while running background job (class: OCA\\Files\\BackgroundJob\\ScanFiles, arguments: )"}}

Additional info

No response

sunshine7x avatar Jun 17 '23 13:06 sunshine7x

Thanks for your report.

According to the stack trace you provided, your database server is offline or having issues. You need to do some troubleshooting of your servers / hosting environment first.

This doesn't sound like a bug in Nextcloud at this time (unless more evidence is provided that suggests otherwise).

If you get stuck troubleshooting the cause of your database issues, you can get feedback and suggestions from the Nextcloud community by posting and filling out the support form here:

https://help.nextcloud.com/c/support/7

joshtrichards avatar Jun 17 '23 14:06 joshtrichards

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

nextcloud-command avatar Jul 18 '23 00:07 nextcloud-command