HTTP Anti-Virus Proxy http://havp.hege.li/forum/ |
|
Fatal error when starting HAVP. http://havp.hege.li/forum/viewtopic.php?f=3&t=114 |
Page 1 of 1 |
Author: | Guest [ 06 Jun 2006 18:25 ] |
Post subject: | Fatal error when starting HAVP. |
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. |
Author: | hege [ 06 Jun 2006 19:54 ] |
Post subject: | |
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 |
Author: | Jared [ 07 Jun 2006 18:47 ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC + 2 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |