ERROR Can't write Worker-NodeID-1.pid':

Moderator: crythias

Locked
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

Hello wong,

i have error like this in my system log

  • Problem 1

Code: Select all

Thu Sep 23 08:09:11 2021 (Asia/Jakarta)	error	OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-23	Can't write '/opt/otrs/var/run/Daemon/Scheduler/Worker-NodeID-1.pid':
Thu Sep 23 06:57:46 2021 (Asia/Jakarta)	error	OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-23	Can't write '/opt/otrs/var/run/Daemon/Scheduler/Worker-NodeID-1.pid':
Thu Sep 23 03:10:13 2021 (Asia/Jakarta)	error	OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker-23	Can't write '/opt/otrs/var/run/Daemon/Scheduler/Worker-NodeID-1.pid':
  • Problem 2

Code: Select all

Thu Sep 16 20:10:04 2021 (Asia/Jakarta)	error	OTRS-CGI-23	No such dynamic field "TicketCalendarEndTime" (or it is inactive)
first problem that cant write PID file, iwas checked that directory permission and it was ok

Code: Select all

4.0K drwxrwsr-x 2 otrs www-data 4.0K Sep 23 14:16 Scheduler
the second problem im just didnt know where i should check.

any sugestion wong? thank you
---
ati ati kepatil memiaw :D
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by skullz »

1. Try to rerun otrs.SetPermissions.pl script

2. Look like you have enabled EventTicketCalendar widget which are required the dynamic field datetime

- TicketCalendarStartTime
- TicketCalendarEndTime

Make sure these field exist or disabled the widget if you dont need it.

Good luck
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

skullz wrote: 24 Sep 2021, 02:26 1. Try to rerun otrs.SetPermissions.pl script

2. Look like you have enabled EventTicketCalendar widget which are required the dynamic field datetime

- TicketCalendarStartTime
- TicketCalendarEndTime

Make sure these field exist or disabled the widget if you dont need it.

Good luck
Worth to try, i was trying

1. Seems success, but need monitoring for a few days make sure error dissapears

Code: Select all

root@blackmamba:/opt/otrs/bin# ./otrs.SetPermissions.pl                                                   │
Setting permissions on /opt/otrs                                                                          │
root@blackmamba:/opt/otrs/bin#
2. Yes was disabled the event widget, hope error was gone.

Many thanks wong.
---
ati ati kepatil memiaw :D
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

skullz wrote: 24 Sep 2021, 02:26 1. Try to rerun otrs.SetPermissions.pl script

2. Look like you have enabled EventTicketCalendar widget which are required the dynamic field datetime

- TicketCalendarStartTime
- TicketCalendarEndTime

Make sure these field exist or disabled the widget if you dont need it.

Good luck
ahh error still appearing wong, im just desperate.. please help :(

Image
---
ati ati kepatil memiaw :D
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by skullz »

1. Check first whether webserver running as otrs.

If not, run is as 'otrs' user instead of default user.


2. If still happening,

Check system configuration for Daemon::PID::Path if it activated.

By default, the setting is disabled.
If you don't need it, disabled it or try to change pid directory to somewhere else.

**And make sure stop the Daemon 1st before change and apply this setting.


Perhaps others can shed some light.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

skullz wrote: 27 Sep 2021, 17:02 1. Check first whether webserver running as otrs.

If not, run is as 'otrs' user instead of default user.


2. If still happening,

Check system configuration for Daemon::PID::Path if it activated.

By default, the setting is disabled.
If you don't need it, disabled it or try to change pid directory to somewhere else.

**And make sure stop the Daemon 1st before change and apply this setting.


Perhaps others can shed some light.
Thank you for reply wong, i was make sure everything as your command and error stills appears

1. here for ps -aux | grep otrs

Code: Select all

otrs      394189  0.0  0.3  65232 15448 ?        S    Jan27 291:51 perl ./otrs.Daemon.pl start
otrs      570433  0.0  0.2  65204 11808 ?        S    Jan28 290:06 perl bin/otrs.Daemon.pl start
otrs     3112142  0.0  1.1 244052 45476 ?        S    06:40   0:00 /usr/sbin/apache2 -k start
otrs     3112143  0.0  1.1 244060 45472 ?        S    06:40   0:00 /usr/sbin/apache2 -k start
otrs     3112144  0.0  1.1 243972 45476 ?        S    06:40   0:00 /usr/sbin/apache2 -k start
otrs     3112145  0.0  1.1 244060 45472 ?        S    06:40   0:00 /usr/sbin/apache2 -k start
otrs     3119421  0.0  1.1 244060 45480 ?        S    06:57   0:00 /usr/sbin/apache2 -k start
otrs     3119546  0.0  1.1 243988 45484 ?        S    06:57   0:00 /usr/sbin/apache2 -k start
otrs     3212521  0.0  1.1 244092 45844 ?        S    11:12   0:00 /usr/sbin/apache2 -k start
otrs     3212523  0.0  1.1 243972 45848 ?        S    11:12   0:00 /usr/sbin/apache2 -k start
otrs     3212524  0.0  1.1 243980 45848 ?        S    11:12   0:00 /usr/sbin/apache2 -k start
otrs     3212525  0.0  1.1 243972 45848 ?        S    11:12   0:00 /usr/sbin/apache2 -k start
systemd+ 3472687  0.0  0.2 214848 10100 ?        Ss   22:51   0:00 postgres: otrs OTRSDB xxxxx (52296) idle
systemd+ 3472735  0.0  0.4 215576 16248 ?        Ss   22:52   0:00 postgres: otrs OTRSDB xxxxx (52302) idle
otrs     3478061  0.3  0.9  86804 37924 ?        S    23:11   0:07 perl ./otrs.Daemon.pl start
otrs     3478483  0.3  0.9  86696 37836 ?        S    23:13   0:07 perl ./otrs.Daemon.pl start
otrs     3479967  0.3  0.9  86712 37880 ?        S    23:16   0:06 perl bin/otrs.Daemon.pl start
otrs     3480315  0.0  1.0  92368 42876 ?        S    23:18   0:00 perl bin/otrs.Daemon.pl start
systemd+ 3480316  0.0  0.3 214992 14612 ?        Ss   23:18   0:00 postgres: otrs OTRS_DB_DO xxxxx (56286) idle
otrs     3480318  0.0  1.0  92452 42976 ?        S    23:18   0:00 perl ./otrs.Daemon.pl start
systemd+ 3480319  0.0  0.3 215076 15728 ?        Ss   23:18   0:00 postgres: otrs OTRSDB xxxxx (56288) idle
otrs     3480321  0.0  1.0  92452 43016 ?        S    23:18   0:00 perl ./otrs.Daemon.pl start
systemd+ 3480322  0.0  0.3 215076 15728 ?        Ss   23:18   0:00 postgres: otrs OTRSDB xxxxx (57338) idle
systemd+ 3481958  0.0  0.4 215576 18920 ?        Ss   23:23   0:00 postgres: otrs OTRSDB xxxxx (52826) idle
systemd+ 3485292  0.1  0.3 215088 15864 ?        Ss   23:30   0:01 postgres: otrs OTRSDB xxxxx (52962) idle
otrs     3485958  0.1  0.9  88032 37904 ?        S    23:32   0:00 perl bin/otrs.Daemon.pl start
systemd+ 3485959  0.0  0.3 214992 14860 ?        Ss   23:32   0:00 postgres: otrs OTRS_DB_DO xxxxx (33556) idle
otrs     3485960  0.1  0.9  88016 37984 ?        S    23:32   0:01 perl ./otrs.Daemon.pl start
systemd+ 3485961  0.0  0.3 214992 14776 ?        Ss   23:32   0:00 postgres: otrs OTRSDB xxxxx (33558) idle
otrs     3485980  0.1  0.9  87992 38076 ?        S    23:32   0:00 perl ./otrs.Daemon.pl start
systemd+ 3485981  0.0  0.3 214992 14776 ?        Ss   23:32   0:00 postgres: otrs OTRSDB xxxxx (34610) idle
otrs     3486286  0.1  1.0  87932 43428 ?        S    23:33   0:00 perl ./otrs.Daemon.pl start
systemd+ 3486287  0.0  0.4 215508 19204 ?        Ss   23:33   0:00 postgres: otrs OTRSDB xxxxx (33866) idle
otrs     3487539  0.1  0.9  87068 37436 ?        S    23:36   0:00 perl ./otrs.Daemon.pl start
systemd+ 3487541  0.0  0.4 215056 17016 ?        Ss   23:36   0:00 postgres: otrs OTRSDB xxxxx (36158) idle
otrs     3487549  0.1  0.9  87112 37608 ?        S    23:36   0:00 perl bin/otrs.Daemon.pl start
systemd+ 3487550  0.0  0.4 215508 16548 ?        Ss   23:36   0:00 postgres: otrs OTRS_DB_DO xxxxx (35120) idle
otrs     3490750  0.3  1.2  99256 49896 ?        S    23:44   0:00 perl bin/otrs.Daemon.pl start
systemd+ 3490751  0.0  0.2 214848 10064 ?        Ss   23:44   0:00 postgres: otrs OTRS_DB_DO xxxxx (38226) idle
systemd+ 3491021  0.0  0.3 215052 15084 ?        Ss   23:45   0:00 postgres: otrs OTRSDB xxxxx (53204) idle
otrs     3491408  2.7  1.1  97676 48164 ?        S    23:45   0:00 perl ./otrs.Daemon.pl start
otrs     3491425  3.0  1.1  97588 47876 ?        S    23:45   0:00 perl ./otrs.Daemon.pl start
systemd+ 3491428  0.0  0.2 214848 10100 ?        Ss   23:45   0:00 postgres: otrs OTRSDB xxxxx (39820) idle
systemd+ 3491446  0.0  0.2 214848 10100 ?        Ss   23:45   0:00 postgres: otrs OTRSDB xxxxx (38782) idle
systemd+ 3491454  0.0  0.3 215036 15072 ?        Ss   23:45   0:00 postgres: otrs OTRSDB xxxxx (38798) idle
systemd+ 3491462  0.0  0.2 214848 10000 ?        Ss   23:45   0:00 postgres: otrs OTRS_DB_DO xxxxx (38814) idle
systemd+ 3491464  0.0  0.3 215044 15264 ?        Ss   23:45   0:00 postgres: otrs OTRSDB xxxxx (39862) idle
root     3491466  0.0  0.0   8160  2336 pts/2    S+   23:45   0:00 grep --color=auto otrs
otrs     3987767  0.0  0.2  65160 10856 ?        S    Jul22  81:36 perl ./otrs.Daemon.pl start
root     4001927  0.0  0.0  10112  1240 pts/8    S    Jul22   0:00 su -s /bin/bash otrs
otrs     4001928  0.0  0.0   8960  1768 pts/8    S+   Jul22   0:00 bash
root     4007919  0.0  0.0  10112  1152 pts/14   S    Jul22   0:00 su -s /bin/bash otrs
otrs     4007920  0.0  0.0   8960  1424 pts/14   S    Jul22   0:00 bash
otrs     4076123  0.0  0.0   7440  1288 pts/14   S+   Jul22   0:00 more -2
2. and also Daemon::PID::Path was disabled, nothing changes for that config.

so confuse. :shock: :? :?
---
ati ati kepatil memiaw :D
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by skullz »

Did you try stop and start back daemon 1st?

Code: Select all

otrs@shell > bin/otrs.Daemon.pl stop
otrs@shell > bin/otrs.Daemon.pl start
A
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
root
Administrator
Posts: 4243
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by root »

Hi,

There are way to many daemons in the process list for me.

I'd try to stop them ALL first and have the daemon start via the cron job.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

root wrote: 30 Sep 2021, 10:44 Hi,

There are way to many daemons in the process list for me.

I'd try to stop them ALL first and have the daemon start via the cron job.

- Roy
i was try to stop daemon and it show success, but when i was try

Code: Select all

ps -aux | grep Daemon
it still show daemon list.

its no luck :(
---
ati ati kepatil memiaw :D
root
Administrator
Posts: 4243
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by root »

Hi,

Just kill them or hire a Linux admin to do this.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

root wrote: 30 Sep 2021, 13:06 Hi,

Just kill them or hire a Linux admin to do this.

- Roy
hi boss, a friends from a friends was help me to kill otrs daemon, seems its success, appears a banner with message like "daemon not running" in top of view of otrs agent page.

and i and friends from a friends runing otrs daemon again. and its start so many daemon proccess too

Code: Select all

otrs     4064578  0.0  1.3  65064 53600 pts/6    S    21:47   0:00 perl ./otrs.Daemon.pl start
otrs     4064579  0.2  1.7  87520 69132 pts/6    S    21:47   0:00 perl ./otrs.Daemon.pl start
otrs     4064580  0.2  1.6  86856 68200 pts/6    S    21:47   0:00 perl ./otrs.Daemon.pl start
otrs     4064581  0.1  1.8  92360 73804 pts/6    S    21:47   0:00 perl ./otrs.Daemon.pl start
otrs     4064582  0.4  1.6  86856 68384 pts/6    S    21:47   0:00 perl ./otrs.Daemon.pl start
otrs     4064583  0.2  2.0  99192 80656 pts/6    S    21:47   0:00 perl ./otrs.Daemon.pl start
its that normal boss ?
---
ati ati kepatil memiaw :D
wurzel
Znuny guru
Posts: 3272
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by wurzel »

Hi,

Daemon starts minimum 5 processes. here is mine

Code: Select all

  
  22693 ?        S      0:00 perl /opt/otrs/bin/otrs.Daemon.pl start
  22696 ?        S      0:00 perl /opt/otrs/bin/otrs.Daemon.pl start
  22699 ?        S      0:00 perl /opt/otrs/bin/otrs.Daemon.pl start
  22704 ?        S      0:00 perl /opt/otrs/bin/otrs.Daemon.pl start
  22705 ?        S      0:00 perl /opt/otrs/bin/otrs.Daemon.pl start
Your output should be like this

Code: Select all

otrs@server:~$ /opt/otrs/bin/otrs.Console.pl Maint::Daemon::List
Listing system daemons...
  SchedulerCronTaskManager
  SchedulerFutureTaskManager
  SchedulerGenericAgentTaskManager
  SchedulerTaskWorker
  SystemConfigurationSyncManager
Done.
and your daemon status

Code: Select all

otrs@server:~$ /opt/otrs/bin/otrs.Daemon.pl status

Manage the OTRS daemon process.

Daemon running
so finally it seems to be fine.

kind regards
Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

hi wong,

thank you for your reply.

heres my output.

Code: Select all

$ /opt/otrs/bin/otrs.Console.pl Maint::Daemon::List
Listing system daemons...
  SchedulerCronTaskManager
  SchedulerFutureTaskManager
  SchedulerGenericAgentTaskManager
  SchedulerTaskWorker
  SystemConfigurationSyncManager
Done.
$ ps -aux | grep Daemon
otrs     4064578  0.0  1.3  65064 53932 pts/6    S    Sep30   0:34 perl ./otrs.Daemon.pl start
otrs     4086256  0.0  1.8  92356 73864 pts/6    S    08:47   0:00 perl ./otrs.Daemon.pl start
otrs     4086279  0.1  1.7  88996 70500 pts/6    S    08:48   0:03 perl ./otrs.Daemon.pl start
otrs     4086301  0.1  2.0  99312 80848 pts/6    S    08:48   0:04 perl ./otrs.Daemon.pl start
otrs     4086307  0.1  1.8  93200 74696 pts/6    S    08:48   0:03 perl ./otrs.Daemon.pl start
otrs     4086310  0.1  1.6  86856 68404 pts/6    S    08:48   0:05 perl ./otrs.Daemon.pl start
we can se its 5 daemon running if we from otrs.Console.pl Maint::Daemon::List

but why we have 6 daemon list in proccess from ps - aux.
it is normal ?

until today i didnt see the errors, the last error is on Thu Sep 30 20:14:14 2021 (Asia/Jakarta), when i see error again, i will update then.

thank you
---
ati ati kepatil memiaw :D
hermawan
Znuny newbie
Posts: 30
Joined: 12 Apr 2017, 12:10
Znuny Version: 6.4.5
Real Name: Hermawan Al-Faruq

Re: ERROR Can't write Worker-NodeID-1.pid':

Post by hermawan »

Voila wong!

after monitoring for 2 - 3 days. no more errors appearing.

let me summarized how to troubleshoot when someone have an same errors and googling for solution and accidentaly found this thread. lol

Code: Select all

1. set your otrs permission re- run otrs.SetPermissions.pl script
2. make sure otrs running as otrs user
3. stop all otrs daemon using bin/otrs.Daemon.pl stop (should execute as 'otrs') users
4. or you can perform ps -aux | grep otrs.Daemon and kill 'em all
5. start daemon again using bin/otrs.Daemon.pl start (should execute as 'otrs') users
Thank you all, god bless!
---
ati ati kepatil memiaw :D
Locked