🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #318327

Re: YAMN v2.0.5 and Systemd service

#318327
From: SEC3
Date: Tue, 01 Feb 2022 23:32
57 lines
2967 bytes
On 2022-01-31 19:32, Sinless Remop wrote:
> I am currently testing the new YAMN version at Sinless remailer. It is
> working okay with the new yamn.yml config file. But the problem I am having
> is the Systemd service I used to start YAMN fails with these errors.
> 
> Jan 31 12:26:31 onus.sinless.space systemd[1]: Started YAMN Anonymous Remailer.
> 
> Jan 31 12:26:31 onus.sinless.space yamn[29606]: Warn: 2022/01/31 12:26:31 yamn.go:189:
> No config file was found. Resorting to defaults
> 
> Jan 31 12:26:32 onus.sinless.space yamn[29606]: Warn: 2022/01/31 12:26:32 client.go:323:
> open pubring.mix: permission denied
> 
> Jan 31 12:26:32 onus.sinless.space yamn[29606]: Warn: 2022/01/31 12:26:32 client.go:323:
> open mlist2.txt: permission denied
> 
> Jan 31 12:26:32 onus.sinless.space yamn[29606]: Error: 2022/01/31 12:26:32 server.go:276:
> Failed to create idlog. mkdir idlog: permission denied
> 
> Jan 31 12:26:32 onus.sinless.space systemd[1]: yamn.service: Main process exited,
> code=exited, status=1/FAILURE
> 
> Jan 31 12:26:32 onus.sinless.space systemd[1]: yamn.service: Failed with result 'exit-code'.
> 

If Systemd isn't working for you you might try starting YAMN via the 
Daemon program instead. A while back Zax posted how to do it. I kept 
these notes:

====
If you want to run Yamn as a detached process, I'd suggest using the
daemon package. It does it properly and takes out all the pain.

On Debian, you can "apt install daemon". After downloading the package,
create a config file called .daemonrc in the homedir of the user who
will run the daemon.

There are loads of config options but all you'll probably need is this:

yamn \
chdir=/home/yamn/yamn,\
stdout=/home/yamn/yamn/yamn.log,\
stderr=/home/yamn/yamn/yamn.log,\
pidfiles=/home/yamn/yamn,\
command=/home/yamn/go/bin/yamn --dir=/home/yamn/yamn --remailer

The process can then be started with:
daemon --name=yamn
And stopped with:
daemon yamn --name=yamn --stop

====

-- 
SEC3

YAMN Tutorials - https://sec3.net/yamnhelp
Technical Details
Message-ID: <tqjKJ.779148$YlU2.79487@fx08.ams1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20220201.013212.1a12a003@mix2.remailer.xyz>

Show Full Headers
Complete Article Headers
Message-ID: <tqjKJ.779148$YlU2.79487@fx08.ams1>
Subject: Re: YAMN v2.0.5 and Systemd service
Date: Tue, 1 Feb 2022 18:32:41 -0500
From: SEC3 <admin@sec3.net>
References: <20220201.013212.1a12a003@mix2.remailer.xyz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
Newsgroups: alt.privacy.anon-server
In-Reply-To: <20220201.013212.1a12a003@mix2.remailer.xyz>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 57
X-Complaints-To: abuse@blocknews.net
Nntp-Posting-Date: Tue, 01 Feb 2022 23:32:41 UTC
Organization: blocknews - www.blocknews.net