Skip to content
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

erlexec requires HOME to be set [JIRA: RIAK-1959] #193

Open
sargun opened this issue Jul 12, 2015 · 2 comments
Open

erlexec requires HOME to be set [JIRA: RIAK-1959] #193

sargun opened this issue Jul 12, 2015 · 2 comments

Comments

@sargun
Copy link

sargun commented Jul 12, 2015

erlexec requires the HOME variable to be set.

sargun@ubuntu:/tmp/mesos/slaves/20150712-141616-35725601-5050-4054-S0/frameworks/riak-mesos-go3/executors/test-cluster-c16260e2-21d0-44f3-9139-59b3b0a05948-2465/runs/latest$ unset HOME
sargun@ubuntu:/tmp/mesos/slaves/20150712-141616-35725601-5050-4054-S0/frameworks/riak-mesos-go3/executors/test-cluster-c16260e2-21d0-44f3-9139-59b3b0a05948-2465/runs/latest/riak/bin$ ./riak config generate -l debug
erlexec: HOME must be set

The way that this manifests itself during normal Riak startups, if $HOME isn't set:

=====
===== LOGGING STARTED Sun Jul 12 14:36:54 PDT 2015
=====
erlexec: HOME must be set
Error generating config with cuttlefish
  run `riak config generate -l debug` for more information.

Can we automatically set $HOME, if it's not set already?

@Basho-JIRA Basho-JIRA changed the title erlexec requires HOME to be set erlexec requires HOME to be set [JIRA: RIAK-1959] Jul 12, 2015
@drewkerrigan
Copy link

The code that generates this error is in node_package's env.sh: https://github.com/basho/node_package/blob/develop/priv/base/env.sh#L285

I created a PR which should address the situation of an unset HOME: basho/node_package#185

But it can also be patched into riak/lib/env.sh if you need it for now.

@drewkerrigan
Copy link

