Closed DarkShyMW closed 5 months ago
In my case,it was solved by adding this to service file.
Environment="PATH=/home/misskey/.local/share/pnpm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
I don't know if this is the right solution.
but if i use pnpm start all works
@momoirodouhu this my misskey.service
[Unit] Description=Misskey daemon
[Service] Type=simple User=misskey ExecStart=/home/misskey/.nvm/versions/node/v18.14.1/bin/npm start WorkingDirectory=/home/misskey/misskey Environment="NODE_ENV=production" TimeoutSec=60 StandardOutput=journal StandardError=journal SyslogIdentifier=misskey Restart=always
[Install] WantedBy=multi-user.target
https://github.com/misskey-dev/misskey/blob/647a0183626042f29834c3b4dd8dbba88a799c4c/package.json#L19
You can modify it to look like this:
"start": "cd packages/backend && node ./built/boot/index.js",
pnpm path is written in bashrc.
But systemd doesn't use it.
So systemd can't solve commandpnpm
It looks this is not issue of misskey, is issue of your environment configuration (especially PATH environment variable) and very old so closing this issue. If you still have same issue, please try configuring PATH or ask help community on discussions.
Misskeyの問題ではなく、環境の設定(特にPATH環境変数)の問題のようで、また古いため、Closeします。 もしまだ問題が発生している場合には、PATH環境変数の設定を試す、またはdiscussionsで助けを求めてみてください。
💡 Summary
I was try to update my misskey instance from 13.6.1 to 13.8.1, but after
service misskey restart
i take error:🥰 Expected Behavior
Misskey should started
🤬 Actual Behavior
📝 Steps to Reproduce
📌 Environment
Misskey version: 13.1.6->13.1.8 Your OS: Ubuntu 22.04 Your browser: Firefox