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

ERROR undefined method `request_uri' #14

Open
pkrull opened this issue May 17, 2018 · 0 comments
Open

ERROR undefined method `request_uri' #14

pkrull opened this issue May 17, 2018 · 0 comments

Comments

@pkrull
Copy link

pkrull commented May 17, 2018

I get the following errors when trying to run the reaper.

docker run -e CATTLE_URL=<redacted> -e CATTLE_ACCESS_KEY=<redacted> -e CATTLE_SECRET_KEY=<redacted> -e AWS_ACCESS_KEY_ID=<redacted> -e AWS_SECRET_ACCESS_KEY=<redacted> -e REAPER_DRY_RUN=true -e REAPER_INTERVAL_SECS=-1 -e REAPER_INSTANCE_ID_LABEL_NAME=instanceid --rm ampedandwired/rancher-reaper:latest
Unable to find image 'ampedandwired/rancher-reaper:latest' locally
latest: Pulling from ampedandwired/rancher-reaper
90f4dba627d6: Pull complete 
98c1a7514ba6: Pull complete 
e970acb20b34: Pull complete 
5a1603643434: Pull complete 
505ec6100fdd: Pull complete 
ccd0db5bc7b3: Pull complete 
0353f8ee33b8: Pull complete 
5e4129a6295c: Pull complete 
340db6589be4: Pull complete 
09933c1412db: Pull complete 
5d147c81f520: Pull complete 
Digest: sha256:ce5e47c655aa5f9594cf638d245d18fe327e53b7604fc920587fa8dd2bfdd048
Status: Downloaded newer image for ampedandwired/rancher-reaper:latest
/usr/local/bundle/gems/thin-1.7.0/lib/thin/server.rb:107: warning: constant ::Fixnum is deprecated
I, [2018-05-17T22:43:50.830220 #7]  INFO -- : Rancher AWS host reaper started
I, [2018-05-17T22:43:50.830272 #7]  INFO -- : Reaping terminated AWS hosts...
W, [2018-05-17T22:43:50.830307 #7]  WARN -- : *** Dry run - no changes will be applied
E, [2018-05-17T22:43:50.830462 #7] ERROR -- : undefined method `request_uri' for #<URI::Generic:0x0055df8aa7b178> (NoMethodError)
/usr/src/app/rancher_api.rb:58:in `make_api_request'
/usr/src/app/rancher_api.rb:12:in `get'
/usr/src/app/rancher_api.rb:18:in `block (2 levels) in get_all'
/usr/src/app/rancher_api.rb:17:in `loop'
/usr/src/app/rancher_api.rb:17:in `block in get_all'
/usr/src/app/reaper.rb:52:in `each'
/usr/src/app/reaper.rb:52:in `each'
/usr/src/app/reaper.rb:52:in `reap_hosts'
/usr/src/app/reaper.rb:32:in `run'
config.ru:30:in `block (2 levels) in <main>'
I, [2018-05-17T22:43:50.831671 #7]  INFO -- : Rancher AWS host reaper exited

Is this a user error or is the container not up-to-date? Thanks for any help with this.

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

No branches or pull requests

1 participant