Closed bonitoman closed 10 years ago
Seems the user that runs orientdb server has no right to write config file.
I started the OrientDB Server as a normal user (Mac OS 10.10 Yosemite) and I have full write permissions on the config dir and files:
armin@mac-armin:config$ pwd
/Users/armin/dev/orientdb-community-2.0-M2-SNAPSHOT/config
armin@mac-armin:config$ ls -l
total 48
drwxr-xr-x@ 2 armin staff 68 30 Sep 16:41 cert
-rw-r--r--@ 1 armin staff 377 30 Sep 16:41 default-distributed-db-config.json
-rwxr-xr-x@ 1 armin staff 1249 30 Sep 16:41 hazelcast.xml
-rw-r--r--@ 1 armin staff 1410 30 Sep 16:41 orientdb-client-log.properties
-rw-r--r--@ 1 armin staff 5899 25 Okt 10:00 orientdb-server-config.xml
-rw-r--r--@ 1 armin staff 2004 30 Sep 16:41 orientdb-server-log.properties
In the orientdb-community-2.0-M2-SNAPSHOT/config/orientdb-server-config.xml
there I find a parameter with name nodeName
and value node1414224017249
, but on every server restart, it asks me always to enter a node name:
<handler class="com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin">
<parameters>
<parameter value="${distributed}" name="enabled"/>
<parameter value="${ORIENTDB_HOME}/config/default-distributed-db-config.json" name="configuration.db.default"/>
<parameter value="${ORIENTDB_HOME}/config/hazelcast.xml" name="configuration.hazelcast"/>
<parameter value="com.orientechnologies.orient.server.distributed.conflict.ODefaultReplicationConflictResolver" name="conflict.resolver.impl"/>
<parameter value="node1414224017249" name="nodeName"/>
</parameters>
</handler>
Or is the node name written to another config file (where I may not have permissions to write)?
Tried on my Yosemite and works. How did you start it?
I am starting it by cd bin; ./server.sh
(not cd bin; ./dserver.sh
).
armin@mac-armin:orientdb-community-2.0-M2-SNAPSHOT$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10
BuildVersion: 14A389
armin@mac-armin:orientdb-community-2.0-M2-SNAPSHOT$ java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
armin@mac-armin:orientdb-community-2.0-M2-SNAPSHOT$ pwd
/Users/armin/dev/orientdb-community-2.0-M2-SNAPSHOT
armin@mac-armin:orientdb-community-2.0-M2-SNAPSHOT$ ls -l config/orientdb-server-config.xml
-rw-r--r--@ 1 armin staff 5899 26 Okt 00:09 config/orientdb-server-config.xml
armin@mac-armin:orientdb-community-2.0-M2-SNAPSHOT$ grep -i node config/orientdb-server-config.xml
<parameter value="node1414274994975" name="nodeName"/>
armin@mac-armin:orientdb-community-2.0-M2-SNAPSHOT$ cd bin
armin@mac-armin:bin$ ./server.sh
.
.` `
, `:.
`,` ,:`
.,. :,,
.,, ,,,
. .,.::::: ```` ::::::::: :::::::::
,` .::,,,,::.,,,,,,`;; .: :::::::::: ::: :::
`,. ::,,,,,,,:.,,.` ` .: ::: ::: ::: :::
,,:,:,,,,,,,,::. ` ` `` .: ::: ::: ::: :::
,,:.,,,,,,,,,: `::, ,, ::,::` : :,::` :::: ::: ::: ::: :::
,:,,,,,,,,,,::,: ,, :. : :: : .: ::: ::: :::::::
:,,,,,,,,,,:,:: ,, : : : : .: ::: ::: :::::::::
` :,,,,,,,,,,:,::, ,, .:::::::: : : .: ::: ::: ::: :::
`,...,,:,,,,,,,,,: .:,. ,, ,, : : .: ::: ::: ::: :::
.,,,,::,,,,,,,: `: , ,, : ` : : .: ::: ::: ::: :::
...,::,,,,::.. `: .,, :, : : : .: ::::::::::: ::: :::
,::::,,,. `: ,, ::::: : : .: ::::::::: ::::::::::
,,:` `,,.
,,, .,`
,,. `, GRAPH DATABASE
`` `.
`` www.orientdb.org
`
2014-10-26 00:20:13:226 WARN Your maximum heap size is 910.50MB, but OrientDB uses off-heap memory to avoid GC pauses. In the case OrientDB is running as standalone, we recommend to use smaller amount of heap memory to let OrientDB using the rest as off-heap. 512 megabytes is recommended value of heap size. [orientechnologies]
2014-10-26 00:20:13:229 INFO Loading configuration from: /Users/armin/dev/orientdb-community-2.0-M2-SNAPSHOT/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
2014-10-26 00:20:13:450 INFO OrientDB Server v2.0-M2-SNAPSHOT (build UNKNOWN@r; 2014-09-30 16:41:20-0400) is starting up... [OServer]
2014-10-26 00:20:13:457 INFO Databases directory: /Users/armin/dev/orientdb-community-2.0-M2-SNAPSHOT/databases [OServer]
2014-10-26 00:20:13:501 INFO Listening binary connections on 0.0.0.0:2424 (protocol v.25, socket=default) [OServerNetworkListener]
2014-10-26 00:20:13:503 INFO Listening http connections on 0.0.0.0:2480 (protocol v.10, socket=default) [OServerNetworkListener]
2014-10-26 00:20:13:515 INFO Installing dynamic plugin 'studio-2.0.zip'... [OServerPluginManager]
2014-10-26 00:20:13:581 INFO Installing GREMLIN language v.2.6.0 - graph.pool.max=50 [OGraphServerHandler]
2014-10-26 00:20:13:609 WARN [OVariableParser.resolveVariables] Error on resolving property: distributed [orientechnologies]
+----------------------------------------------------+
| WARNING: FIRST DISTRIBUTED RUN CONFIGURATION |
+----------------------------------------------------+
| This is the first time that the server is running |
| as distributed. Please type the name you want |
| to assign to the current server node. |
+----------------------------------------------------+
Node name [BLANK=auto generate it]:
This is what I have:
MacBook-Pro:bin luca$ ./server.sh
.
.` `
, `:.
`,` ,:`
.,. :,,
.,, ,,,
. .,.::::: ```` ::::::::: :::::::::
,` .::,,,,::.,,,,,,`;; .: :::::::::: ::: :::
`,. ::,,,,,,,:.,,.` ` .: ::: ::: ::: :::
,,:,:,,,,,,,,::. ` ` `` .: ::: ::: ::: :::
,,:.,,,,,,,,,: `::, ,, ::,::` : :,::` :::: ::: ::: ::: :::
,:,,,,,,,,,,::,: ,, :. : :: : .: ::: ::: :::::::
:,,,,,,,,,,:,:: ,, : : : : .: ::: ::: :::::::::
` :,,,,,,,,,,:,::, ,, .:::::::: : : .: ::: ::: ::: :::
`,...,,:,,,,,,,,,: .:,. ,, ,, : : .: ::: ::: ::: :::
.,,,,::,,,,,,,: `: , ,, : ` : : .: ::: ::: ::: :::
...,::,,,,::.. `: .,, :, : : : .: ::::::::::: ::: :::
,::::,,,. `: ,, ::::: : : .: ::::::::: ::::::::::
,,:` `,,.
,,, .,`
,,. `, GRAPH DATABASE
`` `.
`` www.orientdb.org
`
2014-10-27 12:37:19:005 INFO Loading configuration from: /Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-2.0-SNAPSHOT/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
2014-10-27 12:37:19:159 INFO OrientDB Server v2.0-SNAPSHOT (build 2324) is starting up... [OServer]
2014-10-27 12:37:19:164 INFO Databases directory: /Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-2.0-SNAPSHOT/databases [OServer]
2014-10-27 12:37:19:204 INFO Listening binary connections on 0.0.0.0:2424 (protocol v.25, socket=default) [OServerNetworkListener]
2014-10-27 12:37:19:205 INFO Listening http connections on 0.0.0.0:2480 (protocol v.10, socket=default) [OServerNetworkListener]
2014-10-27 12:37:19:215 INFO Installing dynamic plugin 'studio-2.0.zip'... [OServerPluginManager]
2014-10-27 12:37:19:278 INFO Installing GREMLIN language v.2.6.0 - graph.pool.max=50 [OGraphServerHandler]
2014-10-27 12:37:19:283 WARNING [OVariableParser.resolveVariables] Error on resolving property: distributed [orientechnologies]
2014-10-27 12:37:19:285 INFO Installing Script interpreter. WARN: authenticated clients can execute any kind of code into the server by using the following allowed languages: [sql] [OServerSideScriptInterpreter]
2014-10-27 12:37:19:285 INFO OrientDB Server v2.0-SNAPSHOT is active. [OServer]
Can you pull last 2.0-SNAPSHOT from "develop" branch? Maybe you have a weird release in the middle of a snapshot?
I installed https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.0-M2-SNAPSHOT/orientdb-community-2.0-M2-20140930.220723-54-distribution.zip (from http://www.orientechnologies.com/download -> Latest Snapshots -> Community Edition), there is no newer version to download, the latest Version is still from 30th September.
Or do you mean that I have to pull the sources and build my OrientDB version by myself?
M2 has been released weeks ago. Last one is 2.0-SNAPSHOT.
OK, I will try this one. I thought that this was the lastest SNAPSHOT (because it's name SNAPSHOT in the directory path)
OK, I just tested https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.0-SNAPSHOT/orientdb-community-2.0-20141024.162828-308-distribution.zip and with this version, I am not asked to enter a node name. So this is fine now.
May be the Link http://www.orientechnologies.com/download -> Latest Snapshots -> Community Edition should point to https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.0-SNAPSHOT/ ant not to https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/2.0-M2-SNAPSHOT/ ?
You're right, link was old. Fixed. Thanks.
On every OrientDB Server start (v2.0-M2-SNAPSHOT, as distributed), it ask's for the Node name (not only on the first start). The given node name is not saved and it is asked again for it on the next restart.
It seems that the property distributed could not be resolved: