HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:53

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 06 Jun 2006 18:25 
HAVP exits with an error when i try to start it. Here`s HAVP`s output:

Code:
#/usr/local/havp/sbin/havp --conf-file=/usr/local/havp/etc/havp/havp.config
Testfile fcntl() failed: Resource temporarily unavailable
Exiting..


Looks like i configured HAVP right so i cant understand where`s the problem. Error log is almost empty:

Code:
# less /var/log/havp/havp.log
06/06/2006 17:22:21 === Starting HAVP Version: 0.80
06/06/2006 17:22:21 Change to user squid
06/06/2006 17:22:21 Change to group squid


HAVP tempdir configuration.

Code:
# less /usr/local/havp/etc/havp/havp.config | grep tmp/havp
SCANTEMPFILE /var/tmp/havp/havp-XXXXXX
TEMPDIR=/var/tmp/havp



'df' for /var/tmp/havp
Code:
# df | grep tmp/havp
tmpfs                   254000         0    254000   0% /var/tmp/havp


'mount' for /var/tmp/havp
Code:
# mount | grep tmp/havp
tmpfs on /var/tmp/havp type tmpfs (rw,mand)


The command i used to mount the drive is
Code:
mount -t tmpfs -o mand tmpfs /var/tmp/havp


And finaly, 'ls' for /var/tmp/havp after is was mounted
Code:
# ls -al | grep havp
drwxr-xr-x    2 squid    squid        4096 Tue  6 15:51 havp



Directories for HAVP pid file and logs are owned by 'squid' user, so they are writeable for HAVP, which is run under 'squid'. Looking at 'fcntl() failed' i think the problem is somewhere around my ramdisk /var/tmp/havp with mandatory locks enabled, but i just do not have any idea, what exactly is wrong.


Top
  
 
 Post subject:
PostPosted: 06 Jun 2006 19:54 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
This is the common tmpfs problem, which seems to be very kernel/distribution specific.

Someone had success when it was made sure that tmpfs was mounted only once at boot time. So try to check that you don't have any extra /dev/shm or similar tmpfs mounted. It if doesn't work, try to manually mount or something.

Cheers,
Henrik


Top
 Profile  
 
 Post subject:
PostPosted: 07 Jun 2006 18:47 
Offline

Joined: 07 Jun 2006 18:41
Posts: 4
Thanks, this problem is solved. I removed /dev/shm entry from fstab and added my /var/tmp/havp line there. After a full reboot 'fcntl() failed' error dont appear any more.

So on some systems /var/tmp/hapv ramdisk should be mounted at the box boot time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group