Erro ao restartar apache2

1. Erro ao restartar apache2

Anderson Carlo
andersoncarlo

(usa Ubuntu)

Enviado em 26/04/2012 - 15:29h

Amigos, ainda sou novo no linux(ubuntu), estou com o seguinte erro ao restartar o apache:

* Restarting web server apache2 ... waiting [ OK ]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
SIOCADDRT: File exists
root@srvreivlx:/etc/init.d#

Acredito que por causa disso meu sarg parou de gerar o arquivo de 1 em 1 minuto conforme configurei no cron, estava funcionando normalmente, tivemos que reiniciar o servidor e quando voltou estava assim, sem gerar o arquivo sarg, quando dou o comando sarg direto no shell, apresenta a seguinte msg também:

SARG: (report) Erro no open do arquivo: /tmp/sarg

não sei se um tem relação com o outro

ALGUÉM PODE ME AJUDAR, grande abraço !


  


2. Re: Erro ao restartar apache2

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 26/04/2012 - 15:34h

Acredito q tenha outro serviço q está utilizando a porta 80. Execute o comando abaixo para certificar:


netstat -antp | grep :80


Poste aki pra gente analisar.


3. Re: Erro ao restartar apache2

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/04/2012 - 15:37h

andersoncarlo escreveu:

Amigos, ainda sou novo no linux(ubuntu), estou com o seguinte erro ao restartar o apache:

* Restarting web server apache2 ... waiting [ OK ]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
SIOCADDRT: File exists
root@srvreivlx:/etc/init.d#

Acredito que por causa disso meu sarg parou de gerar o arquivo de 1 em 1 minuto conforme configurei no cron, estava funcionando normalmente, tivemos que reiniciar o servidor e quando voltou estava assim, sem gerar o arquivo sarg, quando dou o comando sarg direto no shell, apresenta a seguinte msg também:

SARG: (report) Erro no open do arquivo: /tmp/sarg

não sei se um tem relação com o outro

ALGUÉM PODE ME AJUDAR, grande abraço !


O sarg não precisa do apache para gerar os relatórios. Para você visualizar seus relatório gerados pelo sarg na web, que tem a necessidade do apache.

Em relação a esse erros... Poste o resultado de:

# tail -50 /var/log/apache2/error.log


4. Re: Erro ao restartar apache2

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/04/2012 - 16:02h

Brother... desculpa a pergunta! Mas para que gerar relatórios a cada minuto? Isso deve ficar uma bagunça! Muitos arquivos gerados! Você consegue administrar assim? Você configurou o sarg para visualizar essa penca de arquivos gerados(24 horas = 1440 minutos)? Eu configuro um top 50!

Não seria melhor gerar um por dia, do dia inteiro?

Caso queira analisar seu access.log me tempo real basta fazer isso:

# tail -f /var/log/squid/access.log


5. Re: Erro ao restartar apache2

Anderson Carlo
andersoncarlo

(usa Ubuntu)

Enviado em 26/04/2012 - 16:31h

resultado do netstat

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1006/apache2
tcp 0 0 192.168.2.13:34549 184.169.73.33:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:55871 201.7.176.17:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:47556 200.243.13.133:80 TIME_WAIT -
tcp 0 0 192.168.2.13:45548 201.7.176.17:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:57902 74.125.234.120:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:39125 74.125.234.121:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:44752 207.171.163.206:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:60960 207.171.163.206:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:59430 161.148.231.100:80 TIME_WAIT -
tcp 0 0 192.168.2.13:59378 77.91.204.131:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:54976 200.243.13.133:80 TIME_WAIT -
tcp 0 0 192.168.2.13:36990 107.22.166.167:80 ESTABLISHED 25639/(squid)
tcp 0 1 192.168.2.13:48370 186.192.82.49:80 LAST_ACK -
tcp 0 0 192.168.2.13:52507 200.243.13.133:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:35341 74.125.234.191:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:39188 161.148.231.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:49660 161.148.231.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:41319 72.21.194.16:80 TIME_WAIT -
tcp 0 0 192.168.2.13:40380 173.194.37.6:80 TIME_WAIT -
tcp 0 1 192.168.2.13:54724 186.192.82.49:80 LAST_ACK -
tcp 0 0 192.168.2.13:55594 107.22.187.237:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:52433 107.22.165.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:39036 74.125.234.119:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:59368 66.220.151.82:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:35441 200.147.67.184:80 TIME_WAIT -
tcp 0 0 192.168.2.13:37134 173.194.73.94:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:34363 207.171.163.206:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:58211 200.147.68.8:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:48691 107.22.187.63:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:34754 207.171.163.206:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:47399 201.7.176.17:80 TIME_WAIT -
tcp 0 0 192.168.2.13:50206 74.125.234.122:80 TIME_WAIT -
tcp 0 0 192.168.2.13:58550 201.7.176.17:80 TIME_WAIT -
tcp 0 0 192.168.2.13:47029 208.29.69.153:80 TIME_WAIT -
tcp 0 0 192.168.2.13:50220 161.148.231.100:80 TIME_WAIT -
tcp 0 0 192.168.2.13:35007 107.22.165.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:46663 161.148.231.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:44064 74.125.234.119:80 TIME_WAIT -
tcp 0 0 192.168.2.13:33715 161.148.231.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:43862 107.22.166.167:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:45284 200.181.132.135:80 TIME_WAIT -
tcp 0 0 192.168.2.13:53220 161.148.231.100:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:34443 74.125.234.109:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:45960 173.194.37.14:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:43135 200.243.13.133:80 TIME_WAIT -
tcp 0 0 192.168.2.13:57545 200.221.7.95:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:40027 207.171.163.206:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:39666 107.22.187.63:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:54039 201.7.176.17:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:60655 173.194.37.4:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:47240 107.22.187.237:80 TIME_WAIT -
tcp 0 0 192.168.2.13:55307 74.125.234.122:80 TIME_WAIT -
tcp 0 0 192.168.2.13:51030 72.21.194.16:80 TIME_WAIT -
tcp 0 0 192.168.2.13:50477 201.7.176.17:80 TIME_WAIT -
tcp 0 0 192.168.2.13:47190 74.125.234.119:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:46960 72.21.194.16:80 TIME_WAIT -
tcp 0 0 192.168.2.13:38501 66.220.151.82:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:42371 201.7.176.17:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:50221 200.243.13.133:80 TIME_WAIT -
tcp 0 0 192.168.2.13:52323 74.125.234.120:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:52256 199.59.148.201:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:48390 201.7.176.17:80 TIME_WAIT -
tcp 0 0 192.168.2.13:37006 184.73.205.94:80 ESTABLISHED 25639/(squid)
tcp 0 0 192.168.2.13:52161 74.125.234.127:80 TIME_WAIT -
tcp 0 0 192.168.2.13:53368 161.148.231.100:80 TIME_WAIT -
tcp 0 0 192.168.2.13:39491 161.148.231.100:80 TIME_WAIT -



