nextcloud / deck

🗂 Kanban-style project & personal management tool for Nextcloud, similar to Trello
https://apps.nextcloud.com/apps/deck
GNU Affero General Public License v3.0
1.22k stars 276 forks source link

Upload of even smaller files as attachment to a card fails (upload_max_filesize) #573

Closed jgrete closed 6 years ago

jgrete commented 6 years ago

Steps to reproduce

1.Try to upload a file of smaller size (I've done it with a 98k file) as an attachment for card 2. 3.

Expected behaviour

upload works without problems because the upload limit is about 8Gb and there's no problem with it when I upload much larger files to other directories.

Actual behaviour

Failed to upload: Filename... The uploaded file is larger than upload_max_filesize in php.ini

Server configuration detail

Operating system: Linux 4.4.132-53-default #1 SMP Wed May 23 06:57:07 UTC 2018 (036cd2f) x86_64

Webserver: Apache (apache2handler)

Database: mysql 10.2.15

PHP version: 7.0.7 Modules loaded: Core, date, libxml, pcre, filter, hash, Reflection, SPL, session, SimpleXML, standard, xml, mysqlnd, apache2handler, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, exif, mcrypt, mysqli, openssl, pcntl, PDO, pdo_mysql, pdo_sqlite, posix, redis, shmop, sockets, sqlite3, tidy, tokenizer, xmlreader, xmlwriter, xsl, zip, zlib, Zend OPcache

Nextcloud version: 13.0.5 - 13.0.5.2

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status Array
List of activated apps ``` Enabled: - activity: 2.6.1 - admin_audit: 1.3.0 - announcementcenter: 3.2.1 - apporder: 0.5.0 - bookmarks: 0.11.0 - bruteforcesettings: 1.1.0 - calendar: 1.6.1 - camerarawpreviews: 0.5.5 - checksum: 0.4.0 - circles: 0.14.1 - cms_pico: 0.9.7 - comments: 1.3.0 - contacts: 2.1.5 - data_request: 1.0.1 - dav: 1.4.7 - deck: 0.4.1 - drawio: 0.9.0 - drop_account: 0.0.11 - dropit: 0.1.1 - end_to_end_encryption: 1.0.5 - external: 3.0.3 - federatedfilesharing: 1.3.1 - federation: 1.3.0 - files: 1.8.0 - files_accesscontrol: 1.3.0 - files_antivirus: 1.3.1 - files_automatedtagging: 1.3.0 - files_downloadactivity: 1.2.0 - files_external: 1.4.1 - files_linkeditor: 1.0.5 - files_markdown: 2.0.4 - files_pdfviewer: 1.2.1 - files_reader: 1.2.3 - files_retention: 1.2.0 - files_rightclick: 0.8.4 - files_sharing: 1.5.0 - files_texteditor: 2.5.1 - files_trackdownloads: 1.2.2 - files_trashbin: 1.3.0 - files_versions: 1.6.0 - files_videoplayer: 1.2.0 - firstrunwizard: 2.2.1 - flowupload: 0.0.7 - gallery: 18.0.0 - gpxedit: 0.0.8 - gpxmotion: 0.0.6 - gpxpod: 2.2.2 - groupfolders: 1.2.2 - impersonate: 1.0.4 - issuetemplate: 0.3.0 - keeporsweep: 0.1.6 - logreader: 2.0.0 - lookup_server_connector: 1.1.0 - mail: 0.8.3 - metadata: 0.6.0 - mood: 0.3.3 - music: 0.8.0 - nextcloud_announcements: 1.2.0 - notes: 2.4.0 - notifications: 2.1.2 - oauth2: 1.1.1 - ocdownloader: 1.5.6 - ojsxc: 3.4.1 - ownbackup: 17.5.0 - ownpad: 0.6.6 - passman: 2.1.4 - password_policy: 1.3.0 - phonetrack: 0.2.8 - polls: 0.8.1 - previewgenerator: 1.1.0 - provisioning_api: 1.3.0 - qownnotesapi: 17.5.0 - quicknotes: 0.1.3 - quota_warning: 1.2.0 - radio: 0.6.1 - ransomware_protection: 1.1.1 - registration: 0.4.3 - sensorlogger: 0.0.6 - serverinfo: 1.3.0 - sharebymail: 1.3.0 - smb_test: 0.1.0 - socialsharing_diaspora: 1.0.2 - socialsharing_email: 1.0.3 - socialsharing_facebook: 1.0.2 - socialsharing_googleplus: 1.0.2 - socialsharing_twitter: 1.0.2 - spreed: 3.2.5 - survey_client: 1.1.0 - systemtags: 1.3.0 - tasks: 0.9.6 - telephoneprovider: 1.0.1 - theming: 1.4.5 - theming_customcss: 1.1.0 - twofactor_backupcodes: 1.2.3 - updatenotification: 1.3.0 - user_pwauth: 2.5.1 - user_usage_report: 1.0.1 - weather: 1.5.1 - workflowengine: 1.3.0 Disabled: - admin_notifications - bookmarks_fulltextsearch - encryption - files_fulltextsearch - fulltextsearch - fulltextsearch_elasticsearch - limit_login_to_ip - spreedme - user_external - user_ldap - w2g2 ```
Configuration (config/config.php) ``` { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "xxx.yyy.io", "cloud-server.fritz.box", "hal", "hal.fritz.box" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/xxx.yyy.io\/nextcloud", "dbtype": "mysql", "version": "13.0.5.2", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpsecure": "tls", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "PLAIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "maintenance": false, "theme": "thema1", "filelocking.enabled": true, "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379, "timeout": 0 }, "log_rotate_size": 13107200, "preview_libreoffice_path": "\/usr\/bin\/libreoffice", "preview_office_cl_parameters": " --headless --nologo --nofirststartwizard --invisible --norestore --convert-to pdf --outdir ", "loglevel": 2, "updater.release.channel": "stable" } ```

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used) ``` 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; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0

Operating system:

Logs

Browser log ``` Insert your webserver log here ```
Nextcloud log ``` Insert your Nextcloud log here ```
Browser log Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ...
juliusknorr commented 6 years ago

@jgrete Thanks for your report. Can you post your php config? Does this only happen for a specific file?

jgrete commented 6 years ago

@juliushaertl The behaviour does not depend on what kind of file it is. php.ini follows

php_ini.txt

juliusknorr commented 6 years ago

@jgrete It seems you have an error at your upload_max_filesize setting, as there is a space between 8 GB. It should be upload_max_filesize = 8GB

jgrete commented 6 years ago

Ahh, we're getting closer. It's true, the size has to be written in a different manner. But only these size specifications were successful: 8G 8 G Don't know why it so strict...

Thanks alot Juergen