Menu

#57 Error SE4211 under path with 2 bytes characters

Sedna_(development)
open
General (18)
3
2014-12-15
2010-07-19
chun chen
No

version of Sedna - 3.3.55
operating system version - Windows 5.1.2600 (SP3.0) x86

When trying to create a database under path with 2 bytes characters, I got the ERROR SE4211.
2 bytes characters means Chinese or Japanese characters. Command lines :

  E:\publish\版本发布\sedna\bin>se_gov
GOVERNOR has been started in the background mode
E:\publish\版本发布\sedna\bin>se_cdb aaa
Creating a data base (it can take a few minutes)...
SEDNA Message: ERROR SE4211
Failed to create the database
Details: aaa

Cannot complete cleanup. Please stop Sedna and remove the following:
file   -  /cfg/aaa_cfg.xml
folder -  /data/aaa_files
Sorry for inconvenience.

E:\publish\版本发布\sedna\bin>

Discussion

  • chun chen

    chun chen - 2010-07-19
     
  • Ivan Shcheklein

    Ivan Shcheklein - 2010-07-19

    Hi Chun,

    This is a known limitation of Sedna. For the moment the only workaround is to use ASCII chars in path.

    Technical comments for developers for further work on this issue:

    1. On windows seems we have to define UNICODE (see MSND, Conventions for Function Prototypes) and use wchar* for all system calls. Everywhere we need we should translate Sedna's UTF-8 strings (like SEDNA_DATA) -> wchar and backward.

    2. On windows we should also explicitly use _wfopen instead of fopen, etc ...

    3. On Linux there is no "wfopen()" (just plain old "fopen()" will suffice), but there are Unicode equivalents for each of the file read and write APIs. Should we use them?

    4. We should also check other supported platforms - OS X, Solaris, BSD.

    5. As a temporary fix probably we may raise some exception on se_gov if there are non ASCII chars?

     
  • Anonymous

    Anonymous - 2010-10-01

    I have received a similar error after installing via binaries on Mac OS 10.6.4.

    Upon issuing the following command: se_cdb xxx
    ...
    SEDNA Message: ERROR SE4040
    Can't create file
    Details: database configuration file
    Cannot complete cleanup. Please stop Sedna and remove the following:
    file - /cfg/xxx_cfg.xml
    folder - /data/xxx_files
    Sorry for inconvenience.

    I have executed chown on data and cfg directories. Should I build from source?

    Thanks,
    Lance

     
  • Ivan Shcheklein

    Ivan Shcheklein - 2010-10-01

    Lance, why do you think that your problem is the same? Please contact us on sedna@ispras.ru or sedna discussion list. We'll try to help you.

     
  • Ivan Shcheklein

    Ivan Shcheklein - 2012-10-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,10 +4,9 @@
     When trying to create a database under path with 2 bytes characters, I got the ERROR SE4211.
     2 bytes characters means Chinese or Japanese characters. Command lines :
    
    -
    +~~~~~~
       E:\publish\版本发布\sedna\bin>se_gov
     GOVERNOR has been started in the background mode
    -
     E:\publish\版本发布\sedna\bin>se_cdb aaa
     Creating a data base (it can take a few minutes)...
     SEDNA Message: ERROR SE4211
    @@ -20,5 +19,5 @@
     Sorry for inconvenience.
    
     E:\publish\版本发布\sedna\bin>
    +~~~~~~
    
    -
    
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB