Closed s0rin closed 7 years ago
This issue is already reported #5881 and 1.15.3 should fix it, but it doesn't.
Can you share the contents of /var/www/konsys/.bundle/config
? Thanks!
As requested, here the contents of /var/www/konsys/.bundle/config:
---
BUNDLE_FROZEN: "1"
BUNDLE_PATH:
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_BIN: "bin"
If you change the third line to BUNDLE_PATH: ""
, it should fix the issue, and future versions of Bundler will properly serialize the YAML
After changing the third line as indicated, the error "TypeError: no implicit conversion of Hash into String" occured again after 'bundler install' run and surprisely BUNDLE_PATH was replaced as originally. It seems the config file is updated/rewrited during 'bundler install':
$ ls -lrt /var/www/konsys/.bundle/config
-rwxr-xr-x 1 www-data www-data 89 Aug 25 19:28 /var/www/konsys/.bundle/config
$ cat /var/www/konsys/.bundle/config
---
BUNDLE_FROZEN: "1"
BUNDLE_PATH:
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_BIN: "bin"
And that was with Bundler 1.15.4?
No, it was 1.15.3... But after update to 1.15.4 nothing changed, the error reoccured and the BUNDLE_PATH was again overwritten.
Damn, ok, thanks! I'll do my best to look into this
How had you originally set the path
config setting? (I can't reproduce the issue locally)
I am not sure about which config setting are you asking for, could you be more specific please? This issue occurs on a productive server with the intention to deploy a Rails app with Passenger.
The path
setting
PATH=/var/www/.rbenv/shims:/var/www/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
I mean Bundler's path
setting, the BUNDLE_PATH
on in the config problem that is causing problems
Initially I haven't explicity set BUNDLE_PATH
, just when you asked to change it to ""
for test purposes. This attempt failed (see above).
Now I've repeated the test and I set BUNDLE_PATH: "~/.bundle"
, then I ran bundle install
and Bundle completed without errors(!).
But it must have been set to something to have gotten into the config in the first place
You're right, but I don't know how and what have been set. In any case I usually do not touch this file, actually I did know about its existence until you asked me to edit it.
In that case, I'm sorry, but I don't really know how to move forward. Without a way for me to reproduce the bug locally (the generation of the invalid config file), I don't know I can fix it
Yes, I understand you perfectly and I guess you can close this ticket, the error could be avoided by editing the config file.
Thank you for your time and energy!
Error Report
Questions
Please fill out answers to these questions, it'll help us figure out why things are going wrong.
What did you do?
I ran the command
/var/www/.rbenv/versions/2.3.0/bin/bundle install
What did you expect to happen?
I expected Bundler to...
What happened instead?
Instead, what happened was...
Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
I tried...
Have you read our issues document, https://github.com/bundler/bundler/blob/master/doc/contributing/ISSUES.md?
...
Backtrace
Environment
Bundler settings
Gemfile
Gemfile
Gemfile.lock