6. Re: Erro ao restartar apache2

Anderson Carlo
andersoncarlo

(usa Ubuntu)

Enviado em 26/04/2012 - 16:32h

resultado do error.log:

[Thu Apr 26 13:59:24 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:24 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:24 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:25 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:25 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:25 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:25 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:25 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:26 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:26 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:26 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:26 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:26 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:27 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:27 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:27 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:27 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:27 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:27 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:28 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:28 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:28 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:28 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:29 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:29 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:29 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:29 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:29 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 13:59:29 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:45:11 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:45:58 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:46:02 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:49:21 2012] [notice] caught SIGTERM, shutting down
[Thu Apr 26 14:49:23 2012] [notice] Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.10 with Suhosin-Patch configured -- resuming normal operations
[Thu Apr 26 14:49:42 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:49:54 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:50:04 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 14:54:28 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 15:02:13 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 15:04:39 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 15:05:59 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 15:06:14 2012] [error] [client 192.168.0.16] File does not exist: /var/www/squid-reports/Daily/2012Apr24-2012Apr26/index.html, referer: http://192.168.0.16/squid-reports/Daily/
[Thu Apr 26 15:06:50 2012] [notice] caught SIGTERM, shutting down
[Thu Apr 26 15:06:57 2012] [notice] Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.10 with Suhosin-Patch configured -- resuming normal operations
[Thu Apr 26 15:07:01 2012] [notice] caught SIGTERM, shutting down
[Thu Apr 26 15:07:45 2012] [notice] Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.10 with Suhosin-Patch configured -- resuming normal operations
[Thu Apr 26 15:13:14 2012] [notice] caught SIGTERM, shutting down
[Thu Apr 26 15:13:15 2012] [notice] Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.10 with Suhosin-Patch configured -- resuming normal operations
[Thu Apr 26 15:17:17 2012] [notice] caught SIGTERM, shutting down
[Thu Apr 26 15:17:18 2012] [notice] Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.10 with Suhosin-Patch configured -- resuming normal operations



7. Re: Erro ao restartar apache2

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 26/04/2012 - 16:36h

O Apache tá rodando normal. O lance é analisar as configs do seu Apache (httpd.conf e vhosts, se tiver).


8. Re: Erro ao restartar apache2

Anderson Carlo
andersoncarlo

(usa Ubuntu)

Enviado em 26/04/2012 - 16:36h

amigo amarildosertorio :

Eu gero de 1 em 1 minuto mas o arquivo se sobrepõe, e tenho a informação quase em tempo real atualizada no meu sarg, e com isso não tem a possibilidade de gerar muitos arquivos.

Eu uso o comando que vc postou, é muito util mesmo, a questão é que eu quero essas informações no sarg...


9. Re: Erro ao restartar apache2

Anderson Carlo
andersoncarlo

(usa Ubuntu)

Enviado em 26/04/2012 - 16:38h

Renato, o meu httpd.conf tá em branco, nunca precisei configurar nada dentro dele, fica em /etc/apache2


10. Re: Erro ao restartar apache2

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 26/04/2012 - 16:40h

andersoncarlo escreveu:

Renato, o meu httpd.conf tá em branco, nunca precisei configurar nada dentro dele, fica em /etc/apache2


Ah, tá. O seu é o apache2.conf.


11. Re: Erro ao restartar apache2

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/04/2012 - 16:45h

Me parece que seu apache está auto. Parece que esse erro não afeta subir o serviço.

Confirmando:

# ps aux | grep apache

Referente ao erro do sarg, a reposta está no log.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts