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

On the "nix-shell --command "rails new . --force --skip-bundle; bundler lock"" Nix siezes up and logs me out. #1

Open
ExMateria opened this issue Apr 28, 2017 · 5 comments

Comments

@ExMateria
Copy link

I'm still a bit of a NixOS / Nix noob. So apologies in advance for my ignorance on display.

I've tried going about this with both the script/init file as well as manually and I've narrowed it down to the

nix-shell --command "rails new . --force --skip-bundle; bundler lock"

line. It reaches
applicationframehost_2017-04-28_10-09-12
and then logs out my nixos user. The accompanying log is 'unexpected Nix daemon error: interrupted by the user"

I'm using
NixOS 17.09pre106230.e89343dc08 (Hummingbird) 64-bit

Any help, even if just pointing me in a general direction, would be greatly appreciated!

@ExMateria
Copy link
Author

And thanks, btw, for posting this repository! It's the most helpful thing in all of my searching trying to get nixos set up for Ruby!

@ExMateria
Copy link
Author

Got to thinking and thought it might be useful to share the gemset.nix file my system is producing, in case there are variances with what is expected

{ actioncable = { source = { remotes = ["https://rubygems.org"]; sha256 = "128r1h7a2iwbz21kqgqz3rqiynr6kl95vxh3q3b4ghvrjvnmgclc"; type = "gem"; }; version = "5.1.0"; }; actionmailer = { source = { remotes = ["https://rubygems.org"]; sha256 = "0xajxh6bspgp3fdfgsqzqk0c7vav65abh7fhzad7civvvvd6h1ri"; type = "gem"; }; version = "5.1.0"; }; actionpack = { source = { remotes = ["https://rubygems.org"]; sha256 = "16ffaa2q01dpl5npm2swkdgqpfb7x17p8dwdc32px784q55sv1vq"; type = "gem"; }; version = "5.1.0"; }; actionview = { source = { remotes = ["https://rubygems.org"]; sha256 = "18b6zg63acwmb1ipcxj50r0j9cxnq3z5hb2k2lr67winjarzbjhl"; type = "gem"; }; version = "5.1.0"; }; activejob = { source = { remotes = ["https://rubygems.org"]; sha256 = "0q1q94fh62wz54xzssd6yn38la3qx7f0mil0950z1rf11vl7npcm"; type = "gem"; }; version = "5.1.0"; }; activemodel = { source = { remotes = ["https://rubygems.org"]; sha256 = "1hva9c5xalw1ny4a0x2k99n62m01vy4366am9ysj4c00fxc79lvy"; type = "gem"; }; version = "5.1.0"; }; activerecord = { source = { remotes = ["https://rubygems.org"]; sha256 = "1yd15qzgcnpc4fqw0i82262pwhg5zb9s1j93d0m3hsp4sgl16xxm"; type = "gem"; }; version = "5.1.0"; }; activesupport = { source = { remotes = ["https://rubygems.org"]; sha256 = "022cjfmgn427wly5229k6df4g01n0mfjd3i8aw7hvz7zpby4izlm"; type = "gem"; }; version = "5.1.0"; }; arel = { source = { remotes = ["https://rubygems.org"]; sha256 = "0nw0qbc6ph625p6n3maqq9f527vz3nbl0hk72fbyka8jzsmplxzl"; type = "gem"; }; version = "8.0.0"; }; builder = { source = { remotes = ["https://rubygems.org"]; sha256 = "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"; type = "gem"; }; version = "3.2.3"; }; concurrent-ruby = { source = { remotes = ["https://rubygems.org"]; sha256 = "183lszf5gx84kcpb779v6a2y0mx9sssy8dgppng1z9a505nj1qcf"; type = "gem"; }; version = "1.0.5"; }; erubi = { source = { remotes = ["https://rubygems.org"]; sha256 = "03wafwyfwydrfbl8wl7s185kq9gf3g2a60axkqh1l80g74cisp1x"; type = "gem"; }; version = "1.6.0"; }; globalid = { source = { remotes = ["https://rubygems.org"]; sha256 = "1cjzw0qwzsmsagz64p15x1s3qrw1nm43dagkc5lc5rcipvcwr2fx"; type = "gem"; }; version = "0.4.0"; }; i18n = { source = { remotes = ["https://rubygems.org"]; sha256 = "1s6971zmjxszdrp59vybns9gzxpdxzdklakc5lp8nl4fx5kpxkbp"; type = "gem"; }; version = "0.8.1"; }; loofah = { source = { remotes = ["https://rubygems.org"]; sha256 = "109ps521p0sr3kgc460d58b4pr1z4mqggan2jbsf0aajy9s6xis8"; type = "gem"; }; version = "2.0.3"; }; mail = { source = { remotes = ["https://rubygems.org"]; sha256 = "07k8swmv7vgk86clzpjhdlmgahlvg6yzjwy7wcsv0xx400fh4x61"; type = "gem"; }; version = "2.6.5"; }; method_source = { source = { remotes = ["https://rubygems.org"]; sha256 = "1g5i4w0dmlhzd18dijlqw5gk27bv6dj2kziqzrzb7mpgxgsd1sf2"; type = "gem"; }; version = "0.8.2"; }; mime-types = { source = { remotes = ["https://rubygems.org"]; sha256 = "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"; type = "gem"; }; version = "3.1"; }; mime-types-data = { source = { remotes = ["https://rubygems.org"]; sha256 = "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"; type = "gem"; }; version = "3.2016.0521"; }; mini_portile2 = { source = { remotes = ["https://rubygems.org"]; sha256 = "1y25adxb1hgg1wb2rn20g3vl07qziq6fz364jc5694611zz863hb"; type = "gem"; }; version = "2.1.0"; }; minitest = { source = { remotes = ["https://rubygems.org"]; sha256 = "1yk2m8sp0p5m1niawa3ncg157a4i0594cg7z91rzjxv963rzrwab"; type = "gem"; }; version = "5.10.1"; }; nio4r = { source = { remotes = ["https://rubygems.org"]; sha256 = "1ka4923544ckvc9bxd75van9y901cjxmsiq9h5is9j743bz71k1f"; type = "gem"; }; version = "2.0.0"; }; nokogiri = { source = { remotes = ["https://rubygems.org"]; sha256 = "1fhmgciw6pfckqgc0aq9kqpbvnakxwh1xf351c9x4xqcj9xjgn0y"; type = "gem"; }; version = "1.7.1"; }; rack = { source = { remotes = ["https://rubygems.org"]; sha256 = "053bqbrxr5gjw5k3rrmh6i35s83kgdycxv292lid072vpwrq1xv1"; type = "gem"; }; version = "2.0.1"; }; rack-test = { source = { remotes = ["https://rubygems.org"]; sha256 = "0h6x5jq24makgv2fq5qqgjlrk74dxfy62jif9blk43llw8ib2q7z"; type = "gem"; }; version = "0.6.3"; }; rails = { source = { remotes = ["https://rubygems.org"]; sha256 = "0cpcnrlqg1am2jfdz6pf9snh89qzbny9ikbpg3xz31qrqv9f4hyq"; type = "gem"; }; version = "5.1.0"; }; rails-dom-testing = { source = { remotes = ["https://rubygems.org"]; sha256 = "1n1m4r4ip77s8d20ha4sb2sqb1gkygaq0snilx8d90xfnc9khykv"; type = "gem"; }; version = "2.0.2"; }; rails-html-sanitizer = { source = { remotes = ["https://rubygems.org"]; sha256 = "138fd86kv073zqfx0xifm646w6bgw2lr8snk16lknrrfrss8xnm7"; type = "gem"; }; version = "1.0.3"; }; railties = { source = { remotes = ["https://rubygems.org"]; sha256 = "037bffzf6qk0126rnwibc7h44lvws259yg8dfj9r4xxy2cr5zhcx"; type = "gem"; }; version = "5.1.0"; }; rake = { source = { remotes = ["https://rubygems.org"]; sha256 = "01j8fc9bqjnrsxbppncai05h43315vmz9fwg28qdsgcjw9ck1d7n"; type = "gem"; }; version = "12.0.0"; }; sprockets = { source = { remotes = ["https://rubygems.org"]; sha256 = "0sv3zk5hwxyjvg7iy9sggjc7k3mfxxif7w8p260rharfyib939ar"; type = "gem"; }; version = "3.7.1"; }; sprockets-rails = { source = { remotes = ["https://rubygems.org"]; sha256 = "1zr9vk2vn44wcn4265hhnnnsciwlmqzqc6bnx78if1xcssxj6x44"; type = "gem"; }; version = "3.2.0"; }; thor = { source = { remotes = ["https://rubygems.org"]; sha256 = "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"; type = "gem"; }; version = "0.19.4"; }; thread_safe = { source = { remotes = ["https://rubygems.org"]; sha256 = "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"; type = "gem"; }; version = "0.3.6"; }; tzinfo = { source = { remotes = ["https://rubygems.org"]; sha256 = "05r81lk7q7275rdq7xipfm0yxgqyd2ggh73xpc98ypngcclqcscl"; type = "gem"; }; version = "1.2.3"; }; websocket-driver = { source = { remotes = ["https://rubygems.org"]; sha256 = "1943442yllhldh9dbp374x2q39cxa49xrm28nb78b7mfbv3y195l"; type = "gem"; }; version = "0.6.5"; }; websocket-extensions = { source = { remotes = ["https://rubygems.org"]; sha256 = "07qnsafl6203a2zclxl20hy4jq11c471cgvd0bj5r9fx1qqw06br"; type = "gem"; }; version = "0.1.2"; }; }

