Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th April 2012, 09:51 AM
ksaarela Offline
Registered User
 
Join Date: Apr 2012
Location: Finland
Posts: 2
linuxfirefox
Dansguardian not starting after switching to Fedora 16)

Hello,

I'm upgrading our home network to Fedora 16 as I have several units running either F14 or F15.

Now with Fedora 16 I've encountered an issue with dansguardian, it won't start and I get the following message in /var/log/messages:

Apr 15 11:17:55 julia dansguardian[3759]: Starting Web Content Filter (dansguardian):
Apr 15 11:17:55 julia systemd[1]: PID file /var/run/dansguardian not readable (yet?) after start.

I have dansguardian up'n'running in F14 and F15 environment even the package seems to be quite old.

I've tried quite a few things but without success. This is getting quite annoying.

Any hints?

---------
Installed Packages
Name : dansguardian
Arch : i686
Version : 2.10.1.1
Release : 4.fc13
Size : 1.4 M
Repo : installed
From repo : fedora
Reply With Quote
  #2  
Old 15th April 2012, 03:46 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 821
linuxfirefox
Re: Dansguardian not starting after switching to Fedora 16)

I wonder whether you have a stale PID file with odd permissions? I would try first (as root):
Code:
# systemctl stop dansguardian.service
# rm -f /var/run/dansguardian
# systemctl start dansguardian.service
(I have Dansguardian running happily here on F16 -- just the version from the repositories, with almost no manual configuration.)
Reply With Quote
  #3  
Old 15th April 2012, 05:42 PM
ksaarela Offline
Registered User
 
Join Date: Apr 2012
Location: Finland
Posts: 2
linuxfirefox
Re: Dansguardian not starting after switching to Fedora 16)

Hello,

and thanks for the proposal, I checked, but it didn't help.

However, I did some further debugging and found out, that dansguardian in fact is running properly after reboot.

What doesn't work seems to be related to restarting and stopping dansguardian by using /bin/systemctl, or /sbin/service or directly /etc/init.d/dansguardian, these all fail. Starting dansguardian directly /usr/sbin/dansguardian works also.

As I'm every now and then updating exceptionsitelist and restarting dansguardian accordingly, this is a bit of an annoyance.

But as dansguardian works after a reboot, and the machine I upgraded first to F16 is booted regularly anyway, situation is acceptable. (read = kids can use the computer again, and the noise level is down to normal).
Reply With Quote
  #4  
Old 15th April 2012, 09:34 PM
cengel Offline
Registered User
 
Join Date: Apr 2012
Location: MN, USA
Posts: 1
linuxfirefox
Re: Dansguardian not starting after switching to Fedora 16)

I just upgraded to F16 this week as well and dansguardian doesn't work for me. First it addes over a minute to boot time while it waits for the start to timeout. However when I am finally able to login I can see that it is running, however if I attempt to use it it doesn't work.

I see it attempting to access squid but squid keeps failing with these in squid.log :
1334422820.782 49328 127.0.0.1 NONE_ABORTED/000 0 GET http://www.cnn.com/ - HIER_NONE/- -

I did have to modify my squid.conf after the upgrade but I just put these lines back in like I had with F14:
# Squid normally listens to port 3128
http_port 127.0.0.1:3128 transparent
#http_port 3128

# CJE Adds
visible_hostname eng
cache_effective_user squid
cache_effective_group squid
shutdown_lifetime 2 seconds


For now I have rerouted this computer to use dansguardian on another machine that is still at F14. I guess I will have to wait to upgrade that one until this issue is resolved.
Reply With Quote
  #5  
Old 1st July 2012, 01:16 AM
nicku Offline
Registered User
 
Join Date: May 2011
Posts: 4
linuxfirefox
Re: Dansguardian not starting after switching to Fedora 16)

See https://bugzilla.redhat.com/show_bug.cgi?id=756260.
Now there is a fixed package released. If you do not install that, you can work around it
with this:

#! /bin/sh
if ! ps auxwwww | grep dansguardia[n] | grep -v start-dansguardia[n]
then
echo Starting dansguardian...
sudo mkdir /var/run/dansguardian
sudo chown dansguardian.dansguardian /var/run/dansguardian
sudo systemctl start dansguardian.service
fi
sudo systemctl status dansguardian.service
Reply With Quote
  #6  
Old 26th November 2012, 04:30 AM
tuxbiker Offline
Registered User
 
Join Date: Jun 2011
Posts: 1
linuxchrome
Re: Dansguardian not starting after switching to Fedora 16)

This is a super old thread and I hate to necro it, but the actual fix is correcting the pidfile in Fedora. Set the pid in /etc/dansguardian/dansguardian.conf to /var/run/dansguardian.pid, then in the /etc/init.d/dansguardian file, make sure it references that as well.
Reply With Quote
Reply

Tags
dansguardian, fedora, starting, switching

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need helping installing Dansguardian on Fedora 9 jamesjpn Using Fedora 10 25th July 2008 05:26 AM
DansGuardian Lock17 Using Fedora 5 11th April 2008 07:52 AM
Dansguardian interele Using Fedora 2 13th June 2007 02:35 PM
Dansguardian AlphaTwin Servers & Networking 2 16th March 2006 07:47 PM
Squid / Dansguardian AlphaTwin Servers & Networking 2 20th January 2006 07:34 PM


Current GMT-time: 01:29 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat