Gitlab Reconfigure error cannot load such file syslog-logger - ruby

I already tried to search on Google about my problem but still no luck. My server just got recovered and now I can't access Gitlab-CE. Every time I use command gitlab-ctl reconfigure the error happen.
Here's the output of error:
$ sudo gitlab-ctl reconfigure
/opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- syslog-logger (LoadError)
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/log/syslog.rb:20:in `<top (required)>'
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/log.rb:24:in `<top (required)>'
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef.rb:23:in `<top (required)>'
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/bin/chef-client:23:in `<top (required)>'
from /opt/gitlab/embedded/bin/chef-client:23:in `load'
from /opt/gitlab/embedded/bin/chef-client:23:in `<main>'

My guess is you have actual file system corruption in a file related to the Syslog:Logger.
You could step through those files and update or replace them, but honestly it would be easier to spin up another virtual server, re-install gitlab-ce from scratch, and restore from your previous (nightly?) backup.

Related

An error occurred in installing GitLab (install GitLab Shell phase) on Ubuntu 14.04 32bit

My server is ubuntu 14.04 (32bit).
GitLab easy installation is provided only for 64bit Ubuntu.
So I follow the guideline for installing GitLab from source. (documentation)
However, in Install GitLab Shell Phase, an error is occurred like below. (The first line...)
# sudo -u git -H bundle exec rake gitlab:shell:install REDIS_URL=unix:/var/run/redis/redis.sock RAILS_ENV=production SKIP_STORAGE_VALIDATION=true
rake aborted!
LoadError: cannot load such file -- /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc_c
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc.rb:37:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc.rb:37:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/errors.rb:30:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/errors.rb:30:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc.rb:32:in `require_relative'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc.rb:32:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gitaly-0.5.0/ruby/lib/gitaly/commit_services_pb.rb:4:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gitaly-0.5.0/ruby/lib/gitaly.rb:6:in `<top (required)>'
/home/git/gitlab/config/application.rb:5:in `<top (required)>'
/home/git/gitlab/Rakefile:5:in `require'
/home/git/gitlab/Rakefile:5:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
I think it may be ruby's error, but I don't know about ruby...
How I solve this problem?
Thanks :)
I solved it.
Through the log, there is no grpc_c file.
LoadError: cannot load such file -- /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grpc-1.1.2/src/ruby/lib/grpc/grpc_c
So I installed ruby (same version) to root account.
And I installed gem, and grpc.
In the grpc path,
/usr/local/lib/ruby/gems/2.3.0/gems/grpc-1.1.2
there is "grpc_c.so" shared library file. Hence, I copied it and solved the problem.

How can I fix an error I am getting with jasmine init

I have an issue with using jasmine init.
When I hit enter I get the following output:
$ jasmine init
/usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require': cannot load such file -- jasmine-core (LoadError)
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:121:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine/application.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine.rb:25:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine.rb:24:in `each'
from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/lib/jasmine.rb:24:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/local/lib/ruby/gems/2.2.0/gems/jasmine-2.3.1/bin/jasmine:4:in `<top (required)>'
from /usr/local/bin/jasmine:23:in `load'
from /usr/local/bin/jasmine:23:in `<main>'
I was setting things up to use jasmine-headless-webkit and not being a pro user was following vague instructions and am not sure where things went wrong.
Initially I had jasmine init working but then I started getting the above.
Any suggestions appreciated.
I managed to rollback to a previous state, pre my attempts to install anything to do with jasmine, and then started over.
It seems to be working now.

xcode - Cocoapods stopped working after OS upgrade

After upgrading to OS X Yosemite, attempting to install pods gives me this error.
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj/ext.rb:3:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj.rb:30:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.32.1/lib/cocoapods.rb:2:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.32.1/bin/pod:32:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
I have tried uninstalling cocoapods and installing it with no luck. I get this error upon trying to install cocoapods.
ERROR: While executing gem ... (Errno::EEXIST)
File exists # dir_s_mkdir - /usr/local/Cellar/ruby/2.1.2/lib/ruby/gems
In xcode-preferences-locations I am not given an option to change Command Line tools to anything lower than Xcode 6.3...
Any ideas how to fix this?

Error when trying to launch program that uses libtcod for ruby

I just installed the libtcod ruby gem, and i wanted to see if the demo works. When I start the demo, it gives me an error:
C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Coul (LoadError)ibrary 'libtcod-mingw': The specified module could not be found.
.
Could not open library 'libtcod-mingw.dll': The specified module could not be found.
.
Could not open library 'C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/clib/i686/libtcod-mingw.dll': The specified moR♀)
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in `map'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:100:in `ffi_lib'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:23:in `<module:TCOD>'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod/bindings.rb:3:in `<top (required)>'
from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/libtcod-0.1.1/lib/libtcod.rb:5:in `<top (required)>'
from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from C:/Users/<some user>/Desktop/libtcod.rb:1:in `<main>'
Had the same problem trying to get the example code to work.
I fixed it by just dragging the libtcod-mingw.dll and SDL.dll into the project directory.

all Heroku command line started failing

It used to work just fine. Not sure what has changed,
i get this error:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- netrc (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/Users/ilan kasan/.heroku/client/lib/heroku/auth.rb:6:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/Users/ilan kasan/.heroku/client/lib/heroku/client.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/lib/heroku.rb:6:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.8.0/bin/heroku:6:in `<top (required)>'
from c:/Ruby192/bin/heroku:19:in `load'
from c:/Ruby192/bin/heroku:19:in `<main>'
The problem seems to occur after the latest Windows7 update. I found a proposed solution in the issue list of Heroku: https://github.com/heroku/heroku/issues/298
I fixed it again by deleting /users/me/.heroku/client and reinstalling
from https://toolbelt.heroku.com/
So delete ~/.heroku/client folder and reinstal Heroku Toolbelt. I hope it helps.
Problem solved by updating the heroku gem
gem update heroku

Resources