Lifecycle is missing in %Lifecycles config

Dear all
i do an upgrade of our RT system from 5.0.1 to 5.0.6 version. That’s run like a charm.
I got a warning during the generation of the index (“rt-fulltext-indexer”) that shows the folowwing:

[180182] [Fri May 31 10:32:07 2024] [warning]: Lifecycle is missing in %Lifecycles config at /opt/rt5/sbin//lib/RT/Lifecycle.pm line 648, line 2112. (/opt/rt5/sbin/…/lib/RT/Lifecycle.pm:648)

That’s seems to be related to a null camp in a Lifecycles camp in the databases. I’ve read the documentation about upgrading and don’t see anything about that. Particulary that in my ols verson of RT, generating the index don’t generate thsi type of warning.

Hope that someone can explain/resolve this warning.

Regards

We have released RT 5.0.7 beta 1 which should fix this issue. We’re planning to do a final RT 5.0.7 release once we receive feedback from testers, so it would be great to hear if it works for you.

I install the 5.0.7beta 1 version on our server. This version keeps to generate the warning during the full index:

54773] [Tue Jun 4 12:52:02 2024] [warning]: Lifecycle is missing in %Lifecycles config at /opt/rt5/sbin//lib/RT/Lifecycle.pm line 648, line 2112. (/opt/rt5/sbin/…/lib/RT/Lifecycle.pm:648)

I’m ready to test new version as soon as possible.

Thank’s a lot!

Regards

RT 5.0.7beta 1 is the new version, so the issue should be fixed there. Do you see that warning when running RT itself or any other scripts in sbin, like sbin/rt-clean-sessions or sbin/rt-attributes-viewer? Can you tell which lifecycle is missing? You could go to Admin > Tools > System Configuration and check the loaded %Lifecycles displayed there.

Dear Jim

Thank’s to respond me.

The warning is generated when i run the full index command:
rt-fulltext-indexer

As i wrote in my first email, i upgarde from 5.0.1 to 5.0.6 (5.0.7beta1
now). And in the old version, this warning was not generated making the
index.

The problem is that seem to be a lifecyle missing: The code is

warn “Lifecycle $name is missing in %Lifecycles config”;

and in this case: $name is null “” .

[warning]: Lifecycle is missing in %Lifecycles config

In the system configuration, i’v got a big descreiption of lifecycles…
Do you want it?

Regards

You don’t necessarily need to post it. If you look at the lifecycles, is there one with an empty string instead of a name? That is, for the key, instead of ‘default’ =>, do you have one that looks like ‘’ =>? If so, that’s what the warning is telling you.

Dear Jim

Before all, as i do for some times before, i do install the new version
of RT in a separate server, to check if the upgrade will run without
problem. And when all is ready, i do the upgrade in the production server.

That’s why o could compare the 2 version of configuration, as i show you
in the folowwing:

In my test version (5.0.7beta1), i have some line as you indicate me:

‘approvals’ => {
‘transitions’ => {
‘resolved’ => [
‘new’,
‘open’,
‘stalled’,
‘rejected’,
‘deleted’
],

…/…

                                   '' => [
                                           'new',
                                           'open',
                                           'resolved'
                                         ],
                                   'rejected' => [
                                                   'new',
                                                   'open',
                                                   'stalled',
                                                   'resolved',
                                                   'deleted'
                                                 ],

But in the production server (5.0.1), the configuration is similar :

{
‘approvals’ => {
‘actions’ => [
‘new → open’,
{
‘update’ => ‘Respond’,
‘label’ => ‘Open It’
},

…/…

                'transitions' => {
                                   '' => [
                                           'new',
                                           'open',
                                           'resolved'
                                         ],

Is the more recent version more strict during the checking of the
Lifecycles?

Thank’s a lot.

Regards

It’s OK for a transition to have a blank entry. The warning is about the lifecycle name, which comes from the entry at the very top of each separate lifecycle. So a default RT would have ‘default’, ‘assets’, and ‘approvals’. That warning is saying it’s finding a lifecycle without a name at that level.

The warning itself is not new, it’s been there since at least RT 4.2. So it’s strange that you would see it now.

Dear Jim

That’s why i very surprise for why is this upgrade sending me this
warning. As i use Rt for more than twelve years, since version 4.0.5!

I send you all of the lycicles configuration. It’s very similar a the
5.0.1 version, and I could not see this typoe of tipo “” => as you
mention me befire. Maybe i’m blind…

Thank’s a lot for your help!

Regards

(Attachment lifecycles-5.0.7beta1.conf is missing)

Dear Jim

That’s why i very surprise for why is this upgrade sending me this
warning. As i use Rt for more than twelve years, since version 4.0.5!

I send you all of the lycicles configuration. It’s very similar a the
5.0.1 version, and I could not see this typoe of tipo “” => as you
mention me befire. Maybe i’m blind…

Thank’s a lot for your help!

Regards

Lifecycles conf:

{
‘default’ => {
‘active’ => [
‘open’,
‘stalled’
],
‘actions’ => [
‘new → open’,
{
‘update’ => ‘Respond’,
‘label’ => ‘Open It’
},
‘new → resolved’,
{
‘label’ => ‘Resolve’,
‘update’ => ‘Comment’
},
‘new → rejected’,
{
‘update’ => ‘Respond’,
‘label’ => ‘Reject’
},
‘new → deleted’,
{
‘label’ => ‘Delete’
},
‘open → stalled’,
{
‘label’ => ‘Stall’,
‘update’ => ‘Comment’
},
‘open → resolved’,
{
‘update’ => ‘Comment’,
‘label’ => ‘Resolve’
},
‘open → rejected’,
{
‘label’ => ‘Reject’,
‘update’ => ‘Respond’
},
‘stalled → open’,
{
‘label’ => ‘Open It’
},
‘resolved → open’,
{
‘label’ => ‘Re-open’,
‘update’ => ‘Comment’
},
‘rejected → open’,
{
‘update’ => ‘Comment’,
‘label’ => ‘Re-open’
},
‘deleted → open’,
{
‘label’ => ‘Undelete’
}
],
‘inactive’ => [
‘resolved’,
‘rejected’,
‘deleted’
],
‘transitions’ => {
‘resolved’ => [
‘new’,
‘open’,
‘stalled’,
‘rejected’,
‘deleted’
],
‘new’ => [
‘open’,
‘stalled’,
‘resolved’,
‘rejected’,
‘deleted’
],
‘open’ => [
‘new’,
‘stalled’,
‘resolved’,
‘rejected’,
‘deleted’
],
‘’ => [
‘new’,
‘open’,
‘resolved’
],
‘rejected’ => [
‘new’,
‘open’,
‘stalled’,
‘resolved’,
‘deleted’
],
‘deleted’ => [
‘new’,
‘open’,
‘stalled’,
‘resolved’,
‘rejected’
],
‘stalled’ => [
‘new’,
‘open’,
‘resolved’,
‘rejected’,
‘deleted’
]
},
‘initial’ => [
‘new’
],
‘rights’ => {
‘* → deleted’ => ‘DeleteTicket’,
‘* → ’ => ‘ModifyTicket’
},
‘defaults’ => {
‘denied’ => ‘rejected’,
‘reminder_on_resolve’ => ‘resolved’,
‘on_create’ => ‘new’,
‘approved’ => ‘open’,
‘reminder_on_open’ => ‘open’
}
},
‘approvals’ => {
‘active’ => [
‘open’,
‘stalled’
],
‘actions’ => [
‘new → open’,
{
‘label’ => ‘Open It’,
‘update’ => ‘Respond’
},
‘new → resolved’,
{
‘update’ => ‘Comment’,
‘label’ => ‘Resolve’
},
‘new → rejected’,
{
‘label’ => ‘Reject’,
‘update’ => ‘Respond’
},
‘new → deleted’,
{
‘label’ => ‘Delete’
},
‘open → stalled’,
{
‘update’ => ‘Comment’,
‘label’ => ‘Stall’
},
‘open → resolved’,
{
‘update’ => ‘Comment’,
‘label’ => ‘Resolve’
},
‘open → rejected’,
{
‘update’ => ‘Respond’,
‘label’ => ‘Reject’
},
‘stalled → open’,
{
‘label’ => ‘Open It’
},
‘resolved → open’,
{
‘label’ => ‘Re-open’,
‘update’ => ‘Comment’
},
‘rejected → open’,
{
‘label’ => ‘Re-open’,
‘update’ => ‘Comment’
},
‘deleted → open’,
{
‘label’ => ‘Undelete’
}
],
‘transitions’ => {
‘stalled’ => [
‘new’,
‘open’,
‘rejected’,
‘resolved’,
‘deleted’
],
‘deleted’ => [
‘new’,
‘open’,
‘stalled’,
‘rejected’,
‘resolved’
],
‘rejected’ => [
‘new’,
‘open’,
‘stalled’,
‘resolved’,
‘deleted’
],
‘’ => [
‘new’,
‘open’,
‘resolved’
],
‘new’ => [
‘open’,
‘stalled’,
‘resolved’,
‘rejected’,
‘deleted’
],
‘open’ => [
‘new’,
‘stalled’,
‘resolved’,
‘rejected’,
‘deleted’
],
‘resolved’ => [
‘new’,
‘open’,
‘stalled’,
‘rejected’,
‘deleted’
]
},
‘inactive’ => [
‘resolved’,
‘rejected’,
‘deleted’
],
‘defaults’ => {
‘reminder_on_resolve’ => ‘resolved’,
‘on_create’ => ‘new’,
‘reminder_on_open’ => ‘open’
},
‘rights’ => {
’ => ‘ModifyTicket’,
→ rejected’ => ‘ModifyTicket’,
‘* → deleted’ => ‘DeleteTicket’
},
‘initial’ => [
‘new’
]
},
‘assets’ => {
‘rights’ => {
‘* → ’ => ‘ModifyAsset’
},
‘defaults’ => {
‘on_create’ => ‘new’
},
‘initial’ => [
‘new’
],
‘type’ => ‘asset’,
‘inactive’ => [
‘recycled’,
‘stolen’,
‘deleted’
],
‘transitions’ => {
‘new’ => [
‘allocated’,
‘in-use’,
‘stolen’,
‘deleted’
],
‘stolen’ => [
‘allocated’
],
‘deleted’ => [
‘allocated’
],
‘recycled’ => [
‘allocated’
],
‘’ => [
‘new’,
‘allocated’,
‘in-use’
],
‘in-use’ => [
‘allocated’,
‘recycled’,
‘stolen’,
‘deleted’
],
‘allocated’ => [
‘in-use’,
‘recycled’,
‘stolen’,
‘deleted’
]
},
‘actions’ => {
→ in-use’ => {
‘label’ => ‘Now in-use’
},
‘* → stolen’ => {
‘label’ => ‘Report
stolen’
},
‘* → allocated’ => {
‘label’ => ‘Allocate’
},
‘* → recycled’ => {
‘label’ => ‘Recycle’
}
},
‘active’ => [
‘allocated’,
‘in-use’
]
}
}

Hi all.
So that’s seems to be a “local” problem, rigth?
Or maybe the error i too obviuos that I can’t see it. But the issue persits…

Hope that you could hep me soon…

Regards

Dear all
As i coment in past emails, my upgrade from 5.0.1 to 5.0.7 generate me a warning about missing lifecycle…
I notice that this warning appear in the web front end, going in the Admin-> Lifecycles->Select , as i show you below:

As i comment before, i’ve just process to an upgrade of the RT. This new version is for check on a test server before doing the upgrade on the production one.

I’ve check carrefuly all of the configuration, and can’t see some ‘’ as name of lifecycle…
I hope that someone could help me soon, as i have to do the upgrade of the producion server in a few days…

Where is my configuration wrong?

Regards!

Hi Jerome, are you using the GUI based config or the files based one and have you got them mixed up?

Dear Garry.
I really don’t know how I have this lifecycle configured. I never modifying this since my using of RT (version 4.0.6 , 2012). Could you be pleased to explain me how I can check this? Sorry to this disturb!

Hi Jerome
Off the top of my head, id start out checking the DB/GUI based config, in Admin → Tools → System Configuration, there’s a history tab there, which may be helpful (or not). It states on the page : “Changes made in the web interface take precedence over customizations in server configuration files. Some core settings can only be changed in configuration files.” So it would be worth having a scan to see how the lifecycles are set here. Otherwise, id guess its a trip to the logs to see where the config is coming from and if either of them hold your mystery “” entry

Oh one other thing. When you list your lifecycles, have you tried ticking the show disabled ones, box, just in case its there

Dear Garry.
First of all thank’s to answer me. I had som health problem that let me out for a time.

I’ve check this history, and there is nothing changed in my site.

What i can understand is why with the “old” version of rt (5.0.1) i don’t have any problem.

In which log shoud i search?

Thank’s a lot!

Dear Garry.

I do this and there is no disabled ones…

Thank’s

Dear Garry

I’ve notice taht this warning is generated during the “make upgrade-database” command, as i show you below:

tEnter RT version you're upgrading from: 5.0.1

Going to apply following upgrades:
* 5.0.2
* 5.0.3
* 5.0.4
* 5.0.5
* 5.0.6

Enter RT version if you want to stop upgrade at some point,
  or leave it blank if you want apply above upgrades: 

IT'S VERY IMPORTANT TO BACK UP BEFORE THIS STEP

Proceed [y/N]:y
Processing 5.0.2
[74995] [Sat Nov  9 01:06:42 2024] [warning]: Lifecycle  is missing in %Lifecycles config at /home/useruusmb/rt-5.0.7/sbin/../lib/RT/Lifecycle.pm line 648, <DATA> line 2112. (/home/useruusmb/rt-5.0.7/sbin/../lib/RT/Lifecycle.pm:648)
Now inserting data.
ype or paste code here

So, that’s seems to be inside the process of upgrade the databases, where some lifecylcle is going to be wrong. if i could know which is this line 2112 in DATA, i could found why this problem…

Hope someone could help me.

Regards

I do a replicate server of my original one, with RT 5.0.1, and Pg database.
And i check that in this version, there is no warning during the fulltext index command.

And when i upgrade at 5.0.2 version, the make upgrade-database is generating this warning.
Who could explain me what is making this command to update the databases?
That’s the ultimate step to get my production server actualized, so i will appreciate any help!

Regards