[SERVER-20697] Running 'mongod.exe' with '--dbpath' containing the Cyrillic alphabet Created: 30/Sep/15  Updated: 02/Oct/15  Resolved: 01/Oct/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.1.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Zolotov Pavel Assignee: Kaloian Manassiev
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-16725 Incorrect character conversion betwee... Closed
Operating System: ALL
Steps To Reproduce:

Example:
1) Create folder on 'C:/' named 'Новая папка'.
2) Run 'mongod.exe --dbpath "C:/Новая папка"'

Participants:

 Description   

I want to run MongoDB to save data by the path, containing Cyrillic alphabet.

Example:
mongod.exe --dbpath "C:/Новая папка"

Thus mongod.exe does not start with an error

... [initandlisten] exception in initAndListen: 29 Data directory C:/Новая папка not found., terminating ...

While this folder exists.

And as is seen from example 'mongod.exe' write right path in console. May blame the interaction with WIndows regard Cyrillic symbols.



 Comments   
Comment by Spencer Jackson [ 01/Oct/15 ]

Thank you for reporting that you've encountered this. I believe this is another manifestation of SERVER-16725, which describes a Windows specific error in character set translation when interacting with the filesystem. Because there is an existing ticket which describes this issue, I'm going to close this ticket as a duplicate. I encourage you to follow SERVER-16725 for updates on this issue.

Comment by Zolotov Pavel [ 01/Oct/15 ]

We'll post updates to this ticket as we find out more.

Thank you. Perhaps the fact that Windows takes the path is not UTF-8, and in Windows-1251. Although this is just a guess, because I do not know exactly how the interplay between Mongo and Windows.

Comment by Zolotov Pavel [ 01/Oct/15 ]

ramon.fernandez

I'm not able to reproduce the same behavior on linux

I had to choose Windows as the operating system.

Also, what happens when you run the following from a command prompt?

md 'C:\Новая папка'
dir 'C:\Новая папка'

This result is quite expected:

C:\>md "Новая папка"

C:\>dir "C:/Новая папка"
Том в устройстве C не имеет метки.
Серийный номер тома: <some>

Содержимое папки C:\Новая папка

01.10.2015 12:27 <DIR> .
01.10.2015 12:27 <DIR> ..
0 файлов 0 байт
2 папок 2 362 355 712 байт свободно

Comment by Ramon Fernandez Marina [ 30/Sep/15 ]

kaloian.manassiev is able to reproduce this behavior, but is not clear yet where the bug is. We'll post updates to this ticket as we find out more.

Comment by Ramon Fernandez Marina [ 30/Sep/15 ]

Azriel, I'm not able to reproduce the same behavior on linux, so this may be indeed related to how Windows handles Cyrillic symbols or how your system is configured: you may need to change your system locale.

Also, what happens when you run the following from a command prompt?

md 'C:\Новая папка'
dir 'C:\Новая папка'

Generated at Thu Feb 08 03:55:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.