havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview2: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
caedmon has joined #ruby
Fusl has quit [Server closed connection]
Fusl has joined #ruby
dviola has quit [Ping timeout: 240 seconds]
OverCoder has joined #ruby
diego has joined #ruby
diego is now known as Guest9045
Guest9045 has left #ruby [WeeChat 4.0.4]
dviola has joined #ruby
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
_ht has joined #ruby
u0_a1152 has joined #ruby
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
u0_a1152 has quit [Ping timeout: 246 seconds]
u0_a1152 has joined #ruby
Linux_Kerio has joined #ruby
u0_a1152 has quit [Ping timeout: 240 seconds]
u0_a1152 has joined #ruby
u0_a1153 has joined #ruby
u0_a1152 has quit [Ping timeout: 244 seconds]
ox1eef_ has quit [Server closed connection]
Vonter has quit [Ping timeout: 240 seconds]
u0_a1153 has quit [Ping timeout: 240 seconds]
u0_a1153 has joined #ruby
Vonter has joined #ruby
grenierm has joined #ruby
caedmon has quit [Read error: Connection reset by peer]
_ht has quit [Quit: _ht]
hiyori59 has joined #ruby
hiyori59 has quit [Client Quit]
hiyori has quit [Quit: Client closed]
constxqt has quit [Ping timeout: 258 seconds]
dostoyevsky2 has quit [Server closed connection]
dostoyevsky2 has joined #ruby
hiyori has joined #ruby
teclator has joined #ruby
hightower3 has quit [Ping timeout: 240 seconds]
u0_a1154 has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
Guest1 has joined #ruby
u0_a1153 has quit [Ping timeout: 258 seconds]
ollysmith has joined #ruby
ollysmith has quit [Client Quit]
Guest1 has quit [Client Quit]
ollysmith has joined #ruby
adam12 has quit [Server closed connection]
adam12 has joined #ruby
hightower2 has joined #ruby
hiyori has quit [Quit: Client closed]
hiyori has joined #ruby
unnamedguest has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
<unnamedguest> Hello, what's `=begin`? I've seen it in old Ruby bugs posts and in some source code and it's baffling
<gr33n7007h> unnamedguest: multi line comments, =begin; ...; =end
<unnamedguest> oh weird
<gr33n7007h> it's not really used no more tbh
<unnamedguest> probably because it eats up a lot of space
hiyori has quit [Quit: Client closed]
hiyori has joined #ruby
unnamedguest has quit [Quit: Client closed]
wantingnothing has joined #ruby
u0_a1154 has quit [Ping timeout: 240 seconds]
u0_a1154 has joined #ruby
otisolsen70 has joined #ruby
willfish has joined #ruby
wantingnothing has quit [Ping timeout: 245 seconds]
shokohsc51089 has joined #ruby
shokohsc5108 has quit [Ping timeout: 244 seconds]
shokohsc51089 is now known as shokohsc5108
u0_a1154 has quit [Ping timeout: 244 seconds]
u0_a1154 has joined #ruby
royo25 has joined #ruby
Bish has joined #ruby
u0_a1154 has quit [Ping timeout: 255 seconds]
u0_a1154 has joined #ruby
u0_a1154 has quit [Ping timeout: 248 seconds]
teclator has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
hightower2 has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
Guest65 has joined #ruby
<Guest65> hello all
grenierm has quit [Ping timeout: 245 seconds]
<Guest65> `<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- sequel/core (LoadError)`
<Guest65> can someone help me understand why one user gets that error and the other doesn't?
<Guest65> i'm trying to set up this framework: https://github.com/jeremyevans/roda-sequel-stack
<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?
<Guest65> `user` user: `which ruby` > `/home/user/.rbenv/shims/ruby`
<Guest65> yes
<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?
<Guest65> here is the entire output of `strace -o tmp.log -f -f -e file 2>&1 rackup`: https://pastebin.com/vYg306dD
<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> `rackup`: https://pastebin.com/7WuwHvYe
<ruby[bot]> Guest65: as I told you already, please use https://gist.github.com
<Guest65> `bundle exec rackup` works
royo25 has quit [Quit: Bye]
<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]
Milos has quit [Quit: ZNC 1.8.2 - https://znc.in]
Milos has joined #ruby
u0_a115 has quit [Ping timeout: 240 seconds]
taupiqueur_shiny has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
user23 has quit [Remote host closed the connection]
Condition_Boy has joined #ruby
ConditionBoy has quit [Read error: Connection reset by peer]
Condition_Boy has quit [Read error: Connection reset by peer]
ConditionBoy has joined #ruby
u0_a115 has joined #ruby
u0_a115 has quit [Ping timeout: 260 seconds]
Guest65 has quit [Quit: Client closed]
yziquel has joined #ruby
willfish has joined #ruby
yziquel has quit [Ping timeout: 245 seconds]
constxqt has joined #ruby
xmachina1 has joined #ruby
xmachina has quit [Ping timeout: 248 seconds]
xmachina1 is now known as xmachina
xmachina has quit [Ping timeout: 240 seconds]
_ht has quit [Quit: _ht]
rvalue has quit [Remote host closed the connection]
rvalue has joined #ruby
xmachina has joined #ruby
shokohsc51088 has joined #ruby
shokohsc5108 has quit [Ping timeout: 240 seconds]
shokohsc51088 is now known as shokohsc5108
infinityfye has quit [Quit: Leaving]
thelounge44 has joined #ruby
thelounge44 is now known as berrymary
jmcgnh has quit [Server closed connection]
xmachina has quit [Quit: WeeChat 4.0.4]
otisolsen70 has quit [Quit: Leaving]
jmcgnh has joined #ruby
xmachina has joined #ruby
willfish has quit [Quit: WeeChat 4.0.4]
willfish has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
willfish has quit [Ping timeout: 245 seconds]
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
ox1eef_ has joined #ruby
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
jess has joined #ruby
mags has quit [Ping timeout: 245 seconds]
taupiqueur_shiny has quit [Remote host closed the connection]
mags has joined #ruby
nona has joined #ruby
OverCoder has quit [Quit: Connection closed for inactivity]
Linux_Kerio has quit [Ping timeout: 244 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
entropie has quit [Ping timeout: 248 seconds]
entropie has joined #ruby