LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid Error? (https://www.linuxquestions.org/questions/linux-newbie-8/squid-error-468796/)

r_emu 07-29-2006 03:23 AM

Squid Error?
 
FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'
Squid Cache (Version 2.5.STABLE1-20030121): Terminated abnormally.
CPU Usage: 0.020 second = 0.010 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 356
Aborted (core dumped)
I got this err message, how i fix it? Please help me fix it.

acid_kewpie 07-29-2006 03:27 AM

it tells you right there in the error what you need to do:
Quote:

Please set 'visible_hostname'
what are you expecting us to add to that?

r_emu 07-31-2006 01:46 AM

Could u give example?

MikeeX 08-08-2006 06:23 PM

I'm getting the same error and do have my hostname setup. I also tried localhost

Any ideas?

runnerfrog 08-08-2006 07:42 PM

Put a little effort on it, please, guys. acid_kewpie has all the right in the world.
cat /etc/hostname --look at the name
cat /etc/sysconfig/network --look at the name
Open squid.conf, uncomment this line and modify to look like this:
visible_hostname [the.name.you.look.before]
Please, before asking, read just a little bit of this, friend: http://www.squid-cache.org/Doc/Users-Guide/

MikeeX 08-09-2006 11:53 AM

I have it configured right:

[root@squid etc]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=squid
GATEWAY=192.168.10.40
[root@squid etc]# hostname
squid
[root@squid etc]#


Still get the error.

Thanks,

runnerfrog 08-09-2006 12:55 PM

So then, MikeeX, as I said before, you should have the line "visible_hostname squid" on your squid.conf file. żdo you? When you have it, just in case, do "squid -z", then "/etc/init.d/squid reload".

MikeeX 08-09-2006 03:50 PM

That is correct I have that directive in my conf file, and I still get the error. Its very odd.

runnerfrog 08-09-2006 05:05 PM

It's not very odd; my mistake, I thought you knew or your "squid" hostname was an example: you have to change your hostname in /etc/hostname and /etc/sysconfig/network to anything but "squid", take off the squid word because that gives the same error too. The line must be uncommented (without the "#" before the line, excuse my stupidity). If that works, tag the thread as solved, please.


All times are GMT -5. The time now is 06:48 PM.