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

All logs are not displayed and are interrupted in the middle. #8983

Open
y-maruyama opened this issue Mar 7, 2024 · 0 comments
Open

All logs are not displayed and are interrupted in the middle. #8983

y-maruyama opened this issue Mar 7, 2024 · 0 comments

Comments

@y-maruyama
Copy link

Describe the bug
I expected all logs to be output normally, but not all logs are output.

  1. Log output is normal without sleep
  2. If you insert a sleep for 1 second and output the log, up to 30 seconds of log will be output, but when you display the output result again, the log display will be interrupted.

My Rundeck detail

/etc/rundeck/framework.properties:
framework.server.hostname: xxxxxxxxxxxxx
framework.server.name: xxxxxxxxxxxxx
framework.server.port: 4440
framework.server.url: http://localhost:4440
/etc/rundeck/rundeck-config.properties:
grails.serverURL: https://xxxxxxxxxxxxxxxx
SSH Defaults
/etc/rundeck/framework.properties:
framework.ssh.keypath: xxxxxxxxxxxxxxxx
framework.ssh.timeout: 0
framework.ssh.user: rundeck
Datasource
/etc/rundeck/rundeck-config.properties:
dataSource.url: jdbc:mysql://xxxxxxxxxxxxxxxxxxxx/rundeck?autoReconnect=true&useSSL=false
Plugins
/etc/rundeck/rundeck-config.properties:
rundeck.execution.logs.fileStorage: {generateExecutionXml=true, cancelOnStorageFailure=true}
rundeck.execution.logs.fileStorage.cancelOnStorageFailure: true
rundeck.execution.logs.fileStorage.generateExecutionXml: true
rundeck.execution.logs.output: {limitAction=truncate, limit=50000}
rundeck.execution.logs.output.limit: 50000
rundeck.execution.logs.output.limitAction: truncate

  • Rundeck version: 4.8.0
  • install type: rpm
  • OS Name/version: Rocky Linux release 8.8
  • DB Type/version: mysql

To Reproduce

① JOB Workflow Script :Jobs that log successfully

echo "start"
for i in `seq 1 3000`
do
  if [ $((i%100)) -eq 0 ]; then
    echo "$i"
  fi
done

echo "fin"

output

start
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
1800
1900
2000
2100
2200
2300
2400
2500
2600
2700
2800
2900
3000
fin

② JOB with 1 second sleep : Logs up to TotalTime:30s are output
I want it to be output up to fin

echo "start"
for i in `seq 1 3000`
do
  if [ $((i%100)) -eq 0 ]; then
    echo "$i"
    sleep 1
  fi
done

echo "fin"

output

start
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
1800
1900
2000
2100
2200
2300
2400
2500
2600
2700
2800
2900
3000

③ When you reopen the execution log in ②, the log is interrupted until halfway through.
Only logs up to around TotalTime 15s are displayed.

start
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500

Expected behavior
All logs are output from start to fin

Screenshots

① Jobs that log successfully
image

② JOB with 1 second sleep
image

③ When you reopen the execution log in ②
image

Desktop (please complete the following information):

  • OS: windows10
  • Browser: chrome
  • Version 122.0.6261.111

Additional context
/var/lib/rundeck/logs/rundeck/xxx/job/xxxxxx-xxxx-xxxx-xxxx-xxxxxx/rd.log
When I tail rd.log, the output is output to the end, but when I reopen the file, it is cut in the middle.

It was working fine until version 3.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant