Error with --force-pid Argument in Maint::Ticket::FulltextIndexRebuildWorker

Moderator: crythias

Locked
orucov47
Znuny newbie
Posts: 2
Joined: 14 Feb 2025, 08:34
Znuny Version: 6.0.40
Real Name: Tofig Orujov
Company: ADPU

Error with --force-pid Argument in Maint::Ticket::FulltextIndexRebuildWorker

Post by orucov47 »

Hello OTRS Community,

We are using OTRS version 6.0.40. At regular intervals (every hour, 60 tickets are being created), error tickets are being generated with the following content:

Code: Select all

Error: found unknown arguments on the command line (' --force-pid').

Rebuild the article search index for needed articles.

Usage:
 otrs.Console.pl Maint::Ticket::FulltextIndexRebuildWorker [--children ...] [--limit ...]
[--force-pid]

Options:
 [--children ...]               - Specify the number of child processes to be used for
indexing (default: 4, maximum: 20).
 [--limit ...]                  - Maximum number of ArticleIDs to process (default:
20000).
 [--force-pid]                  - Start even if another process is still registered in the
database.
 [--help]                       - Display help for this command.
 [--no-ansi]                    - Do not perform ANSI terminal output coloring.
 [--quiet]                      - Suppress informative output, only retain error messages.
I have tried the solutions mentioned in previous posts, but they did not help.

I added the new parameter --force-pid to the ArticleSearchIndexRebuild in System Configuration.

I ran the following command both as the otrs user and as root:

Code: Select all

bin/otrs.Console.pl Maint::Ticket::FulltextIndexRebuildWorker --force-pid
However, the issue persists.

Could you please assist with this issue?

Is the --force-pid parameter supported in this version?

How can I prevent these tickets from being created automatically?

Thank you in advance for your help!
Johannes
Moderator
Posts: 425
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Error with --force-pid Argument in Maint::Ticket::FulltextIndexRebuildWorker

Post by Johannes »

Hi,
the issue is more with the cron daemon config.
Check your sysconfig:
Admin>Sysconfig>Search for
Daemon::SchedulerCronTaskManager::Task###ArticleSearchIndexRebuild

Hit enter and reset the entry.
Then stop your daemon (bin/otrs.Daemon.pl stop) and wait for it to restart.
The messages should then be gone.

Regards
Johannes
orucov47
Znuny newbie
Posts: 2
Joined: 14 Feb 2025, 08:34
Znuny Version: 6.0.40
Real Name: Tofig Orujov
Company: ADPU

Re: Error with --force-pid Argument in Maint::Ticket::FulltextIndexRebuildWorker

Post by orucov47 »

Johannes wrote: 14 Feb 2025, 11:32 Hi,
the issue is more with the cron daemon config.
Check your sysconfig:
Admin>Sysconfig>Search for
Daemon::SchedulerCronTaskManager::Task###ArticleSearchIndexRebuild

Hit enter and reset the entry.
Then stop your daemon (bin/otrs.Daemon.pl stop) and wait for it to restart.
The messages should then be gone.

Regards
Johannes
It worked, I think.
Thank you, Johannes. I’ve been struggling with this for almost 3 days.
Locked