-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init process does not start, but I can start exhibitor from the command line #51
Comments
It might be best to try the latest tagged version, 1.4.9, until we can troubleshoot. thanks for the report. |
Would the latest 1.4.9 be the same version that is in the chef community Because that is the one I initially tried before trying the latest commit. Thanks
|
yeah, 1.4.9 will be latest community cb. That's good to know. Debugging now, I'll update you soon |
Having trouble reproducing.
Could you run that script after starting exhibitor manually and tell me what the output is? It would also be useful to see the changes you made to the attributes. |
Sure, I did this on a new machine Amazon Linux machine:
Did a yum update and installed patch which is needed by the recipe (Maybe a dependency needs to be defined somewhere?): Make the parent directory that contains my snapshot,logs/transaction directories: My only changes were made to default.rb and my diff of the default.rb file: nottaway:zookeeper aalkhatib$ git diff
diff --git a/attributes/default.rb b/attributes/default.rb
index 8045329..8ff515f 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -2,8 +2,8 @@ default[:zookeeper][:version] = "3.4.5"
default[:zookeeper][:mirror] = "http://mirrors.ibiblio.org/apache/zookeeper/zookeeper-#{default[:zookeeper][:version]}/zookeeper-#{default[:zookeeper][:version]}.tar.gz"
default[:zookeeper][:checksum] = 'e92b634e99db0414c6642f6014506cc22eefbea42cc912b57d7d0527fb7db132'
default[:zookeeper][:install_dir] = "/opt/zookeeper"
-default[:zookeeper][:user] = "zookeeper"
-default[:zookeeper][:group] = "zookeeper"
+default[:zookeeper][:user] = "ec2-user"
+default[:zookeeper][:group] = "ec2-user"
default[:gradle][:version] = "1.5"
default[:gradle][:mirror] = "http://services.gradle.org/distributions/gradle-#{default[:gradle][:version]}-bin.zip"
@@ -14,9 +14,9 @@ default[:exhibitor][:install_dir] = "/opt/exhibitor"
default[:exhibitor][:script_dir] = '/usr/local/bin/'
-default[:exhibitor][:snapshot_dir] = "/tmp/zookeeper"
-default[:exhibitor][:transaction_dir] = "/tmp/zookeeper"
-default[:exhibitor][:log_index_dir] = "/tmp/zookeeper_log_indexes"
+default[:exhibitor][:snapshot_dir] = "/home/ec2-user/zookeeper/snapshots"
+default[:exhibitor][:transaction_dir] = "/home/ec2-user/zookeeper/txn"
+default[:exhibitor][:log_index_dir] = "/home/ec2-user/zookeeper/logs"
default[:exhibitor][:log_to_syslog] = "1"
# Port for the HTTP Server
@@ -24,15 +24,13 @@ default[:exhibitor][:opts][:port] = "8080"
default[:exhibitor][:opts][:hostname] = node[:ipaddress]
default[:exhibitor][:opts][:defaultconfig] = "#{node[:exhibitor][:install_dir]}/exhibitor.properties"
-default[:exhibitor][:opts][:configtype] = "file"
+default[:exhibitor][:opts][:configtype] = "s3"
default[:exhibitor][:loglevel] = "info"
# For --configtype s3, set:
-# [:exhibitor][:s3key] = "key"
-# [:exhibitor][:s3secret] = "secret"
-# [:exhibitor][:opts][:s3config] = "bucket:config-key"
-# [:exhibitor][:opts][:s3region] = "region" # i.e. us-east-1
+default[:exhibitor][:s3key] = "MY-KEY"
+default[:exhibitor][:s3secret] = "MY-SECRET"
+default[:exhibitor][:opts][:s3config] = "MYBUCKET:KEY"
+default[:exhibitor][:opts][:s3region] = "us-east-1" # i.e. us-east-1
# For --contiftype file
default[:exhibitor][:opts][:fsconfigdir] = "/tmp" Then I start the bootstrap:
|
So it actually hung at:
I checked the machine and no chef process was running, so I just restarted it, and will update when it is finished. |
Ok, so the bootstrap hung again at the point where it was starting the process and waitiing for the check-local-zk.py script to return. In /var/log/messages:
Then when I started the zookeeper instance manualy by copy/pasting the command in /etc/init/exhibitor.conf:
That worked and I was able to connect to zookeeper, and the s3 configuration was updated, and that machine joined my ensemble.
Killing the exhibitor/zookeeper I started and trying to start it as a service:
If you need anymore information, or would like me to do anything let me know. |
Any other information I can provide to help debug this issue? |
let me try with an Amazon Linux image |
dunno why this didn't click, but it's probably because this cookbook supports upstart, which is an ubuntu thing. You might try applying the patches in #19 I'll see if I can add support for runit |
closing. Please track in #54 |
Trying this out on an AWS instance.
I made modifications to the default.rb, mainly the settings for s3 and changed the user to use from zookeeper to ec2-user
On a side note, I had to install "patch" on the machine before the recipe was successfully installed.
Then once it reaches the end, it hangs on:
When i check the running processes on the machine, exhibitor is not running, but the check-local-zk.py script is.
Everytime I try to start the service:
I get the same behaviour and the following output in /var/log/messages
I tried this with the latest commit:
If I copy the exec line from the init script, and try it on the command line it works just fine.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: