jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
ur5us has quit [Quit: Leaving]
ur5us has joined #ruby
jetchisel has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
giorgian has joined #ruby
Successus has quit []
nirvdrum has quit [Quit: nirvdrum]
giorgian has quit [Ping timeout: 248 seconds]
cocalero has quit [Ping timeout: 248 seconds]
nirvdrum has joined #ruby
cocalero has joined #ruby
Rounin has quit [Ping timeout: 244 seconds]
John_Ivan has quit [Ping timeout: 252 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
m-antis has quit [Quit: Leaving]
Guimauve has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
m-antis has joined #ruby
m-antis has quit [Ping timeout: 268 seconds]
nirvdrum has quit [Quit: nirvdrum]
Al2O3 has quit [Quit: I'm quitting, thanks for all the sharks.]
Al2O3 has joined #ruby
giorgian has joined #ruby
<brand1> Anyone know what im doing wrong here I'm trying to run ruby as another user under systemd, i can run it as that user interactively but when i try to put it in a unit file, it give me an error:
<brand1> from <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
giorgian has quit [Ping timeout: 252 seconds]
<brand1> i've installed the gem for that specific user only (and like i say it works interactively) also i've tried manually specifying the entire path to the gem but still no change
<brand1> the only gem required is webrick
<Guimauve> my guess is that systemd isn't setting up your environment because it's running the app directly instead of via your shell (which will load your rc files, set environment variables, dick with the PATH, etc, etc)
<Guimauve> oh, and it might need to be a login shell to work the same way as your interactive shell depending on how you set up your local install, which you might not want.
<brand1> that sounds about right it works when i run it as the user manually but in the unit file it must not be loading a path variable or something idk
<brand1> i manually installed the gem as the user thinking that was the problem and i pointed the require file to the specific file path just to see but that didnt change the error
<Guimauve> brand1 - for giggles, try to bash --login -- <full path to ruby> <your shit here>
<brand1> trying to stick to kiss so dont understand what bundler does or all the extra commands are a about i just downloaded this simple script file and was trying to get it to run as a service
<brand1> Guimauve: in systemd?
<brand1> or the unit file*
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
<Guimauve> whatever you are attempting to do that is not working, switch your command from `ruby script.rb etc etc` to have bash instead load a login shell and exec your actual command. that way the shell will load your .profile and .bashrc before running ruby
<Guimauve> which you do (the lazy way) via `bash --login -- <command>`
<Guimauve> full paths though
victori has joined #ruby
<brand1> same thing
<brand1> <internal:/usr/share/rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
fercell has joined #ruby
<brand1> keeps on complaining when trying to load the require file which ive specified with and wthout path works both ways as user manually
<brand1> also if i do a helloworld "put" it works no problem at least the service doesnt error out anyway so at least its ok to that point
<Guimauve> that's... odd. forcing a login shell would set up your environment exactly the same as it would be for an interactive shell.
<brand1> sadly i dont have much experience with any of it, ruby or fedora 36 haven't really used it since fedora core 4 i think it was like 20 years ago but that doesn't mean i cant learn in theory i guess anyway
<brand1> the errors are terrible it doesnt tell you anything about why it cant do it
fercell has quit [Ping timeout: 260 seconds]
<Guimauve> brand1 - for debugging, log the $LOAD_PATH and Dir.getwd to see if they are significantly different?
<brand1> Guimauve: hmm this may be helpful is it running as root still?
<brand1> sadness in case you didnt know, linux is case sensitive, systemd needs User= and Group=
<Guimauve> brand1 - ...is it? log the user: `require 'etc'; Etc.getlogin`
<Guimauve> lol, the entire issue was a case sensitivity typo?
<Guimauve> fun times
<brand1> apparently was dir.wd outputted / so was like wth
* brand1 thinks about all the other things he could have learned in 5 days...
<Guimauve> well, at least you got it figured out. =]
<Guimauve> heh
<Guimauve> but think of the adventure you had along the way!
<brand1> yes otherwise would never have known the actual exact number of popcorn kernels on my ceiling
<brand1> who needs all that caffeine anyway
<Guimauve> I just got back into ruby after being away for more than 5 years. that's also frustrating, trust me. a lot of my expectations have become wrong, and it's been so long that I never saw the changelog entry explaining why. i'm not about to read 5 years of changelogs.
Linux_Kerio has joined #ruby
desnudopenguino has joined #ruby
victori has quit [Quit: ZNC 1.8.2 - https://znc.in]
nirvdrum has joined #ruby
victori has joined #ruby
giorgian has joined #ruby
giorgian has quit [Ping timeout: 250 seconds]
nirvdrum has quit [Quit: nirvdrum]
Starfoxxes has quit [Ping timeout: 268 seconds]
Guimauve has quit [Quit: Client closed]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
thomas25 has left #ruby [Textual IRC Client: www.textualapp.com]
jvalleroy has joined #ruby
thomas25 has joined #ruby
Starfoxxes has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 268 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
oxfuxxx has joined #ruby
_ht has joined #ruby
oxfuxxx has quit [Ping timeout: 265 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
robotmay has quit [Quit: Be excellent to each other]
jpn has joined #ruby
robotmay has joined #ruby
oxfuxxx has joined #ruby
yossarian has quit [Ping timeout: 252 seconds]
yossarian has joined #ruby
yossarian has joined #ruby
mahlon has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 265 seconds]
oxfuxxx has quit [Ping timeout: 265 seconds]
jpn has joined #ruby
giorgian has joined #ruby
ua_ has quit [Read error: Connection reset by peer]
mahlon has joined #ruby
giorgian has quit [Ping timeout: 265 seconds]
ua_ has joined #ruby
reset has quit [Quit: reset]
clemens3 has quit [Quit: WeeChat 2.7]
clemens3 has joined #ruby
shiru has joined #ruby
Rounin has joined #ruby
donofrio__ has joined #ruby
donofrio_ has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
jvalleroy has quit [Client Quit]
jvalleroy has joined #ruby
jvalleroy has quit [Client Quit]
jvalleroy has joined #ruby
jvalleroy has quit [Client Quit]
jvalleroy has joined #ruby
oxfuxxx has joined #ruby
protektwar has quit [Ping timeout: 250 seconds]
markong has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
oxfuxxx has quit [Ping timeout: 250 seconds]
giorgian has joined #ruby
giorgian has quit [Ping timeout: 250 seconds]
giorgian has joined #ruby
Tempesta has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
oxfuxxx has joined #ruby
Successus has joined #ruby
oxfuxxx has quit [Client Quit]
giorgian has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
protektwar has quit [Ping timeout: 250 seconds]
anokasion has joined #ruby
markong has quit [Ping timeout: 264 seconds]
markong has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
John_Ivan has joined #ruby
jpn has joined #ruby
nirvdrum has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
nirvdrum has quit [Quit: nirvdrum]
szkl has quit [Quit: Connection closed for inactivity]
nirvdrum has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
jpn has joined #ruby
giorgian has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
giorgian has quit [Ping timeout: 264 seconds]
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
Tempesta has quit [Quit: See ya!]
jpn has joined #ruby
thrashings0 has joined #ruby
Tempesta has joined #ruby
thrashings0 has quit [Quit: quit]
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp- is now known as Sankalp
nirvdrum has quit [Quit: nirvdrum]
jpn has quit [Ping timeout: 264 seconds]
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
nirvdrum has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #ruby
protektwar has quit [Ping timeout: 264 seconds]
henninb has joined #ruby
giorgian has joined #ruby
giorgian has quit [Ping timeout: 265 seconds]
Bi[m] has quit [Quit: You have been kicked for being idle]
shiru has quit [Quit: leaving]
fercell has joined #ruby
fercell has quit [Ping timeout: 265 seconds]
oxfuxxx has joined #ruby
reset has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
henninb has quit [Quit: leaving]
oxfuxxx has quit [Ping timeout: 265 seconds]
giorgian has joined #ruby
cocalero has joined #ruby
giorgian has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
markong has quit [Ping timeout: 264 seconds]
croberts has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
nirvdrum has joined #ruby
giorgian has joined #ruby
keyvan has quit [Ping timeout: 248 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
giorgian has quit [Ping timeout: 250 seconds]
ua_ has quit [Ping timeout: 264 seconds]
_ht has quit [Remote host closed the connection]
giorgian has joined #ruby
ua_ has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
eyewitness4 has joined #ruby
markong has joined #ruby
balo has quit [Quit: Lost terminal]
eyewitness4 has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
keyvan has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
balo has joined #ruby
cocalero has joined #ruby
jpn has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
jpn has quit [Ping timeout: 265 seconds]
John_Ivan has quit [Ping timeout: 268 seconds]
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
m-antis has joined #ruby
nirvdrum has joined #ruby
giorgian has quit [Ping timeout: 265 seconds]
nirvdrum has quit [Quit: nirvdrum]
Al2O3 has quit [Ping timeout: 244 seconds]
Al2O3 has joined #ruby
cocalero has joined #ruby
szkl has joined #ruby
Rounin has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]