Closed daipom closed 1 year ago
Logs from the latest master CI.
We can confirm Fluentd processes doubly launched after systemctl unmask
and systemctl enable
https://github.com/fluent/fluent-package-builder/actions/runs/5618187541/job/15223899262#step:5:662
+ systemctl status --no-pager fluentd
● fluentd.service - fluentd: All in one package of Fluentd
Loaded: loaded (/lib/systemd/system/fluentd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-07-21 04:02:50 UTC; 671ms ago
Docs: https://docs.fluentd.org/
Process: 27585 ExecStart=/opt/fluent/bin/fluentd --log $FLUENT_PACKAGE_LOG_FILE --daemon /var/run/fluent/fluentd.pid $FLUENT_PACKAGE_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 27606 (fluentd)
Tasks: 4 (limit: 2271)
Memory: 84.3M
CGroup: /system.slice/fluentd.service
├─27606 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid
└─27609 /opt/fluent/bin/ruby -Eascii-8bit:ascii-8bit /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid --under-supervisor
Jul 21 04:02:49 vagrant systemd[1]: Starting fluentd: All in one package of Fluentd...
Jul 21 04:02:50 vagrant systemd[1]: Started fluentd: All in one package of Fluentd.
+ systemctl status --no-pager td-agent
● td-agent.service
Loaded: masked (Reason: Unit td-agent.service is masked.)
Active: inactive (dead) since Fri 2023-07-21 04:02:38 UTC; 12s ago
Main PID: 27223 (code=exited, status=0/SUCCESS)
Jul 21 04:02:34 vagrant systemd[1]: Starting td-agent: Fluentd based data collector for Treasure Data...
Jul 21 04:02:35 vagrant systemd[1]: Started td-agent: Fluentd based data collector for Treasure Data.
Jul 21 04:02:37 vagrant systemd[1]: Stopping td-agent: Fluentd based data collector for Treasure Data...
Jul 21 04:02:38 vagrant systemd[1]: td-agent.service: Succeeded.
Jul 21 04:02:38 vagrant systemd[1]: Stopped td-agent: Fluentd based data collector for Treasure Data.
+ sudo systemctl unmask td-agent
Removed /etc/systemd/system/td-agent.service.
+ sudo systemctl enable --now fluentd
Created symlink /etc/systemd/system/td-agent.service → /lib/systemd/system/fluentd.service.
+ systemctl status --no-pager td-agent
● fluentd.service - fluentd: All in one package of Fluentd
Loaded: loaded (/lib/systemd/system/fluentd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-07-21 04:02:52 UTC; 8ms ago
Docs: https://docs.fluentd.org/
Process: 27770 ExecStart=/opt/fluent/bin/fluentd --log $FLUENT_PACKAGE_LOG_FILE --daemon /var/run/fluent/fluentd.pid $FLUENT_PACKAGE_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 27776 (fluentd)
Tasks: 14 (limit: 2271)
Memory: 160.6M
CGroup: /system.slice/fluentd.service
├─27606 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid
├─27609 /opt/fluent/bin/ruby -Eascii-8bit:ascii-8bit /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid --under-supervisor
├─27776 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid
└─27779 /opt/fluent/bin/ruby -Eascii-8bit:ascii-8bit /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid --under-supervisor
Jul 21 04:02:51 vagrant systemd[1]: Starting fluentd: All in one package of Fluentd...
Jul 21 04:02:52 vagrant systemd[1]: Started fluentd: All in one package of Fluentd.
+ systemctl status --no-pager fluentd
● fluentd.service - fluentd: All in one package of Fluentd
Loaded: loaded (/lib/systemd/system/fluentd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-07-21 04:02:52 UTC; 16ms ago
Docs: https://docs.fluentd.org/
Process: 27770 ExecStart=/opt/fluent/bin/fluentd --log $FLUENT_PACKAGE_LOG_FILE --daemon /var/run/fluent/fluentd.pid $FLUENT_PACKAGE_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 27776 (fluentd)
Tasks: 14 (limit: 2271)
Memory: 162.1M
CGroup: /system.slice/fluentd.service
├─27606 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid
├─27609 /opt/fluent/bin/ruby -Eascii-8bit:ascii-8bit /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid --under-supervisor
├─27776 /opt/fluent/bin/ruby /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid
└─27779 /opt/fluent/bin/ruby -Eascii-8bit:ascii-8bit /opt/fluent/bin/fluentd --log /var/log/fluent/td-agent.log --daemon /var/run/fluent/fluentd.pid --under-supervisor
Jul 21 04:02:51 vagrant systemd[1]: Starting fluentd: All in one package of Fluentd...
Jul 21 04:02:52 vagrant systemd[1]: Started fluentd: All in one package of Fluentd.
I will close this PR after #539 is merged.
- deb: prevent Fluentd from running doubly #539 will resolve this problem.
I will close this PR after #539 is merged.
I think this can fail in the deb test, and it makes #536 unstable.
Fluentd sometimes runs doubly.