Archived

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

IceGrid.DeploymentException

I use AdminPrx to deploy ApplicationDescriptor to IceGrid and node.

Program run OK at my local computer, but when I upload it to remove Linux server, run it, and got the following error message:

IceGrid.DeploymentException
reason = "couldn't load `PsServer192.168.8.30' on node `192.168.8.30':
couldn't create configuration file: /tmp/servers/PsServer192.168.8.30/config/config"

What is the problem?

Here is my code:
	ApplicationUpdateDescriptor applicationUpdateDescriptor = this
				.createApplicationUpdateDescriptor();
		NodeUpdateDescriptor nodeUpdateDescriptor = new NodeUpdateDescriptor();
		nodeUpdateDescriptor.description = new BoxedString();
		nodeUpdateDescriptor.loadFactor = new BoxedString();
		nodeUpdateDescriptor.name = nodeId;
		nodeUpdateDescriptor.propertySets = new HashMap<String, PropertySetDescriptor>();
		nodeUpdateDescriptor.removePropertySets = new String[] {};
		nodeUpdateDescriptor.removeServers = new String[] {};
		nodeUpdateDescriptor.removeVariables = new String[] {};
		nodeUpdateDescriptor.serverInstances = new ArrayList<ServerInstanceDescriptor>();
		nodeUpdateDescriptor.servers = new ArrayList<ServerDescriptor>();
		nodeUpdateDescriptor.variables = new HashMap<String, String>();
		ServerDescriptor serverDescriptor = new ServerDescriptor();
		nodeUpdateDescriptor.servers.add(serverDescriptor);
		// &#28608;&#21457;&#26041;&#24335;
		serverDescriptor.activation = "manual";
		serverDescriptor.activationTimeout = "";
		serverDescriptor.adapters = new ArrayList<AdapterDescriptor>();
		AdapterDescriptor adapterDescriptor = new AdapterDescriptor();

		adapterDescriptor.allocatables = new ArrayList<ObjectDescriptor>();
		adapterDescriptor.description = "";
		// &#35774;&#32622;adapter&#30340;id&#65292;&#20351;&#29992;serverId&#26368;&#20026;&#21069;&#32512;&#65292;&#20445;&#35777;&#20854;&#21807;&#19968;&#65292;
		adapterDescriptor.id = "${server}." + moduleName + "Adapter";
		// adapter &#30340;&#21517;&#23383;&#65292;&#35201;&#36319;&#35774;&#32622;endpoint&#30340;&#21517;&#23383;&#30456;&#21516;&#65292;&#21542;&#21017;&#26080;&#27861;&#24037;&#20316;
		adapterDescriptor.name = moduleName + "Adapter";
		adapterDescriptor.objects = new ArrayList<ObjectDescriptor>();
		adapterDescriptor.priority = "";
		adapterDescriptor.registerProcess = false;
		// &#35774;&#32622;regroup&#30340;&#32534;&#21495;
		adapterDescriptor.replicaGroupId = moduleName + "RepGroup";
		adapterDescriptor.serverLifetime = true;
		serverDescriptor.adapters.add(adapterDescriptor);
		serverDescriptor.allocatable = false;
		serverDescriptor.applicationDistrib = true;
		serverDescriptor.dbEnvs = new ArrayList<DbEnvDescriptor>();
		serverDescriptor.deactivationTimeout = "";
		serverDescriptor.description = "";
		serverDescriptor.distrib = new DistributionDescriptor();
		serverDescriptor.distrib.directories = new ArrayList<String>();
		serverDescriptor.distrib.icepatch = "";
		serverDescriptor.envs = new ArrayList<String>();
		serverDescriptor.exe = "ls";
		serverDescriptor.iceVersion = "";
		serverDescriptor.id = serverId;
		serverDescriptor.logs = new String[] {};
		serverDescriptor.options = new ArrayList<String>();
		serverDescriptor.propertySet = new PropertySetDescriptor();
		serverDescriptor.propertySet.properties = new ArrayList<PropertyDescriptor>();
		// &#35774;&#32622;Endpoint&#65292;&#21517;&#23383;&#35201;&#36319;&#19978;&#38754;adapter&#30340;name&#30456;&#21516;&#65292;&#21542;&#21017;&#26080;&#27861;&#24037;&#20316;
		serverDescriptor.propertySet.properties.add(new PropertyDescriptor(
				moduleName + "Adapter" + ".Endpoints", "default"));
		serverDescriptor.propertySet.references = new String[] {};
		serverDescriptor.pwd = "";
		serverDescriptor.user = "";
		applicationUpdateDescriptor.nodes.add(nodeUpdateDescriptor);
		this.admin.updateApplication(applicationUpdateDescriptor);

Comments

  • And when I trying to use IceGridGUI to perform these proces, and it also fail.
    I upload the screen copy as file attachement.
  • benoit
    benoit Rennes, France
    Hi,

    The IceGrid node is unable to create the configuration file as indicated by the exception. Does the user running the icegridnode have rights to write in the /tmp directory? Is the /tmp/servers directory created after the IceGrid node starts?

    Cheers,
    Benoit.