🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: YAMN v2.0.5 and Systemd service

#318396
From: Sinless Remop
Date: Fri, 04 Feb 2022 21:11
132 lines
6553 bytes
On 2022-02-04 14:52, Zax wrote:
>On Fri, 4 Feb 2022 04:40:32 +0000, Sinless Remop wrote in
> Message-Id: <20220204.044032.ef114205@mixmin.net>:
> 
>> Yes. That is my yamn.yml's location.
>> I tried the modification to yamn.service that you suggested, but the service still failed as before:
> 
>> * yamn.service - YAMN Anonymous Remailer
>>     Loaded: loaded (/etc/systemd/system/yamn.service; enabled; vendor preset: enabled)
>>     Active: failed (Result: exit-code) since Thu 2022-02-03 17:07:32 EST; 1min 29s ago
>>    Process: 797 ExecStart=/home/yamn/yamn/yamn -M -D --dir /home/yamn/yamn (code=exited, status=1/FAILURE)
>>   Main PID: 797 (code=exited, status=1/FAILURE)
> 
>> Feb 03 17:07:31 onus.sinless.space systemd[1]: Started YAMN Anonymous Remailer.
>> Feb 03 17:07:31 onus.sinless.space yamn[797]: Info: 2022/02/03 17:07:31 yamn.go:187: Using config file: yamn.yml
>> Feb 03 17:07:31 onus.sinless.space yamn[797]: Info: 2022/02/03 17:07:31 client.go:320: Fetching https://www.tincture.ws/pinger/yamn/pubring.mix and storing in pubring.mix
>> Feb 03 17:07:32 onus.sinless.space yamn[797]: Warn: 2022/02/03 17:07:32 client.go:323: open pubring.mix: permission denied
>> Feb 03 17:07:32 onus.sinless.space yamn[797]: Info: 2022/02/03 17:07:32 client.go:320: Fetching https://www.tincture.ws/pinger/yamn/mlist2.txt and storing in mlist2.txt
>> Feb 03 17:07:32 onus.sinless.space yamn[797]: Warn: 2022/02/03 17:07:32 client.go:323: open mlist2.txt: permission denied
>> Feb 03 17:07:32 onus.sinless.space yamn[797]: Error: 2022/02/03 17:07:32 server.go:276: Failed to create idlog. mkdir idlog: permission denied
>> Feb 03 17:07:32 onus.sinless.space systemd[1]: yamn.service: Main process exited, code=exited, status=1/FAILURE
>> Feb 03 17:07:32 onus.sinless.space systemd[1]: yamn.service: Failed with result 'exit-code'.
> 
>> When I start the YAMN daemon using Daemon it starts up. Email moves through the remailer.
>> So I'm assuming that the content of my yamn.yml is good.
> 
> That's odd.  I've just created a yamn.service file and it starts without
> any problems.  The principle different is this:
> 
> 2022/02/04 19:26:13 [INFO]    Using config file: /home/crooks/yamn5/yamn.yml
> 
> When my remailer starts, it reports the full path to the config file but
> yours doesn't.  The lack of path explains the permission denied errors.
> It's probably trying to create files in /.
> 
> I've created a new branch called config_debug.  It's identical to what
> you're running but will print a message stating where it's finding the
> yamn.yml file.  Would you mind giving it a try?

I just tried your YAMN version called config_debug. Unfortunately, I get the same failed response
from Systemd.


