Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] distcc ignoring config file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ShiroiKuma
n00b
n00b


Joined: 09 Nov 2012
Posts: 40
Location: Japan

PostPosted: Tue Sep 02, 2014 9:15 am    Post subject: [SOLVED] distcc ignoring config file Reply with quote

I've got distcc emerged on my nice i5 and on my crummy old laptop. The laptop is trying to distribute to my i5 pc however it's being refused apparently.

On the i5 I've allowed the IP of my laptop as per

/etc/conf.d/distccd
Code:
DISTCCD_OPTS="--port 3632 --log-level debug --log-file /var/log/distccd.log -N 15"
DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.11.6"


Everything else is left as default. However the output of

systemctl status distccd indicates it's being ignored
Code:
> # systemctl status distccd                                                                                                                                                                                       
● distccd.service - Distccd: A Distributed Compilation Server
   Loaded: loaded (/usr/lib64/systemd/system/distccd.service; disabled)
  Drop-In: /etc/systemd/system/distccd.service.d
           └─00gentoo.conf
   Active: active (running) since Tue 2014-09-02 18:06:16 JST; 6min ago
 Main PID: 18990 (distccd)
   CGroup: /system.slice/distccd.service
           ├─18990 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1
           ├─18992 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1
           ├─19022 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1
           ├─19023 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1
           ├─19055 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1
           ├─19056 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1
           └─19057 /usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow 127.0.0.1

Sep 02 18:09:41 hoganji distccd[19055]: (dcc_check_client) ERROR: connection from client '192.168.11.6:35855' denied by access list
Sep 02 18:10:41 hoganji distccd[19056]: (dcc_check_client) connection from 192.168.11.6:35857
Sep 02 18:10:41 hoganji distccd[19056]: (dcc_check_address) deny client 0x60ba8c0, value 0x100007f, mask 0xffffffff
Sep 02 18:10:41 hoganji distccd[19056]: (dcc_check_client) ERROR: connection from client '192.168.11.6:35857' denied by access list
Sep 02 18:11:41 hoganji distccd[19057]: (dcc_check_client) connection from 192.168.11.6:35859
Sep 02 18:11:41 hoganji distccd[19057]: (dcc_check_address) deny client 0x60ba8c0, value 0x100007f, mask 0xffffffff
Sep 02 18:11:41 hoganji distccd[19057]: (dcc_check_client) ERROR: connection from client '192.168.11.6:35859' denied by access list
Sep 02 18:12:43 hoganji distccd[18992]: (dcc_check_client) connection from 192.168.11.6:35861
Sep 02 18:12:43 hoganji distccd[18992]: (dcc_check_address) deny client 0x60ba8c0, value 0x100007f, mask 0xffffffff
Sep 02 18:12:43 hoganji distccd[18992]: (dcc_check_client) ERROR: connection from client '192.168.11.6:35861' denied by access list


The command is running but only allowing 127.0.0.1 and it's not even logging as per the configuration file. I'm still googling around to find a cause of this but not having much luck.

Can anyone see what's wrong here? At first I was allowing 192.168.11.0/24 to allow my whole network, but then figured... maybe I've got it wrong... I'll just add the IP directly while testing.


Last edited by ShiroiKuma on Wed Sep 03, 2014 7:46 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Tue Sep 02, 2014 10:54 pm    Post subject: Reply with quote

Did you restart distcc? systemctl restart distccd ? or something like that? (or stop and then start it?) (sorry I don't have any servers using systemd yet to get the right syntax...)

After you stop it, do the processes still show up?

The process list still looks like it's only allowing 127.0.0.1 which corresponds with the errors seen in the log.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
ShiroiKuma
n00b
n00b


Joined: 09 Nov 2012
Posts: 40
Location: Japan

PostPosted: Wed Sep 03, 2014 7:46 am    Post subject: Reply with quote

Finally I found out how to set the --allow parameters "correctly".

The service file is as follows:

Code:
[Unit]
Description=Distccd: A Distributed Compilation Server
After=network.target

[Service]
User=distcc
ExecStart=/usr/bin/distccd --verbose --no-detach --daemon --port 3632 -N 15 --allow $ALLOWED_SERVERS

[Install]
WantedBy=multi-user.target


I altered this line here to force my network instead of ALLOWED_SERVERS, but I've just found that the file

/etc/systemd/system/distccd.service.d/00gentoo.conf

Let's you set ALLOWED_SERVERS and now my systemctl status distccd shows the correct allow settings and it's working fine now.

It'd be nice if I didn't need to alter the service file to change where the log file goes (for now journalctl is okay).
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Wed Sep 03, 2014 3:36 pm    Post subject: Reply with quote

Ugh... That's annoying. Wish they used the same config file but it figures that two different files are used for systemd and openrc. I guess this is a proof point that they will diverge, and having systemd installed while still running openrc can cause weird behavior...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum