Scandinavian letters (ä, ö, etc) on file names

Nextcloud version: 16.0.1
Operating system and version: Kubuntu 18.04
Nginx version: 1.17.0
PHP version: 7.2.19

The issue you are facing:
File upload fails with no error messages when trying to upload file with scandinavian letters (ä, å, ö, ø, etc) in the file name

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

Steps to replicate it:

  1. Have your Nextcloud server running, I have encryption enabled, but I don’t know does it affect the issue
  2. prepare any file to upload, for example a png image, and rename it to ö.png or ä.png
  3. Drag it to the nextcloud browser window, or use the upload button. This issue occurs on android too

The output of your Nextcloud log in Admin > Logging:

No server logs
Everything is working fine

For some reason all logs have been disappeared. There were a few of errors

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'mydomain.com',
  ),
  'datadirectory' => '/disks/Cloud/Nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '16.0.1.1',
  'overwrite.cli.url' => 'https://mydomain.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:50689',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'NEXTCLOUD',
  'dbpassword' => 'xxxxxxxxxxxxxxxxxxxx',
  'installed' => true,
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'address',
  'mail_domain' => 'domain.com',
  'mail_smtphost' => 'smtp.domain.com',
  'mail_smtpport' => '587',
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => 'address@domain.com',
  'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxxxx',
);

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

Access log (both logs may contain

MY-IP - - [09/Jun/2019:17:16:37 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:17:08 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:17:38 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:18:08 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:18:38 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:19:08 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
SOMEONE RANDOM SNIFFING FROM BRAZIL - - [09/Jun/2019:17:19:23 +0300] "GET / HTTP/1.1" 307 164 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
MY-IP - - [09/Jun/2019:17:19:38 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:20:08 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:20:38 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"
MY-IP - - [09/Jun/2019:17:21:08 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36"

Error log - - It is just full of rate limiting errors, due to too strict policy, I think it is now fixed

2019/06/09 00:30:10 [error] 16711#16711: *775 limiting requests, excess: 1.000 by zone "SEKUNTI", client: MY-IP, server: domain.com, request: "PROPFIND /remote.php/dav HTTP/2.0", host: "domain.com"
2019/06/09 00:30:33 [error] 16711#16711: *1024 limiting requests, excess: 0.984 by zone "SEKUNTI", client: 95.217.53.149, server: domain.com, request: "GET /nextcloud/status.php HTTP/1.1", host: "domain.com"

I tried enabling mysql 4 byte support https://docs.nextcloud.com/server/16/admin_manual/configuration_database/mysql_4byte_support.html but it didn’t solve the issue. Now I can name files with emojis but Finnish language still fails.

It is possible to rename already uploaded files to äö.png but, it is not possible to upload them.

It will be helpful if you know even any google search terms for solving this issue, because I wasn’t able to find anything

What if you set your Nextcloud logging level to debug and upload ö.png or similar again, do you see anything helpfull in the log?

Remember to change log level back or you’ll get a huge log file soon.

1 Like

Did you find solution?

Thank you so much for your reply, I tried enabling full logging and I got multiple “Could not find resource core/vendor/marked/marked.min.js to load” errors and successiful cron job logs, so the issue is still not resolved.

I also encountered upload errors from the android app where it uploads first three files and fails the rest and doesn’t upload any more of them when trying to restart this upload. I tried to increase the php upload limit to 500 and now testing.

There are random also random upload errors where it just doesn’t upload certain file but other files are well uploaded. I have to test this again when I get back to my desktop. It still does not upload files with letters ä and ö.