<Guest65>
it expects to be run by a user with the same name as the app
<Guest65>
i got it running before by just editing the .env.rb file to use my username instead
<Guest65>
but then i thought "why not try and do it with the appropriate user to ease eventual deployment
<Guest65>
so i su to new user, bundle, and rackup, and now i get that error
<Guest65>
and it makes no sense to me
<Guest65>
i am at the end of my tether
u0_a1154 has joined #ruby
<Guest65>
assume my everyday username is 'user', and the app username is 'app'
<Guest65>
'app' is part of the 'user' group, so has full access to 'user''s files
<Guest65>
rbenv has been successfully installed for 'app', and bundling as 'app' was successful
<Guest65>
'app' is also currently in the sudo group, though i'm not happy about that and am simply trying to get this nonsense to work
u0_a1154 has quit [Ping timeout: 252 seconds]
u0_a1154 has joined #ruby
infinityfye has joined #ruby
u0_a115 has joined #ruby
u0_a1154 has quit [Read error: Connection reset by peer]
<Guest65>
alright
<Guest65>
what the actual fuck
<Guest65>
now it doesn't work for either user
hiyori has quit [Quit: Client closed]
u0_a115 has quit [Ping timeout: 240 seconds]
<Guest65>
web dev is just completely dreadful, even in ruby
u0_a115 has joined #ruby
<Guest65>
what the fuck is going on
<Guest65>
god i fucking hate computers
<Guest65>
i need fresh air
u0_a115 has quit [Ping timeout: 245 seconds]
<Guest65>
actually, file location makes no difference
<Guest65>
is this the result of some archane, obtuse legacy unix permission bullshit?
<Guest65>
but then i so, how?
<Guest65>
but i can't think of another explanation
<Guest65>
i love how talkative it is in here
Linux_Kerio has quit [Ping timeout: 240 seconds]
u0_a115 has joined #ruby
u0_a115 has quit [Ping timeout: 244 seconds]
<havenwood>
Guest65: This isn't web dev, it's dev ops.
Guest65 has quit [Quit: Client closed]
<havenwood>
Maybe an indictment that it's not simple, but it's not.
<havenwood>
Take confort that your ability to self realize an entire stack is far greater than say aerospace or other fields alongside computer science.
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
Guest65 has joined #ruby
<Guest65>
this question is not web-dev specific, though, except that it involves a library developed for web
<Guest65>
this is (not) running on a local machine
konsolebox has joined #ruby
<balo>
reggelt
u0_a115 has joined #ruby
u0_a115 has quit [Ping timeout: 264 seconds]
u0_a115 has joined #ruby
u0_a115 has quit [Read error: Connection reset by peer]
u0_a115 has joined #ruby
u0_a115 has quit [Ping timeout: 255 seconds]
konsolebox has quit [Quit: Leaving]
konsolebox has joined #ruby
caedmon has joined #ruby
brokkoli_origin has quit [Ping timeout: 244 seconds]
<adam12>
Guest65: What platform is this on?
<adam12>
Guest65: what command are you running that triggers the error above?
szahid has joined #ruby
szahid has quit [Changing host]
szahid has joined #ruby
<adam12>
Guest65: What version of Ruby?
brokkoli_origin has joined #ruby
caedmon has quit [Ping timeout: 248 seconds]
user23 has joined #ruby
xmachina has quit [Quit: WeeChat 4.0.4]
kaivai has quit [Ping timeout: 240 seconds]
konsolebox has quit [Quit: Leaving]
<Guest65>
adam12: ruby 3.1.2, linux x86_64, rackup
<adam12>
Guest65: `bundle exec rackup` ?
<Guest65>
that tells me i'm missing a bunch of gems, and tells me to run `bundle install` to install them
<Guest65>
i have already done that, however
<adam12>
How'd you install Ruby?
<Guest65>
rbenv
<adam12>
What's output of `which ruby`
<Guest65>
the user for whom `rackup` works gets the error `bundler: failed to load command: rackup (/home/user/.rbenv/versions/3.1.2/bin/rackup)` when running `bundle exec rackup`
<Guest65>
`app` user : `which ruby` > `/home/app/.rbenv/shims/ruby`
<adam12>
When you say you already installed the gems, you mean as that user?
<adam12>
It's probably easier to eliminate one user since it's going to be complex debugging both. Which user are you using for this? app?
<Guest65>
well i'm currently logged into a gui as myself
<Guest65>
where i originally got everythingf working
<Guest65>
that project expects to be run as a user with a name that's the same as the app
<adam12>
It shouldn't.
<Guest65>
so i created a user with that name, and `su`ed into it
<adam12>
I bet that's a bug if so. What makes you think that's the issue?
<Guest65>
nothing, necessarily
<Guest65>
i have no idea what the issue is
<adam12>
OK. Using the logged in user, is there any errors?
<Guest65>
`bundle info sequel` reveals `/home/app/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/sequel-5.72.0`
<Guest65>
right, so to reiterate, i am logged into a graphical session as myself
caedmon has joined #ruby
<Guest65>
i have two terminal emulator sessions open, one as me, and one as "app"
caedmon has quit [Read error: Connection reset by peer]
<Guest65>
i am "user"
caedmon has joined #ruby
<Guest65>
"user" runs `rackup` successfully, even in the test project created by "app" in "app"'s home folder
<Guest65>
"app" always fails
<adam12>
Fails how?
<adam12>
What's your ideal setup? Did you want to run the app as `user`?
caedmon has quit [Ping timeout: 244 seconds]
<Guest65>
fails with the message `<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- sequel/core (LoadError)`
<Guest65>
i want to run the app as app
<adam12>
Is there more of a stacktrace available? Can you put it in a github gist or paste or something?
<ruby[bot]>
Guest65: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<adam12>
Just ignore the bot
<adam12>
Paste doesn't load
<adam12>
and if you're using bundler, for simplicity's sake, always call `bundle exec` before the command while we're debugging. Because if not, bundler might not be loaded and then we're guessing.
<adam12>
I gotta run out for a bit. Put the full stacktrace from Ruby (not strace output) inside a gist so we can look at it. I'm suspecting rackup won't work out of the box with that template, since rackup was extracted to it's own gem a while back.
<adam12>
So you're probably getting rackup from another install.
<adam12>
I had to `bundle add rackup` to that roda-sequel-stack template to get rackup to start. It doesn't require a specific user.
<Guest65>
it doesn't require a specific user to run, but it i want to develop it that way because i want to deploy it that way
<Guest65>
also, it makes interfacing with the database roles a lot less annoying and cumbersome to run it as the desired user
<Guest65>
previously, it had given the error `Could not find sassc-2.4.0, sequel-5.72.0, sequel_pg-1.17.1, sequel-annotate-1.7.0, capybara-3.39.2, ffi-1.15.5, bigdecimal-3.1.4, pg-1.5.4, nokogiri-1.15.4-x86_64-linux, xpath-3.2.0, racc-1.7.1 in locally installed gems`
<Guest65>
but it seems that it now works after `bundle add rackup`
<Guest65>
what is the explanation there?
<Guest65>
`rackup` still fails the same way, as shown in the pastebin
ionface has joined #ruby
Guest65 has quit [Quit: Client closed]
Guest65 has joined #ruby
ConditionBoy has joined #ruby
u0_a115 has joined #ruby
Guest65 has quit [Quit: Client closed]
ionface has quit []
Guest65 has joined #ruby
kaivai has joined #ruby
u0_a115 has quit [Ping timeout: 244 seconds]
u0_a1151 has joined #ruby
u0_a1151 has quit [Ping timeout: 244 seconds]
brokkoli_origin has quit [Ping timeout: 244 seconds]
u0_a1151 has joined #ruby
brokkoli_origin has joined #ruby
polishdub has joined #ruby
u0_a1151 has quit [Ping timeout: 264 seconds]
u0_a1151 has joined #ruby
u0_a1151 has quit [Ping timeout: 244 seconds]
u0_a1152 has joined #ruby
xmachina has joined #ruby
ConditionBoy has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
willfish has quit [Ping timeout: 264 seconds]
Condition_Boy has joined #ruby
Condition_Boy has quit [Quit: Quit]
ConditionBoy has joined #ruby
ConditionBoy has quit [Read error: Connection reset by peer]
ConditionBoy has joined #ruby
Guest65 has quit [Quit: Client closed]
Guest65 has joined #ruby
u0_a1153 has joined #ruby
Condition_Boy has joined #ruby
u0_a1152 has quit [Ping timeout: 244 seconds]
ConditionBoy has quit [Ping timeout: 245 seconds]
u0_a1154 has joined #ruby
u0_a1154 has quit [Read error: Connection reset by peer]
u0_a1154 has joined #ruby
u0_a1153 has quit [Ping timeout: 240 seconds]
u0_a115 has joined #ruby
Condition_Boy has quit [Read error: Connection reset by peer]
ConditionBoy has joined #ruby
u0_a1154 has quit [Ping timeout: 240 seconds]
u0_a115 has quit [Ping timeout: 240 seconds]
u0_a115 has joined #ruby
Linux_Kerio has joined #ruby
u0_a115 has quit [Ping timeout: 244 seconds]
u0_a115 has joined #ruby
u0_a1151 has joined #ruby
u0_a115 has quit [Ping timeout: 240 seconds]
u0_a1152 has joined #ruby
u0_a1151 has quit [Read error: Connection reset by peer]
u0_a1153 has joined #ruby
u0_a1154 has joined #ruby
u0_a1152 has quit [Ping timeout: 240 seconds]
u0_a1153 has quit [Ping timeout: 240 seconds]
u0_a115 has joined #ruby
u0_a1154 has quit [Read error: Connection reset by peer]