/Users/dkerrigan/src/basho/riak-2.1.1 » unset HOME
/Users/dkerrigan/src/basho/riak-2.1.1 » ./bin/riak chkconfig
config is OK
-config /Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/app.2015.07.12.22.22.04.config -args_file /Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/vm.2015.07.12.22.22.04.args -vm_args /Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/vm.2015.07.12.22.22.04.args
/Users/dkerrigan/src/basho/riak-2.1.1 » ./bin/riak config generate -l debug
22:23:22.947 [debug] Lager installed handler error_logger_lager_h into error_logger
22:23:22.952 [debug] Supervisor gr_param_sup started gr_param:start_link(gr_lager_default_tracer_params) at pid <0.52.0>
22:23:22.952 [debug] Supervisor gr_counter_sup started gr_counter:start_link(gr_lager_default_tracer_counters) at pid <0.53.0>
22:23:22.952 [debug] Supervisor gr_manager_sup started gr_manager:start_link(gr_lager_default_tracer_params_mgr, gr_lager_default_tracer_params, []) at pid <0.54.0>
22:23:22.952 [debug] Supervisor gr_manager_sup started gr_manager:start_link(gr_lager_default_tracer_counters_mgr, gr_lager_default_tracer_counters, [{input,0},{filter,0},{output,0}]) at pid <0.55.0>
22:23:23.154 [debug] Cuttlefish set to debug level logging
22:23:23.154 [info] Application lager started on node nonode@nohost
22:23:23.154 [info] Checking /Users/dkerrigan/src/basho/riak-2.1.1/bin/../etc/app.config exists... false
22:23:23.155 [info] Checking /Users/dkerrigan/src/basho/riak-2.1.1/bin/../etc/vm.args exists... false
22:23:23.155 [info] No app.config or vm.args detected in /Users/dkerrigan/src/basho/riak-2.1.1/bin/../etc, activating cuttlefish
22:23:23.155 [debug] Generating config in: "/Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/app.2015.07.12.22.23.23.config"
22:23:23.155 [debug] SchemaFiles: ["/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/10-riak.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/11-erlang_vm.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/12-riak_core.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/13-riak_api.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/14-riak_kv.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/15-riak_sysmon.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/16-bitcask.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/17-bitcask_multi.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/18-riak_control.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/20-multi_backend.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/21-leveldb.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/22-leveldb_multi.schema","/Users/dkerrigan/src/basho/riak-2.1.1/bin/../lib/30-yokozuna.schema"]
22:23:23.225 [debug] ConfFiles: ["/Users/dkerrigan/src/basho/riak-2.1.1/bin/../etc/riak.conf"]
22:23:23.304 [debug] Adding Defaults
22:23:23.305 [debug] Right Hand Side Substitutions
22:23:23.305 [debug] Applying Datatypes
22:23:23.323 [debug] Validation
22:23:23.326 [debug] Applied 1:1 Mappings
22:23:23.326 [debug] Running translation for lager.handlers
22:23:23.326 [debug] Running translation for lager.crash_log
22:23:23.326 [debug] Running translation for lager.crash_log_count
22:23:23.326 [debug] "vm_args.+S" in Translations to drop...
22:23:23.326 [debug] "vm_args.+a" in Translations to drop...
22:23:23.326 [debug] Running translation for vm_args.+zdbbl
22:23:23.326 [debug] Running translation for riak_api.http
22:23:23.326 [debug] Running translation for riak_api.pb
22:23:23.326 [debug] "riak_api.https" in Translations to drop...
22:23:23.327 [debug] Running translation for riak_api.honor_cipher_order
22:23:23.327 [debug] Running translation for riak_api.tls_protocols
22:23:23.327 [debug] Running translation for riak_api.check_crl
22:23:23.327 [debug] Running translation for riak_kv.anti_entropy
22:23:23.327 [debug] Running translation for riak_kv.storage_backend
22:23:23.327 [debug] Running translation for riak_kv.anti_entropy_build_limit
22:23:23.327 [debug] "riak_kv.aae_throttle_limits" in Translations to drop...
22:23:23.327 [debug] Running translation for riak_kv.js_max_vm_mem
22:23:23.327 [debug] Running translation for riak_kv.js_thread_stack
22:23:23.327 [debug] Running translation for riak_kv.fsm_limit
22:23:23.328 [debug] Running translation for riak_kv.object_format
22:23:23.328 [debug] Running translation for riak_kv.vnode_md_cache_size
22:23:23.328 [debug] "riak_kv.memory_backend.max_memory" in Translations to drop...
22:23:23.328 [debug] "riak_core.default_bucket_props.precommit" in Translations to drop...
22:23:23.328 [debug] "riak_core.default_bucket_props.postcommit" in Translations to drop...
22:23:23.328 [debug] Running translation for riak_sysmon.gc_ms_limit
22:23:23.328 [debug] Running translation for riak_sysmon.schedule_ms_limit
22:23:23.328 [debug] Running translation for riak_sysmon.heap_word_limit
22:23:23.328 [debug] Running translation for bitcask.sync_strategy
22:23:23.328 [debug] Running translation for bitcask.merge_window
22:23:23.328 [debug] Running translation for bitcask.max_fold_age
22:23:23.328 [debug] Running translation for bitcask.max_fold_puts
22:23:23.328 [debug] Running translation for bitcask.expiry_secs
22:23:23.329 [debug] Running translation for bitcask.require_hint_crc
22:23:23.329 [debug] Running translation for riak_control.auth
22:23:23.329 [debug] "riak_control.userlist" in Translations to drop...
22:23:23.329 [debug] "riak_kv.multi_backend_default" in Translations to drop...
22:23:23.329 [debug] Running translation for riak_kv.multi_backend
22:23:23.329 [debug] Running translation for eleveldb.delete_threshold
22:23:23.329 [debug] Running translation for eleveldb.tiered_slow_level
22:23:23.329 [debug] Applied Translations
 -config /Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/app.2015.07.12.22.23.23.config -args_file /Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/vm.2015.07.12.22.23.23.args -vm_args /Users/dkerrigan/src/basho/riak-2.1.1/data/generated.configs/vm.2015.07.12.22.23.23.args 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants