Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zwe logging issues #4062

Closed
Martin-Zeithaml opened this issue Oct 30, 2024 · 0 comments · Fixed by #4064 · May be fixed by #4071
Closed

zwe logging issues #4062

Martin-Zeithaml opened this issue Oct 30, 2024 · 0 comments · Fixed by #4064 · May be fixed by #4071
Labels
bug Something isn't working zwe

Comments

@Martin-Zeithaml
Copy link
Contributor

Martin-Zeithaml commented Oct 30, 2024

There is a room for zwe logging improvement:

1) Sometimes it is working

rm /logs/*
/zowe/bin/zwe start -c ./zowe.wrong.yaml -l /logs --configmgr
cat /logs/*
Zowe server command: zwe start
- timestamp: 2024-10-30 07:52:21
- parameters:
  * config: ./zowe.wrong.yaml
  * log-dir: /logs

2) Sometimes not

rm /logs/*
/zowe/bin/zwe start -c 'FILE(./zowe.yaml)' -l /logs
cat /logs/*
����������������������������������������������������������������������������������������+�!|�ᎎ���?ʀ!��<���� �/�%����?���/�Ȁ!��(���욀�������!��(������<���߀�������߀�+����������������������+�������������������������

3) And in some cases, it is ignoring a lot of errors [solved by #4064 ]

/zowe/bin/zwe start -c 'FILE(./zowe.yaml)' -l /logs/zwe-start-20241030T075233.log

mkdir: FSUM6404 directory "/logs/zwe-start-20241030T075233.log": EDC5117I File exists. (errno2=0x053B006C)
touch: file "/logs/zwe-start-20241030T075233.log/zwe-start-20241030T080058.log": EDC5135I Not a directory. (errno2=0x0594003C)
chmod: FSUM6180 file "/logs/zwe-start-20241030T075233.log/zwe-start-20241030T080058.log": EDC5135I Not a directory. (errno2=0x0594003C)
WARNING: cannot write to /logs/zwe-start-20241030T075233.log/zwe-start-20241030T080058.log
...
WARNING: cannot write to /logs/zwe-start-20241030T075233.log/zwe-start-20241030T080058.log
Temporary directory '/tmp/.zweenv-5880' created.
Zowe will remove it on success, but if zwe exits with a non-zero code manual cleanup would be needed.
===============================================================================
ERROR: fileExists path=/logs/zwe-start-20241030T075233.log/zwe-start-20241030T080058.log, err=135
...
ERROR: fileExists path=/logs/zwe-start-20241030T075233.log/zwe-start-20241030T080058.log, err=135
InternalError: stack overflow
    at fileExists (/zowe/bin/libs/fs:205)
    at writeLog (/zowe/bin/libs/common:119)
    at printRawMessage (/zowe/bin/libs/common:157)
    at printError (/zowe/bin/libs/common:166)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working zwe
Projects
None yet
1 participant