Questions tagged [debug]

64 questions
164
votes
6 answers

How can I debug a docker container initialization?

I had an issue with a container, even though it builds perfectly it does not properly start. The cause is a workaround I've added to the Dockerfile (for having a self-configured /etc/hosts routing) RUN mkdir -p -- /lib-override /etc-override && cp…
estani
  • 2,306
43
votes
7 answers

Switch on PAM debugging to Syslog

How do I switch on PAM debugging in Debian Squeeze at the admin level? I have checked every resource I was able to find. Google, manpages, whatever. The only thing I haven't tried yet (I simply not dare to, did I mention that I hate PAM?) is…
Tino
  • 1,183
30
votes
2 answers

check port open without telnet

What do people use when Telnet is not installed to check a port is open and reachable? E.g. I used to use the technique of telnet and know it was there, even if telnet could not interact with the system on the other end. With Windows…
Karl
  • 447
28
votes
6 answers

How can I enable logging for requests going through mod proxy

Is there a way to log requests going through mod proxy? I need a way to debug my configuration, because I don't seem to be getting where I should be. I need the following information: headers of incoming requests what is being sent to the proxy…
Kariem
  • 591
27
votes
4 answers

Ansible: Is it possible to "cat file" and export it's output to screen while playing a playbook and not as debug?

I wrote a playbook which installs and configures Google Authenticator per user. I want the last step of the playbook to cat the google_authenticator configuration file. Using the "debug" module I am able to get the data to be displayed on screen but…
Itai Ganot
  • 10,976
10
votes
2 answers

SSH key pair ONLY accepted by sshd in debug mode

Using Rocky 9.4, OpenSSH 8.7p1, I have an RSA keypair which is not accepted unless sshd is in debug mode. (Thankfully I have an old pair that works). I have unset SSH_AUTH_SOCK and verified that no agent is involved. I have moved ~/.ssh/config to…
ljcorsa
  • 103
8
votes
6 answers

What is the maximum memory that an IIS6 web site/app pool can use?

I have an IIS 6 server running on Windows 2003 SP2 x86. The server has 4GB of RAM and runs consistently with 2GB allocated. I realise that with x86, the server won't utilize all of the 4GB RAM and the application space is also limited but the IIS…
Robin M
  • 463
7
votes
3 answers

How to find out the cause of linux server crash after rebooting

Here is the deal, come to work only to find out one server isn't responding at all, the machine is turned on, but the screen doesn't show anything att all, doesn't respond to keyboard inputs (I don't have sys rq keys enabled). The server needs to be…
zidarsk8
  • 404
7
votes
3 answers

How to troubleshoot Windows? Post your checklist

There is sometimes a situation when Windows suddenly goes crazy: is slow, unresponsive, some things don't work, it crashes. I wonder how do you approach diagnosing those issues. I'm merely a programmer, not really knowing Windows too deply. There is…
ya23
  • 501
6
votes
3 answers

How to send Ansible debug messages to another file?

If you do the following: - name: print to stdout command: echo "My log information" register: logdata - debug: msg="{{ logdata.stdout }}" The logdata register variable's contents will be displayed along with the complete ansible log. I would…
0aslam0
  • 169
6
votes
1 answer

Bash to start missing debugger after update to 4.2

I'm on Centos 7.2. Yesterday I've made an update of bash to version bash-4.2.46-19.el7.x86_64 and now on login I get this: -bash: /usr/share/bashdb/bashdb-main.inc: No such file or directory -bash: warning: cannot start debugger; debugging mode…
6
votes
1 answer

Java process (OpenDS) consumes all cpu (futex flood) - how to debug futex?

Today I noticed that my LDAP server (OpenDS) consumes 100% CPU on every available core. Fast diagnose showed me that there is a lot of ETIMEDOUT during the futex lock. How Can I debug it to figure out what is happening and how to fix…
bluszcz
  • 409
5
votes
1 answer

Strange behaviour ssh -> bash --> (tty no echo) --> c program?

At job we have an old C program which works with industrial hand terminals from Honeywell. That terminal has its own ssh client to connect to a linux redhat 6.6 server. Once it is connected to the linux box (using a certain user), a C program is…
5
votes
1 answer

Analyzing BSOD dump file from Windows 2008 R2 SP1

I have a problem with a virtual Windows Server 2008 R2 SP1 server running withing VMWare. The server is running Citrix and also has Symantec Endpoint protection installed. It randomly crashes and goes to BSOD. Investigating the event log didn't…
4
votes
1 answer

Why does strace open, read 512 bytes, and THEN fstat libncurses?

I've got the following strace output that I'm going through to teach myself a little more about the flow of programs. Here's the section that's confusing me: 16:08:02 open("/lib/libncurses.so.5", O_RDONLY) = 3 <0.000046> 16:08:02 read(3, "\x7f\"...,…
1
2 3 4 5