Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filescan retrun "entry will not be accessible due to incompatible encoding" #3136

Closed
abolinhas opened this issue Jan 18, 2017 · 10 comments
Closed

Comments

@abolinhas
Copy link

Hi,
I'm using nextcloud11, I move a lot of folders/files from my old cloud to nextcloud, now when I execute the command php occ files:scan --all I get this error
Entry "/admin/files/Informa▒▒o Geografica/Areas_PGF/Caima.dbf" will not be accessible due to incompatible encoding
Entry "/admin/files/3_Eixo/Primeira Interven▒▒o/Sectores entidades.dbf" will not be accessible due to incompatible encoding
Entry "/admin/files/3_Eixo/Primeira Interven▒▒o/LEE.shp" will not be accessible due to incompatible encoding
and more...

How can I fix it?
Best regards

@nickvergessen
Copy link
Member

@icewind1991 any idea what users can do?

@abolinhas
Copy link
Author

Hi,
Any tips about it?

@icewind1991
Copy link
Member

Do these files come from an OSX system?

The "most correct" way would be to upload the files trough the web interface, webdav or sync client which will ensure the encoding of the unicode characters is correct.

Alternatively you can convert the NFD encoded filenames (which OSX uses) to NVC encoded ones (what the rest of the world uses) while copying over the files. (see https://serverfault.com/questions/397420/converting-utf-8-nfd-filenames-to-utf-8-nfc-in-either-rsync-or-afpd for example)

@abolinhas
Copy link
Author

No, I just copy from one folder to another on the same linux server.
Eg the command that I use
cp -R /oldcloud/home/folder /nextcloud/home/

@icewind1991
Copy link
Member

It's possible that previously a client messed with the encoding then.

Can you try doing the encoding conversion while copying (rsync -a --iconv=utf-8-mac,utf-8 ...)

@MorrisJobke
Copy link
Member

No reply: I guess this is solved then.

We are happy to reopen if this hasn't solved the issue for you.

@wendall
Copy link

wendall commented Jan 28, 2020

I had the same issue with Russian symbols in folder/file names. @icewind1991 is right, the problem was in NFD encoded filenames.
Just installed convmv and run:
convmv -f utf-8 -t utf-8 -r --notest --nfc <nextcloud-data-folder>
After this a simple reindex helped me to see my data in Nextcloud:
php occ files:scan --all

@ghost
Copy link

ghost commented Jun 13, 2020

Just a note to say this fixed the issue for me too. Weird thing is that I have no idea how I got the NFD encoded filenames to start with!

@philippebaque
Copy link

I had the same issue with Russian symbols in folder/file names. @icewind1991 is right, the problem was in NFD encoded filenames.
Just installed convmv and run:
convmv -f utf-8 -t utf-8 -r --notest --nfc <nextcloud-data-folder>
After this a simple reindex helped me to see my data in Nextcloud:
php occ files:scan --all

thank you Wendall..this fix it , you saved my time a lot! clap…clap…clap…

@mraniki
Copy link

mraniki commented Aug 18, 2022

thanks. this has helped me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants