Error executing action `start` on resource 'supervisor_service[service-analytics_poller]' - azure

I'm trying to Integrate Azure public cloud with Scalr and made some configuration changes like adding Azure "app_client_id, app_secret_key " in scalr-server.rb file. After saving this changes, i'm trying to run the reconfiguration command "sudo /opt/scalr-server/bin/scalr-server-ctl reconfigure" for reload/restart the services/components. But in doing so I ran into an error " Error executing action start on resource 'supervisor_service[service-analytics_poller]". So can any one from the other end help me out please.
Error Details :
RuntimeError
------------
Supervisor service service-analytics_poller was unable to be started
Cookbook Trace:
---------------
/opt/scalr-server/embedded/cookbooks/supervisor/providers/service.rb:49:in `block (2 levels) in class_from_file'
/opt/scalr-server/embedded/cookbooks/supervisor/providers/service.rb:47:in `block in class_from_file'
Resource Declaration:
---------------------
# In /opt/scalr-server/embedded/cookbooks/scalr-server/recipes/group_service_always_post.rb
5: supervisor_service name do
6: command "#{bin_dir_for node, 'service'}/scalrpy_proxy" \
7: " #{run_dir_for node, 'service'}/#{svc[:name]}.pid" \
8: " #{node[:scalr_server][:install_root]}/embedded/bin/python" \
9: " #{scalr_bundle_path node}/app/python/scalrpy/#{svc[:service_module]}.py" \
10: " --pid-file=#{run_dir_for node, 'service'}/#{svc[:name]}.pid" \
11: " --log-file=#{log_dir_for node, 'service'}/python-#{svc[:name]}.log" \
12: " --user=#{node[:scalr_server][:app][:user]}" \
13: " --group=#{node[:scalr_server][:app][:user]}" \
14: " --config=#{scalr_bundle_path node}/app/etc/config.yml" \
15: ' --verbosity=INFO' \
16: " #{svc[:service_extra_args]}" \
17: # Note: 'start' is added by the proxy.
18: stdout_logfile "#{log_dir_for node, 'supervisor'}/#{name}.log"
19: stderr_logfile "#{log_dir_for node, 'supervisor'}/#{name}.err"
20: autostart true
21: action [:enable, :start]
22: subscribes :restart, 'file[scalr_config]' if should_restart
23: subscribes :restart, 'file[scalr_code]' if should_restart
24: subscribes :restart, 'file[scalr_cryptokey]' if should_restart
25: subscribes :restart, 'file[scalr_id]' if should_restart
26: subscribes :restart, 'user[scalr_user]' if should_restart
27: end
28: end
Compiled Resource:
------------------
# Declared in /opt/scalr-server/embedded/cookbooks/scalr-server/recipes/group_service_always_post.rb:5:in `block in from_file'
supervisor_service("service-analytics_poller") do
action [:enable, :start]
updated true
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :supervisor_service
cookbook_name :"scalr-server"
recipe_name "group_service_always_post"
command "/opt/scalr-server/libexec/service/scalrpy_proxy /opt/scalr-server/var/run/service/analytics_poller.pid /opt/scalr-server/embedded/bin/python /opt/scalr-server/embedded/scalr/app/python/scalrpy/analytics_poller.py --pid-file=/opt/scalr-server/var/run/service/analytics_poller.pid --log-file=/opt/scalr-server/var/log/service/python-analytics_poller.log --user=scalr-app --group=scalr-app --config=/opt/scalr-server/embedded/scalr/app/etc/config.yml --verbosity=INFO "
stdout_logfile "/opt/scalr-server/var/log/supervisor/service-analytics_poller.log"
stderr_logfile "/opt/scalr-server/var/log/supervisor/service-analytics_poller.err"
autostart true
startsecs 1
service_name "service-analytics_poller"
process_name "%(program_name)s"
numprocs 1
numprocs_start 0
priority 999
autorestart :unexpected
startretries 3
exitcodes [0, 2]
stopsignal :TERM
stopwaitsecs 10
stdout_logfile_maxbytes "50MB"
stdout_logfile_backups 10
stdout_capture_maxbytes "0"
stderr_logfile_maxbytes "50MB"
stderr_logfile_backups 10
stderr_capture_maxbytes "0"
serverurl "AUTO"
end
Running handlers:
[2016-11-30T09:37:25-05:00] ERROR: Running exception handlers
- Raven::Chef::SentryHandler
Running handlers complete
[2016-11-30T09:37:26-05:00] ERROR: Exception handlers complete
[2016-11-30T09:37:26-05:00] FATAL: Stacktrace dumped to /opt/scalr-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 53 resources updated in 10.841172558 seconds
[2016-11-30T09:37:26-05:00] ERROR: supervisor_service[service-analytics_poller] (scalr-server::group_service_always_post line 5) had an error: RuntimeError: Supervisor service service-analytics_poller was unable to be started
[2016-11-30T09:37:26-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Related

Cannot clone box64

I want to install box64 on my raspberry pi 4b but i always get this "not found" message although this repo is available. Anyone knows why? (OS: 64 Bit Raspberry Lite)
pi#raspberry:~ $ git clone https://github.com/ptitSeb/box64.git
Cloning into 'box64'...
/usr/lib/git-core/git-remote-https: 1: 2526fc26bdbcb46c18435ed08: not found
/usr/lib/git-core/git-remote-https: 2: Description-en:: not found
/usr/lib/git-core/git-remote-https: 3: library: not found
/usr/lib/git-core/git-remote-https: 4: be: not found
/usr/lib/git-core/git-remote-https: 6: Package:: not found
/usr/lib/git-core/git-remote-https: 7: Description-md5:: not found
/usr/lib/git-core/git-remote-https: 8: Description-en:: not found
/usr/lib/git-core/git-remote-https: 9: library: not found
/usr/lib/git-core/git-remote-https: 10: be: not found
/usr/lib/git-core/git-remote-https: 12: Package:: not found
/usr/lib/git-core/git-remote-https: 13: Description-md5:: not found
/usr/lib/git-core/git-remote-https: 14: Description-en:: not found
/usr/lib/git-core/git-remote-https: 15: FFmpeg: not found
/usr/lib/git-core/git-remote-https: 16: mux,: not found
/usr/lib/git-core/git-remote-https: 17: machines: not found
/usr/lib/git-core/git-remote-https: 18: cutting: not found
/usr/lib/git-core/git-remote-https: 20: This: not found
/usr/lib/git-core/git-remote-https: 21: contains: not found
/usr/lib/git-core/git-remote-https: 22: and: not found
/usr/lib/git-core/git-remote-https: 24: The: not found
/usr/lib/git-core/git-remote-https: 25: to: not found
/usr/lib/git-core/git-remote-https: 26: codecs: not found
/usr/lib/git-core/git-remote-https: 28: This: not found
/usr/lib/git-core/git-remote-https: 30: Package:: not found
/usr/lib/git-core/git-remote-https: 31: Description-md5:: not found
/usr/lib/git-core/git-remote-https: 32: Syntax error: "(" unexpected

How do I get Vim to source my .vimrc directly?

I want to remove the color inverting from <i></i> elements. I added the line highlight htmlItalic ctermbg=NONE to my .vimrc, but when I load multiple files, say file1.html and file2.html, the <i></i> won't have inverted colors. However, if I type :bn :bn to go to the next buffer then back, the <i></i> will be inverted again. I must type :source ~/.vimrc to change it back. How do I stop this?
The result of scriptnames is:
1: ~/.vimrc
2: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/syntax.vim
3: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/synload.vim
4: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/syncolor.vim
5: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/filetype.vim
6: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/colors/zellner.vim
7: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftoff.vim
8: ~/.vim/bundle/vundle/autoload/vundle.vim
9: ~/.vim/bundle/vundle/autoload/vundle/config.vim
10: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftplugin.vim
11: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/indent.vim
12: ~/.vim/plugin/RltvNmbr.vim
13: ~/.vim/autoload/RltvNmbr.vim
14: ~/.vim/plugin/RltvNmbrPlugin.vim
15: ~/.vim/bundle/auto-pairs/plugin/auto-pairs.vim
16: ~/.vim/bundle/nerdcommenter/plugin/NERD_commenter.vim
17: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/getscriptPlugin.vim
18: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/gzip.vim
19: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/logiPat.vim
20: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/manpager.vim
21: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/matchparen.vim
22: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/netrwPlugin.vim
23: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/rrhelper.vim
24: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/spellfile.vim
25: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/tarPlugin.vim
26: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/tohtml.vim
27: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/vimballPlugin.vim
28: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/zipPlugin.vim
29: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/scripts.vim
30: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/vim.vim
31: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/perl.vim
32: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/pod.vim
33: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/ruby.vim
34: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/python.vim
35: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftplugin/vim.vim
36: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/indent/vim.vim
37: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/nosyntax.vim
I am on the latest version of vim via. Homebrew, and am NOT using gvim.
Thanks!

Nodejs chatServer Termination

My nodejs chatserver terminates at 1400 sockets. What can be the reasons for this. I am using forever to keep it running. I get this error message.
#
# Fatal error in ../deps/v8/src/heap/incremental-marking.cc, line 488
# CHECK(success) failed
#
==== C stack trace ===============================
1: V8_Fatal
2: ??
3: v8::internal::IncrementalMarking::OldSpaceStep(long)
4: v8::internal::FreeList::Allocate(int)
5: v8::internal::PagedSpace::AllocateRaw(int)
6: v8::internal::Heap::AllocateRaw(int, v8::internal::AllocationSpace, v8::internal::AllocationSpace)
7: v8::internal::Heap::AllocateStruct(v8::internal::InstanceType)
8: v8::internal::Factory::NewStruct(v8::internal::InstanceType)
9: v8::internal::Factory::NewCodeCache()
10: v8::internal::Map::UpdateCodeCache(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Code>)
11: v8::internal::IC::ComputeHandler(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>)
12: v8::internal::LoadIC::UpdateCaches(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>)
13: v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>)
14: v8::internal::LoadIC_Miss(int, v8::internal::Object**, v8::internal::Isolate*)
15: ??
error: Forever detected script was killed by signal: SIGILL
node version
node -v
v0.12.7
npm -v
2.11.3
Memory usage
I think the server is leaking memory
root#chat-server:/home/prod# ps aux --sort -rss
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 29368 9.7 70.7 3673332 2864364 ? Sl Mar30 146:12 chatserver.js

When I try to use vim character command f with a python file, it says no fold found

I want to use the f command (to go to next occurence of a character) in a python file but somehow this is masked by code folding function.
:set nofoldenable doesn't work.
These options are in my .vimrc:
filetype off
filetype plugin indent on
syntax on
Does someone know which plug-in causes this behavior and how I can toggle between the two functionalities?
Here is the output of :scriptnames
1: ~/.vimrc
2: /usr/local/share/vim/vim74/ftoff.vim
3: /usr/local/share/vim/vim74/filetype.vim
4: /usr/local/share/vim/vim74/ftplugin.vim
5: /usr/local/share/vim/vim74/indent.vim
6: /usr/local/share/vim/vim74/syntax/syntax.vim
7: /usr/local/share/vim/vim74/syntax/synload.vim
8: /usr/local/share/vim/vim74/syntax/syncolor.vim
9: ~/.vim/autoload/pathogen.vim
10: ~/.vim/bundle/SWTC.vim/plugin/SWTC.vim
11: ~/.vim/bundle/SWTC.vim/plugin/rng.vim
12: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
13: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
14: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
15: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
16: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
17: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
18: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
19: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
20: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
21: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
22: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
23: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
24: ~/.vim/bundle/syntastic/plugin/syntastic.vim
25: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
26: ~/.vim/bundle/vim-show-whitespace/plugin/showwhite.vim
27: ~/.vim/bundle/vim-surround/plugin/surround.vim
28: /usr/local/share/vim/vim74/plugin/getscriptPlugin.vim
29: /usr/local/share/vim/vim74/plugin/gzip.vim
30: /usr/local/share/vim/vim74/plugin/matchparen.vim
31: /usr/local/share/vim/vim74/plugin/netrwPlugin.vim
Run the map f command to see if there's a mapping for the f key.
If there is such a mapping, you can see which configuration file mapped the key by running verbose map f. It should report something like:
Last set from ~/.vim/some-plugin.vim

vim find out what is changing the directory

I usually start vim from the folder where I have my Makefile and tags file
and edit a file that is two levels down the three.
So if I am at folder x I usually would do vim x1/x2/code.c
The problem is that recently vim changes the folder to the folder where the code is (so if I do pwd it will show x1/x2).
I want it to stay at the top folder.
Is there a way of knowing what is causing the change of folder? I am assuming that is some kind of plugin but have not been able to track it down.
Thanks.
Check if you have autochdir turned on in your vimrc. :set autochdir? to check.
There are any number of plugins that could be doing it, do you happen to remember what you've installed recently?
This is the request for the Benoit answer. (I am not sure if I should post it as an answer or edit the question).
1: .vimrc
2: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/syntax/syntax.vim
3: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/syntax/synload.vim
4: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/syntax/syncolor.vim
5: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/filetype.vim
6: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/ftplugin.vim
7: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/indent.vim
8: .vim/colors/graywh_cs.vim
9: .vim/plugin/AlignMapsPlugin.vim
10: .vim/plugin/AlignPlugin.vim
11: .vim/plugin/ColorSchemes.vim
12: .vim/plugin/NERD_commenter.vim
13: .vim/plugin/NERD_tree.vim
14: .vim/plugin/SyntaxFolds.vim
15: .vim/plugin/a.vim
16: .vim/plugin/ack.vim
17: .vim/plugin/bufexplorer.vim
18: .vim/plugin/buftabs.vim
19: .vim/plugin/c.vim
20: .vim/plugin/cecutil.vim
21: .vim/plugin/changeColorScheme.vim
22: .vim/plugin/conque_term.vim
23: .vim/plugin/crefvim.vim
24: .vim/plugin/cscope_maps.vim
25: .vim/plugin/d/ColorSchemeMenuMaker.vim
26: .vim/plugin/d/ColorSchemes.vim
27: .vim/plugin/d/filebrowser.vim
28: .vim/plugin/d/libList.vim
29: .vim/plugin/echofunc.vim
30: .vim/plugin/filebrowser.vim
31: .vim/plugin/fuf.vim
32: .vim/autoload/fuf/buffer.vim
33: .vim/autoload/fuf.vim
34: .vim/autoload/fuf/file.vim
35: .vim/autoload/fuf/dir.vim
36: .vim/autoload/fuf/bookmark.vim
37: .vim/autoload/fuf/tag.vim
38: .vim/autoload/fuf/taggedfile.vim
39: .vim/autoload/fuf/jumplist.vim
40: .vim/autoload/fuf/changelist.vim
41: .vim/autoload/fuf/quickfix.vim
42: .vim/autoload/fuf/line.vim
43: .vim/autoload/fuf/help.vim
44: .vim/autoload/fuf/givenfile.vim
45: .vim/autoload/fuf/givendir.vim
46: .vim/autoload/fuf/givencmd.vim
47: .vim/autoload/fuf/callbackfile.vim
48: .vim/autoload/fuf/callbackitem.vim
49: .vim/plugin/imaps.vim
50: .vim/plugin/libList.vim
51: .vim/plugin/lightWeightArray.vim
52: .vim/plugin/matchit.vim
53: .vim/plugin/mru.vim
54: .vim/plugin/outlinetoggle.vim
55: .vim/plugin/remoteOpen.vim
56: .vim/plugin/scratch.vim
57: .vim/plugin/snipMate.vim
58: .vim/plugin/srcexpl.vim
59: .vim/plugin/supertab.vim
60: .vim/plugin/swap_parameters.vim
61: .vim/plugin/taglist.vim
62: .vim/plugin/timestamp.vim
63: .vim/plugin/totd.vim
64: .vim/plugin/ttcplug.vim
65: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/getscriptPlugin.vim
66: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/gzip.vim
67: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/matchparen.vim
68: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/netrwPlugin.vim
69: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/rrhelper.vim
70: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/spellfile.vim
71: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/tarPlugin.vim
72: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/tohtml.vim
73: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/vimballPlugin.vim
74: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/zipPlugin.vim
75: .vim/after/plugin/snipMate.vim
76: .vim/nerdtree_plugin/exec_menuitem.vim
77: .vim/nerdtree_plugin/fs_menu.vim
78: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/scripts.vim

Resources