Send netdisco-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Errors after migration/upgrade (Ricardo Stella)
2. Re: Errors after migration/upgrade (Oliver Gorwits)
3. Re: Errors after migration/upgrade (Ricardo Stella)
--- Begin Message ---
I had to upgrade an instance of netdisco running on an old version of
Redhat. Basically, I deployed a new VM on Redhat 7 and migrated the
database.
Everything seems to be there, however I noticed the following errors on the
log file every time a job runs. Any ideas?
[4555] 2020-01-23 19:11:42 error bless( {'msg' => '{UNKNOWN}: Can\'t call
method "update" on an undefined value at
/home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
line 274
'}, 'DBIx::Class::Exception' )
[4562] 2020-01-23 19:12:13 error bless( {'msg' => '{UNKNOWN}: Can\'t call
method "update" on an undefined value at
/home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
line 274
'}, 'DBIx::Class::Exception' )
[4573] 2020-01-23 19:12:15 error bless( {'msg' => '{UNKNOWN}: Can\'t call
method "update" on an undefined value at
/home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
line 274
--
°(((=((===°°°(((================================================
--- End Message ---
--- Begin Message ---
Hi Ricardo
Assuming you did run netdisco-deploy and have an up to date DB schema and
are not running multiple backends, I would do the following:
1. stop netdisco-backend
2. run netdisco-do psql -e 'delete from admin'
3. restart netdisco-backend
And see if that makes a difference. I recall we had similar report in the
past but have not been able to reproduce to investigate.
regards,
oliver.
On Thu, 23 Jan 2020 at 19:17, Ricardo Stella <[email protected]> wrote:
>
> I had to upgrade an instance of netdisco running on an old version of
> Redhat. Basically, I deployed a new VM on Redhat 7 and migrated the
> database.
>
> Everything seems to be there, however I noticed the following errors on
> the log file every time a job runs. Any ideas?
>
> [4555] 2020-01-23 19:11:42 error bless( {'msg' => '{UNKNOWN}: Can\'t call
> method "update" on an undefined value at
> /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
> 267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
> line 274
> '}, 'DBIx::Class::Exception' )
> [4562] 2020-01-23 19:12:13 error bless( {'msg' => '{UNKNOWN}: Can\'t call
> method "update" on an undefined value at
> /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
> 267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
> line 274
> '}, 'DBIx::Class::Exception' )
> [4573] 2020-01-23 19:12:15 error bless( {'msg' => '{UNKNOWN}: Can\'t call
> method "update" on an undefined value at
> /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
> 267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
> line 274
>
> --
> °(((=((===°°°(((================================================
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
--- End Message ---
--- Begin Message ---
Thanks - That seemed to work, but now see another error:
Use of uninitialized value $op in pattern match (m//) at
/home/netdisco/perl5/lib/perl5/SQL/Abstract.pm line 427.
[8654] 2020-01-23 22:30:05 error bless( {'msg' => 'SQL::Abstract::puke():
[SQL::Abstract::__ANON__] Fatal: Operator calls in update must be in the
form { -op => $arg } at
/home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line 267
'}, 'DBIx::Class::Exception' )
Thanks in advance.
On Thu, Jan 23, 2020 at 2:51 PM Oliver Gorwits <[email protected]> wrote:
> Hi Ricardo
>
> Assuming you did run netdisco-deploy and have an up to date DB schema and
> are not running multiple backends, I would do the following:
>
> 1. stop netdisco-backend
> 2. run netdisco-do psql -e 'delete from admin'
> 3. restart netdisco-backend
>
> And see if that makes a difference. I recall we had similar report in the
> past but have not been able to reproduce to investigate.
>
> regards,
> oliver.
>
> On Thu, 23 Jan 2020 at 19:17, Ricardo Stella <[email protected]> wrote:
>
>>
>> I had to upgrade an instance of netdisco running on an old version of
>> Redhat. Basically, I deployed a new VM on Redhat 7 and migrated the
>> database.
>>
>> Everything seems to be there, however I noticed the following errors on
>> the log file every time a job runs. Any ideas?
>>
>> [4555] 2020-01-23 19:11:42 error bless( {'msg' => '{UNKNOWN}: Can\'t call
>> method "update" on an undefined value at
>> /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
>> 267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
>> line 274
>> '}, 'DBIx::Class::Exception' )
>> [4562] 2020-01-23 19:12:13 error bless( {'msg' => '{UNKNOWN}: Can\'t call
>> method "update" on an undefined value at
>> /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
>> 267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
>> line 274
>> '}, 'DBIx::Class::Exception' )
>> [4573] 2020-01-23 19:12:15 error bless( {'msg' => '{UNKNOWN}: Can\'t call
>> method "update" on an undefined value at
>> /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm line
>> 267. at /home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
>> line 274
>>
>> --
>> °(((=((===°°°(((================================================
>> _______________________________________________
>> Netdisco mailing list
>> [email protected]
>> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
>
--
°(((=((===°°°(((================================================
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users