Currently Browsing: Troubleshoot
Posted by
Daniel Kühl Lima in
Linux, Pânico, Troubleshoot
Mar 11th, 2011 |
No Comments
SARG é um gerador de relatório pro squid e é bom no que faz.
Tudo vai bem no
./configure
O comando make parece que vai terminar tudo certo, até que nos 45 minutos do segundo tempo:
/usr/bin/ld: grepday.o: undefined reference to symbol 'exp@@GLIBC_2.0'
/usr/bin/ld: note: 'exp@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [sarg] Error 1
pau.
Pra resolver:
export LDFLAGS="$LDFLAGS...
Posted by
Daniel Kühl Lima in
Troubleshoot
Jun 25th, 2010 |
No Comments
Pois é.
Deixando de lado toda aquela crítica e talz, é interessante saber como rodar o Nginx num servidor Windows como serviço.
Por que utilizar instsrv não funciona? Porque quando se inicia o nginx ele criar 2 processos nginx e o Service do Windows ao parar o serviço vai parar apenas 1 processo, deixando o outro pendurado e inutilizando o Service do Windows.
Tem um programa bastante interessante para lidar com esse tipo cenário, e óbviamente pode ser utilizado/adaptado para outras necessidades.
É um Wrapper para o Windows Service, chama-se Windows Service Wrapper e...
Posted by
Daniel Kühl Lima in
FreeBSD, Linux, Troubleshoot
Mar 11th, 2010 |
No Comments
This error can happen with Linux or FreeBSD or whichever SO that ClamAV support.
When you run
clamscan
You get this error
LibClamAV Error: cli_loaddb(): No supported database files found in /var/db/clamav
ERROR: Can't open file or directory
----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.95.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.001 sec (0 m 0 s)
It means that you have no database virus.
Just configure and run freshclam.
A sample freshclam.conf...
Posted by
Daniel Kühl Lima in
Troubleshoot
Mar 9th, 2010 |
No Comments
Symptom
After you connect to your OpenVPN, even without error and you are still able to see the print that say the routes were added successfully, after about a 10 seconds, the routes simply disappear and you lose connection with your hosts/server.
However, manually adding the routes, you can reach the servers and they become accessible.
Cause
This is a problem with 3G technology, I haven’t seen this behavior with ADSL or dedicated Links.
It’s what I call obscure problem, why this happen with 3G and 3G only? don’t no if it is regarding the technology or...
Posted by
Daniel Kühl Lima in
Troubleshoot
Nov 5th, 2009 |
3 Comments
Sintoma
Após conectar-se no servidor OpenVPN, sem erros e com o print de transferência das rotas sendo mostrado normalmente, uns 10 segundos depois, as rotas desaparecem e perde-se conexão com os servidores.
No entanto, adicionando as rotas manualmente, os servidores tornam-se navegáveis novamente.
Causa
Isto é um problema isolado com clientes que utilizam para conectar-se na internet modems USB e modems 3G (Timweb, VIVO etc).
Esse comportamento não ocorre com clientes que conectam-se via ADSL ou Links dedicados.
Portanto, é um problema obscuro, ficando “no...
Posted by
Daniel Kühl Lima in
FreeBSD, Troubleshoot
Oct 21st, 2009 |
No Comments
Ao instalar o samba via ports no FreeBSD com suporte ao AD (Active Directory) da Microsoft, pode acontecer de o samba não compilar e terminar com o seguinte erro
Compiling libsmb/clikrb5.c
libsmb/clikrb5.c: In function `krb5_set_real_time':
libsmb/clikrb5.c:128: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c:129: error: dereferencing pointer to incomplete type
The following command failed:
cc -I. -I/usr/ports/net/samba3/work/samba-3.0.26a/source -O2 -pipe
-march=prescott -D_SAMBA_BUILD_=3 -I/usr/local/include
-I/usr/ports/net/samba3/work/samba-3.0.26a/source/iniparser/src
-Iinclude...
Posted by
Daniel Kühl Lima in
Linux, Troubleshoot
Sep 17th, 2009 |
3 Comments
O seu servidor Red Hat / CentOS não tinha SELinux habilitado, você resolve habilitar para ter maior segurança nessa máquina e repara que muitos serviços não mais executam e geram erros dizendo que não conseguem encontrar bibliotecas para seu funcionamento.
Isso acontece porque o SELinux não reconhece as marcações não existentes e não libera o acesso do serviço às suas bibliotecas.
Verificando o log do SELinux, encontra seguidas mensagens como essa:
Summary:
SELinux is preventing access to files with the label, file_t.
Detailed Description:
SELinux permission checks on files labeled...
Posted by
Daniel Kühl Lima in
Linux, Troubleshoot
Sep 17th, 2009 |
2 Comments
Fazendo suas iterações com o Yum e de repente se depara com esse erro ao adicionar um repositório ou ao remover ou mesmo ao dar um yum update.
filelists.xml.gz | 3.8 MB 00:07
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 145, in main
(result, resultmsgs) = base.buildTransaction()
File...
Posted by
Daniel Kühl Lima in
Featured Articles, Linux, Troubleshoot
Sep 15th, 2009 |
9 Comments
The server is slow to hell, badly accessing remotely, a simple ls it’s enougth to take a lot of seconds running… openning a program, no way… lot of minutes, time to take a cup of coffee.
You, don’t understanding what’s goin on, go get a look at the server, sometimes wishing to reset it, then, surprisely see that the HD LED look’s like the POWER one, but, Red…
...
Posted by
Daniel Kühl Lima in
Linux, Pânico, Troubleshoot
Sep 10th, 2009 |
No Comments
Servidor lento, mal acessando remotamente, um simples ls é o suficiente pra levar vários segundos executando… abrir um programa então, nem pensar… vários minutos, o tempo para acender um cigar ou tomar um café.
Você, não entendendo o que se passa, vai dar uma olhada no servidor, as vezes já com a intenção de resetar, e repara que o LED do HD parece com a luz do Power, mas, vermelha…
E pensa: Ops, tem algo errado!
The english version is here
iotop, your best friend when LED of HD stays on
...
Posted by
Daniel Kühl Lima in
FreeBSD, Troubleshoot
Sep 8th, 2009 |
2 Comments
O SQUID no FreeBSD 6.x e 7.x, versão 2.6.x e 2.7.x começaram a apresentar um erro estranho, não era problema de hardware. O serviço ‘morria‘ com sinal 6.
pid 99376 (squid), uid 100: exited on signal 6 (core dumped)
pid 7499 (squid), uid 100: exited on signal 6 (core dumped)
pid 7508 (squid), uid 100: exited on signal 6 (core dumped)
pid 7517 (squid), uid 100: exited on signal 6 (core dumped)
pid 7561 (squid), uid 100: exited on signal 6 (core dumped)
pid 7570 (squid), uid 100: exited on signal 6 (core dumped)
pid 7581 (squid), uid 100: exited on signal 6 (core...
Posted by
Daniel Kühl Lima in
Linux, Pânico, Troubleshoot, Virtualização
Sep 8th, 2009 |
No Comments
Na primeira semana, a máquina virtual, que é um Windows 2003, funcionou normalmente, sem apresentar problemas.
Foi necessário um reboot…
...
Posted by
Daniel Kühl Lima in
Linux, Troubleshoot
Sep 8th, 2009 |
No Comments
Nota
Para compilar a extensão ssh2 para o php é necessário ter o programa phpize, ele está no pacote php-devel*.rpm
Ao compilar a extensão ssh2 para o php, um erro ocorre:
gcc -I. -I/usr/src/ssh2-0.10 -DPHP_ATOM_INC -I/usr/src/ssh2-0.10/include -I/usr/src/ssh2-0.10/main -I/usr/src/ssh2-0.10 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/ssh2-0.10/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
/usr/src/ssh2-0.10/ssh2.c: In function...