!jsSjXenzDAnqfOlJYU:matrix.org

Node.js

848 Members
Node.js is a JavaScript runtime | https://nodejs.org/ | ✨ 🐢 🚀 ✨ | Mission statement: http://bit.ly/28Ix9uj58 Servers

Load older messages


SenderMessageTime
13 Mar 2024
@jjj333:pain.agencyjjj333_p (any pronouns)
[Unit]
Description=matrix bot @anti-scam:matrix.org

[Service]
RestartSec=2s
Type=simple
User=joseph
WorkingDirectory=/home/joseph/spam-police/
ExecStart=/usr/bin/snap run node  /home/joseph/spam-police/index.js
Restart=always

[Install]
WantedBy=multi-user.target
08:22:10
@jjj333:pain.agencyjjj333_p (any pronouns)that should be the original service file08:22:20
@jjj333:pain.agencyjjj333_p (any pronouns)exhibited the same behavior08:22:28
@jjj333:pain.agencyjjj333_p (any pronouns)

It is recommended to use Type=exec for long-running services, as it ensures that process setup errors (e.g. errors such as a missing service executable, or missing user) are properly tracked.

perhaps that is where my issue lies

08:24:33
@jjj333:pain.agencyjjj333_p (any pronouns)though it seems same enough to simple08:25:34
@jjj333:pain.agencyjjj333_p (any pronouns)fuck it we ball08:25:37
@jjj333:pain.agencyjjj333_p (any pronouns)that did not fix it08:28:42
@jokeyrhyme:matrix.orgjokeyrhymeOoof, LLM outputs still need to be double-checked by humans, you can't trust them to be correct08:50:53
@jokeyrhyme:matrix.orgjokeyrhyme
In reply to @jjj333:pain.agency
the weird part is it does it when run by the system
What is the exact command you use (without anything confidential) to restart the service?
I'm now as curious as you are about why that's somehow has a different result than when automatically launched during boot :)
09:06:33
@jokeyrhyme:matrix.orgjokeyrhyme
In reply to @jjj333:pain.agency
[Unit]
Description=matrix bot @anti-scam:matrix.org

[Service]
RestartSec=2s
Type=simple
User=joseph
WorkingDirectory=/home/joseph/spam-police/
ExecStart=/usr/bin/snap run node  /home/joseph/spam-police/index.js
Restart=always

[Install]
WantedBy=multi-user.target
I don't think WorkingDirectory= is real, either
And does that ExecStart= line work if you execute it directly (as the joseph user)? I just want to double-check that you actually do use snap to run Node.js projects normally
09:20:27
@jjj333:pain.agencyjjj333_p (any pronouns)
In reply to @jokeyrhyme:matrix.org
What is the exact command you use (without anything confidential) to restart the service?
I'm now as curious as you are about why that's somehow has a different result than when automatically launched during boot :)
sudo systemctl restart spam-police
10:24:11
@jjj333:pain.agencyjjj333_p (any pronouns)
In reply to @jokeyrhyme:matrix.org
I don't think WorkingDirectory= is real, either
And does that ExecStart= line work if you execute it directly (as the joseph user)? I just want to double-check that you actually do use snap to run Node.js projects normally
yes i do. i actually had to manually convert that from before when i used node raw
10:24:37
@jjj333:pain.agencyjjj333_p (any pronouns)the snap part isnt ai generated10:24:41
@jjj333:pain.agencyjjj333_p (any pronouns) the exact command i use to start the bot from the cmdline of my vps is snap run node index.js when its already in the dir ~/spam-police 10:25:18
@jjj333:pain.agencyjjj333_p (any pronouns)
In reply to @jokeyrhyme:matrix.org
Ooof, LLM outputs still need to be double-checked by humans, you can't trust them to be correct
ye im aware
10:26:09
@jjj333:pain.agencyjjj333_p (any pronouns)but i assumed if it works it was right10:26:35
@lektricitee:matrix.org@lektricitee:matrix.org left the room.18:40:07
@joepie91:pixie.townjoepie91 🏳️‍🌈please do not use LLMs and if you absolute must, at least do not ask others to fix its output18:40:41
@joepie91:pixie.townjoepie91 🏳️‍🌈 * please do not use LLMs and if you absolutely must, at least do not ask others to fix its output18:40:47
14 Mar 2024
@jjj333:pain.agencyjjj333_p (any pronouns)
In reply to @joepie91:pixie.town
please do not use LLMs and if you absolutely must, at least do not ask others to fix its output
i doubt this is an issue with the systemd file, and i did read documentation to try to verify it myself
10:27:37
@joepie91:pixie.townjoepie91 🏳️‍🌈 jjj333_p (any pronouns): doesn't matter. LLMs routinely consistently misinformation (because they only reproduce patterns and have no understanding of anything) and it is disrespectful of other people's time to basically use a garbage generator where you don't even understand yourself why it says what it says, and then ask other people to figure it out for you. LLMs are already built on labour exploitation by themselves, do not make it worse. 10:48:11
@joepie91:pixie.townjoepie91 🏳️‍🌈 * jjj333_p (any pronouns): doesn't matter. LLMs consistently produce misinformation (because they only reproduce patterns and have no understanding of anything) and it is disrespectful of other people's time to basically use a garbage generator where you don't even understand yourself why it says what it says, and then ask other people to figure it out for you. LLMs are already built on labour exploitation by themselves, do not make it worse. 10:48:21
@jjj333:pain.agencyjjj333_p (any pronouns)well its a config ive used for many different things, and is actually repurposed from other things i use without issue. the reason i have asked in the node room is i highly doubt its an issue on the systemd side10:51:59
@jjj333:pain.agencyjjj333_p (any pronouns)does node's stdout behave differently or something10:52:59
15 Mar 2024
@christos1000:matrix.org@christos1000:matrix.org left the room.06:31:31
@dipak_shinde:matrix.orgdipak_shinde joined the room.17:51:21
@magsihaseeb:matrix.orgPablooo joined the room.19:37:10
16 Mar 2024
@gijohn71184:matrix.orgGIJohn71184 joined the room.07:05:49
@fragrus:incunt.ru@fragrus:incunt.ru joined the room.19:35:26
@fragrus:incunt.ru@fragrus:incunt.ru left the room.19:37:49

Show newer messages


Back to Room ListRoom Version: 5