22
votes
How can I debug a docker container initialization?
In my case, the -a (attach to STDOUT/STDERR) flag was enough:
user@machine:~$ docker start -a server_name
Error: The directory named as part of the path /log/log_path/app.log does not exist.
For help,...
12
votes
How can I enable logging for requests going through mod proxy
You can also append proxy:trace5 to your existing LogLevel directive
If you have this
LogLevel error
Change it to this
LogLevel error proxy:trace5
Be sure to change that back to normal after use....
6
votes
Ansible: Is it possible to "cat file" and export it's output to screen while playing a playbook and not as debug?
The quote Jinja filter should solve the quoting problem. Use it like this:
- debug: msg="{{ details.stdout_lines | quote }}"
For the other question, I am not aware of a module to print ...
4
votes
Accepted
centos 8: debuginfo-install can't find kernel-debuginfo package
There are two ways of doing this. On CentOS 8,
You can modify /etc/yum.repos.d/CentOS-Debuginfo.repo to set enable=1 and then run yum install kernel-debuginfo or
You can do yum --enablerepo="...
4
votes
How to send Ansible debug messages to another file?
Use local_action as under after capturing the output in a variable:
- local_action:
module: copy
content: "{{ variable1 }}"
dest: /tmp/whatever.out
3
votes
How can I debug a docker container initialization?
Sometimes, you can find useful error messages by sshing into the node running the docker daemon and then doing:
$ tail -f /var/log/containers/* /var/log/docker.log 2>&1
On 'Docker Community ...
3
votes
How to get a debug output from the find command?
The man file for find has debug options
you probably want find -D search -type d -name "something" 2>&1
it doesn't seem to be in the man file but find -D help
prints
search Navigate the ...
2
votes
How to debug Ansible dict for failed ports with wait_for module?
For example, you can write the messages
- debug:
msg: |
{% for i in wait_result.results|select('failed') %}
{{ i.msg }}
{% endfor %}
, or create a list and ...
2
votes
Accepted
Enabling javax.net.debug=all on Tomcat 8 breaks HTTPS with "EC AlgorithmParameters not available"
The problem is OpenJDK 8 dos not support elliptic curve ciphers when attempting to debug SSL connection (Eg javax.net.debug=all).
Try update java-1.8.0-openjdk packages to fix this bug.
See more: ...
2
votes
How can I debug a docker container initialization?
When docker logs fail because container is not yet created, it's already possible to "attach" (with the docker run -a switch) the error message to STDERR (while keeping to STDOUT), e.g.:
$ ...
2
votes
Accepted
Using ftrace to spy on files being created?
/tmp/.ZendSem.sdiU42 is a lock file that was intentionally deleted right after it was created. This is sufficient to prevent this lock from being taken out by other threads. It also has the nice ...
1
vote
IIS10 PHP 7.04 pass through and show everything
Ensure if you have added this into php.ini:
display_errors = On
and I'm not sure if settings in php.ini are case-sensitive, just in case change E_all to E_ALL (in errors_reporting value).
1
vote
Accepted
What does "grabbed scoreboard slot" mean when running Apache in debug mode?
I was not sure if I was the right person to answer this here, since I am sure there are dozens if not hundreds of devs who can explain this much better than I, but let me try to do this...
Briefly, ...
1
vote
Crash utility exit with error in Rhel6.6
I had the same problem on 7.1.5-2.el7:
crash: page excluded: kernel virtual address: ffffffff818129b0 type: >"cpu_possible_mask"
and upgrading crash version to crash 7.2.3-8.el7 helped.
1
vote
How to send Ansible debug messages to another file?
You can use the lineinfile module?
- lineinfile: create=yes regexp="NONEXISTENTLINE" dest=/tmp/ansible.log line="{{logdata.stdout}}" state=present
I use regexp="NONEXISTENTLINE" to allow the same ...
1
vote
Accepted
Ansible: Is it possible to "cat file" and export it's output to screen while playing a playbook and not as debug?
I've looked deeply through the internet and checked with some Ansible professionals.
As far as I understand, there's no such option in Ansible 1.8 to redirect the output of the command to the screen ...
1
vote
Ansible: Is it possible to "cat file" and export it's output to screen while playing a playbook and not as debug?
I would bet that the problem is the quotes in the file you are cat'ing are mismatched and messing with the quotes in the msg. Maybe try:
- debug: msg="{{ details.stdout_lines | regex_escape() }"
or
...
1
vote
Strange behaviour ssh -> bash --> (tty no echo) --> c program?
I answer to myself for saying I have just found the problem
I hope the following helps to anyone
Finally I recompiled the ssh source code (openssh-5.3p1) inserting several 'traps' within the code to ...
1
vote
Analyzing BSOD dump file from Windows 2008 R2 SP1
This looks like the issue described in the following KB article:
https://support.microsoft.com/en-us/kb/2359223
"0x0000003B" Stop error occurs in Windows Server 2008 R2 and in Windows 7 when an ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
debug × 65linux × 13
logging × 6
networking × 4
windows-server-2008 × 4
performance × 4
ansible × 4
apache-2.2 × 3
php × 3
iis × 3
ansible-playbook × 3
server-crashes × 3
strace × 3
centos × 2
ssh × 2
windows-server-2003 × 2
docker × 2
bash × 2
cisco × 2
monitoring × 2
rewrite × 2
memory × 2
unix × 2
java × 2
port × 2