@ExMateria
Copy link
Author

And I did change the version of ruby, in my experimenting, but I was getting the same problem with the 5.0.1

@ExMateria
Copy link
Author

ExMateria commented Apr 28, 2017

The first Gemfile.lock as well, again I know the version is 5.1.0, but the same thing was happening when I had it at 5.0.1. If you want I could clone a fresh one and do it again and show you the state of each file if you think that would be useful.

'
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.0)
actionpack (= 5.1.0)
nio4r (> 2.0)
websocket-driver (
> 0.6.1)
actionmailer (5.1.0)
actionpack (= 5.1.0)
actionview (= 5.1.0)
activejob (= 5.1.0)
mail (> 2.5, >= 2.5.4)
rails-dom-testing (
> 2.0)
actionpack (5.1.0)
actionview (= 5.1.0)
activesupport (= 5.1.0)
rack (> 2.0)
rack-test (
> 0.6.3)
rails-dom-testing (> 2.0)
rails-html-sanitizer (
> 1.0, >= 1.0.2)
actionview (5.1.0)
activesupport (= 5.1.0)
builder (> 3.1)
erubi (
> 1.4)
rails-dom-testing (> 2.0)
rails-html-sanitizer (
> 1.0, >= 1.0.3)
activejob (5.1.0)
activesupport (= 5.1.0)
globalid (>= 0.3.6)
activemodel (5.1.0)
activesupport (= 5.1.0)
activerecord (5.1.0)
activemodel (= 5.1.0)
activesupport (= 5.1.0)
arel (> 8.0)
activesupport (5.1.0)
concurrent-ruby (
> 1.0, >= 1.0.2)
i18n (> 0.7)
minitest (
> 5.1)
tzinfo (> 1.1)
arel (8.0.0)
builder (3.2.3)
concurrent-ruby (1.0.5)
erubi (1.6.0)
globalid (0.4.0)
activesupport (>= 4.2.0)
i18n (0.8.1)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.5)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (
> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.10.1)
nio4r (2.0.0)
nokogiri (1.7.1)
mini_portile2 (> 2.1.0)
rack (2.0.1)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.1.0)
actioncable (= 5.1.0)
actionmailer (= 5.1.0)
actionpack (= 5.1.0)
actionview (= 5.1.0)
activejob (= 5.1.0)
activemodel (= 5.1.0)
activerecord (= 5.1.0)
activesupport (= 5.1.0)
bundler (>= 1.3.0, < 2.0)
railties (= 5.1.0)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.2)
activesupport (>= 4.2.0, < 6.0)
nokogiri (
> 1.6)
rails-html-sanitizer (1.0.3)
loofah (> 2.0)
railties (5.1.0)
actionpack (= 5.1.0)
activesupport (= 5.1.0)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
sprockets (3.7.1)
concurrent-ruby (
> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.19.4)
thread_safe (0.3.6)
tzinfo (1.2.3)
thread_safe (~> 0.1)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)

PLATFORMS
ruby

DEPENDENCIES
rails (~> 5.1.0)

BUNDLED WITH
1.14.6
'

@ExMateria
Copy link
Author

Acaba de ver que eres de Espana. Mi esposa es de Peru, asi que hablamos Espanol en la casa.

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