* yamn.service - YAMN Anonymous Remailer
   Loaded: loaded (/etc/systemd/system/yamn.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2022-02-04 15:45:49 EST; 16s ago
  Process: 10253 ExecStart=/home/yamn/yamn/yamn -M -D --dir /home/yamn/yamn (code=exited, status=1/FAILURE)
 Main PID: 10253 (code=exited, status=1/FAILURE)

Feb 04 15:45:48 onus.sinless.space systemd[1]: Started YAMN Anonymous Remailer.
Feb 04 15:45:48 onus.sinless.space yamn[10253]: Using config via --dir: /home/yamn/yamn/yamn.yml
Feb 04 15:45:48 onus.sinless.space yamn[10253]: Info: 2022/02/04 15:45:48 yamn.go:187: Using config file: yamn.yml
Feb 04 15:45:48 onus.sinless.space yamn[10253]: Info: 2022/02/04 15:45:48 client.go:320: Fetching https://www.tincture.ws/pinger/yamn/pubring.mix and storing in pubring.mix
Feb 04 15:45:49 onus.sinless.space yamn[10253]: Warn: 2022/02/04 15:45:49 client.go:323: open pubring.mix: permission denied
Feb 04 15:45:49 onus.sinless.space yamn[10253]: Info: 2022/02/04 15:45:49 client.go:320: Fetching https://www.tincture.ws/pinger/yamn/mlist2.txt and storing in mlist2.txt
Feb 04 15:45:49 onus.sinless.space yamn[10253]: Warn: 2022/02/04 15:45:49 client.go:323: open mlist2.txt: permission denied
Feb 04 15:45:49 onus.sinless.space yamn[10253]: Error: 2022/02/04 15:45:49 server.go:276: Failed to create idlog. mkdir idlog: permission denied
Feb 04 15:45:49 onus.sinless.space systemd[1]: yamn.service: Main process exited, code=exited, status=1/FAILURE
Feb 04 15:45:49 onus.sinless.space systemd[1]: yamn.service: Failed with result 'exit-code'.


I am not using absolute paths in my yamn.yml file. Maybe that is where things are going wrong.
Here is what I have been using:

-  -  -  -  -
general:
    loglevel: info
    logtofile: false
files:
    config: yamn.yml
    pubring: pubring.mix
    mlist2: mlist2.txt
    pubkey: key.txt
    secring: secring.mix
    adminkey: adminkey.txt
    help: help.txt
    pooldir: pool
    maildir: Maildir
    idlog: idlog
    chunkdb: chunkdb
    logfile: yamn.log
urls:
    fetch: true
    pubring: https://www.tincture.ws/pinger/yamn/pubring.mix
    mlist2: https://www.tincture.ws/pinger/yamn/mlist2.txt
mail:
    sendmail: false
    pipe: "/usr/sbin/sendmail -t"
    outfile: false
    usetls: true
    smtp_relay: onus.sinless.space
    smtp_port: 25
    mx_relay: true
    onion_relay: false
    sender: ""
    username: ""
    password: ""
    outbound_name: Anonymous
    outbound_addy: nobody@sinless.space
    custom_from: false
stats:
    minlat: 3
    maxlat: 360
    minrel: 90
    rel_final: 99
    chain: '*,*,*'
    num_copies: 1
    distance: 2
    stale_hours: 24
    use_expired: false
pool:
    size: 5
    rate: 70
    min_send: 5
    loop: 300
    max_age: 28
remailer:
    name: sinless
    address: yamn@sinless.space
    exit: false
    max_size: 12
    id_expire: 14
    chunk_expire: 60
    max_age: 14
    key_life: 14
    key_grace: 28
    daemon: true

-  -  -  -  -

Sinless Remop
remop at sinless.space
Technical Details
Message-ID: <20220204.211110.1d7d025a@mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <slrnsvr10k.e3v.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <20220204.211110.1d7d025a@mixmin.net>
Subject: Re: YAMN v2.0.5 and Systemd service
Date: Fri, 4 Feb 2022 21:11:10 +0000
From: Sinless Remop <noreply@mixmin.net>
References: <slrnsvr10k.e3v.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Injection-Date: Fri, 4 Feb 2022 21:15:01 +0000 (UTC)
Newsgroups: alt.privacy.anon-server
Comments: This message was transferred to Usenet via mail2news gateway at
Injection-Info: neodome.net;
Lines: 131