Archived

This forum has been archived. Please start a new discussion on GitHub.

icegridnode failed to start the server

if the server is put in a directory that contains chinese character,
icegridnode would be unable to start the server,
and icegridregister logged that
[icegridregistry:couldn't load 'ThisServer' on node 'thisserver' :cannot create diractory '***the exact diretory***': deny ]

do you know how to solve this?

thanks~

Comments

  • benoit
    benoit Rennes, France
    Hi,

    We're not aware of this issue. I'll try to reproduce it -- I'll keep you posted!

    Cheers,
    Benoit.
  • benoit
    benoit Rennes, France
    Btw, which OS and Ice version are you using?

    Thanks,

    Benoit.
  • we are using Windows XP SP2 and Ice 3.0.1

    thanks~
  • hi benoit, is there any progress here, or is there any suggestion you can give us.

    in this case, three folders(distrib,servers,tmp) in the node folder are created, but it failed to create the folder under 'servers', like 'd:/*some chinese characters*/db/node/servers/HelloServer1'.

    icegridregistry printed:"reason:cannot create directory 'd:/**some chinese characters**/db/node/servers/HelloServer1':****(some chinese word means denied to access)
  • benoit
    benoit Rennes, France
    Hi,

    Sorry, I didn't get time to look into this yet. Could you post the configuration file for your node and the XML application descriptor? This might help reproducing the error. Also, are you sure the icegridnode is allowed to create directories under the node/servers directory? In general, an "access denied" error indicates a permission problem.

    Cheers,
    Benoit.
  • we can reproduce this just using icegrid/simple

    reason: couldn't create configuration file: E:\Ice-3.0.1-VC80\demo\IceGrid\***simple/db/node/servers/SimpleServer1/config/config
    (*** is replaced by some chinese characters)
    if *** is removed, everything is ok.
    config file:
    IceGrid.InstanceName=IceGrid
    Ice.Default.Locator=IceGrid/Locator:default -h 192.168.101.87 -p 10000
    IceGrid.Node.Name=HelloNode1
    IceGrid.Node.Endpoints=default
    IceGrid.Node.Data=db/node
    IceGrid.Node.Trace.Activator=1
    IceGrid.Node.Trace.Patch=1
    
    xml deployment:
    <icegrid>
      <application name="Simple">
    <replica-group id="HelloAdapters">
    <load-balancing type="round-robin"/>
    <object identity="hello"	type="::Demo::Hello"/>
    </replica-group>
    <server-template id="HelloNodeTemplate">
    <parameter name="index"/>
    <parameter name="exepath"	default="./server"/>
    <server id="SimpleServer${index}"	exe="${exepath}"	activation="on-demand">
    <adapter name="Hello"	replica-group="HelloAdapters"
    						register-process="true"	endpoints="default"/>
    <property name="Identity" value="hello"/>
    </server>
    </server-template>
    <node name="HelloNode1">
    <server-instance template="HelloNodeTemplate" index="1"/>
    </node>
    <node name="HelloNode2">
    <server-instance template="HelloNodeTemplate" index="2"/>
    </node>
    </application>
    </icegrid>
    

    thank you~
  • benoit
    benoit Rennes, France
    Hi,

    Thanks for reporting this, I was finally able to reproduce this issue. I'm afraid IceGrid doesn't support well non-ASCII file names on Windows. Fixing this is not trivial so I can't provide you a patch now but we'll make sure this is eventually fixed in an upcoming release. Of course, if you have a commercial need for this and need a patch sooner, don't hesitate to contact us at info@zeroc.com

    Thanks again for the bug report!

    Cheers,
    Benoit.
  • thanks for your help~:)