ERROR: Backend server is not running!

Moeketsi Maphoi mmaphoi at nic.ls
Fri Nov 9 09:12:40 CET 2018


Thank you much for the information, really helps a lot.

Regards,
Moeketsi Maphoi

-----Original Message-----
From: fred-users <fred-users-bounces at lists.nic.cz> On Behalf Of Jiri Sadek
Sent: Tuesday, November 6, 2018 11:11 AM
To: fred-users at lists.nic.cz
Subject: Re: ERROR: Backend server is not running!

It seems you are running newer FRED packages versions without proper db upgrade. You are missing new types of public request (used for sending a e-mail to user about personal info stored in registry)

I guess (from the error message) that you are trying to upgrade to FRED
2.37.0 version - there are pretty major changes to privacy policy (disclose flags) handling which are not yet configurable - https://fred.nic.cz/documentation/html/ReleaseNotes/Upgrade-2-37.html. 
Configuration of disclose flags policy is planned to FRED 2.38.0 which should be released before 2019.

Anyway this error should be fixed with running following 3 queries
https://github.com/CZ-NIC/fred-db/blob/master/upgrades/2.33.1-2.34.0.sql#L10-L15
or downgrading packages to previous versions.

If you are upgrading I would recommend to check and apply others changes to db schema in that version as well (with some tweaks to templates translations if needed) or you can encounter another errors.

You can check database model version with following query (you should apply all upgrade scripts between old and new version):
select val from enum_parameters where name = 'model_version';

In general I would recommend to read release notes before upgrading - https://fred.nic.cz/documentation/html/ReleaseNotes/index.html. There are some advices and considerations about upgrading to newer versions.

Regards,
Jiri

On 11/6/18 9:10 AM, Moeketsi Maphoi wrote:
> Running the long command, I get the following error;
> 
> Error: FactoryHaveSubsetOfKeysChecker: unable to find this keys from 
> FACTORY in required_keys: personalinfo_auto_pif, 
> personalinfo_email_pif, personalinfo_post_pif
> 
> Which when searching around I found that it might have something to do with processing public requests. I'm not sure how to sort it out. Any ideas?
> 
> Thanks,
> Moeketsi Maphoi
> 
> -----Original Message-----
> From: fred-users <fred-users-bounces at lists.nic.cz> On Behalf Of Jiri 
> Sadek
> Sent: Monday, November 5, 2018 10:13 AM
> To: fred-users at lists.nic.cz
> Subject: Re: ERROR: Backend server is not running!
> 
> Look into systemd service file /lib/systemd/system/fred-adifd.service
> and try to run command in `ExecStart=` (with proper user) manually on command line. It should be something like:
> 
> /usr/sbin/fred-adifd -ORBendPoint giop:tcp::2222 -ORBnativeCharCodeSet
> UTF-8 --config /etc/fred/fred-adifd.conf
> 
> It might give you more info about error. Also look into fred-adifd log (path specified in fred-adifd.conf).
> 
> Regards,
> Jiri
> 
> On 11/2/18 1:42 PM, Moeketsi Maphoi wrote:
>> If the backend server was refusing to run at all, could it have something to do with CORBA technology?
>>
>> I have that problem with fred-adifd service on a test server I made recently. Restarting does't seem to do the trick, it just can't start while other FRED services are running.
>>
>> Regards,
>> Moeketsi
>>
>> -----Original Message-----
>> From: Jaromir Talir <jaromir.talir at nic.cz>
>> Sent: Thursday, November 1, 2018 1:39 PM
>> To: Moeketsi Maphoi <mmaphoi at nic.ls>
>> Cc: fred-users at lists.nic.cz
>> Subject: Re: ERROR: Backend server is not running!
>>
>> This is hard to say. The communication mediated through CORBA technology is quite complex and the glitch could be in many components.
>> Maybe you hit some bug in this particular service triggered by high uptime. You may try to read logs for fred-adifd if you will see something from last time this service responded to CORBA calls.
>>
>> Regards,
>> Jaromir
>>
>> On Thu, 2018-11-01 at 07:29 +0200, Moeketsi Maphoi wrote:
>>> I had to wait to wait till off peak to restart the services, just to 
>>> be safe.
>>>
>>> It seems that’s all it needed, the error is cleared and daphne works 
>>> fine now.
>>>
>>> I wonder what could've caused the communication cut between the 
>>> adifd and webadmin services.
>>>
>>> Thanks,
>>> Moeketsi Maphoi
>>>
>>> -----Original Message-----
>>> From: Moeketsi Maphoi <mmaphoi at nic.ls>
>>> Sent: Wednesday, October 31, 2018 4:31 PM
>>> To: 'Jaromir Talir' <jaromir.talir at nic.cz>
>>> Cc: 'fred-users at lists.nic.cz' <fred-users at lists.nic.cz>
>>> Subject: RE: ERROR: Backend server is not running!
>>>
>>> Okay I shall restart the services and report back.
>>>
>>> The set up is on a single server.
>>>
>>> Regards,
>>> Moeketsi Maphoi
>>>
>>> -----Original Message-----
>>> From: Jaromir Talir <jaromir.talir at nic.cz>
>>> Sent: Wednesday, October 31, 2018 4:31 PM
>>> To: Moeketsi Maphoi <mmaphoi at nic.ls>
>>> Cc: fred-users at lists.nic.cz
>>> Subject: Re: ERROR: Backend server is not running!
>>>
>>> OK, in any case I'd suggest to restart both backend service (fred-
>>> adifd) and also frontend service (fred-webadmin). If this doesn't 
>>> help we will need to investigate what is preventing the 
>>> communication of these two services. Is it running on single server 
>>> or different servers?
>>>
>>> Regards,
>>> Jaromir
>>>
>>> On Wed, 2018-10-31 at 16:09 +0200, Moeketsi Maphoi wrote:
>>>> The service seems to be running, the output is shown below
>>>>
>>>> $ service fred-adifd status
>>>> ● fred-adifd.service - FRED administration interface daemon
>>>>      Loaded: loaded (/lib/systemd/system/fred-adifd.service;
>>>> disabled;
>>>> vendor preset: enabled)
>>>>      Active: active (running) since Wed 2018-09-05 14:03:18 SAST; 1 
>>>> months 25 days ago  Main PID: 4288 (fred-adifd)
>>>>       Tasks: 4
>>>>      Memory: 9.6M
>>>>         CPU: 39.656s
>>>>      CGroup: /system.slice/fred-adifd.service
>>>>              └─4288 /usr/sbin/fred-adifd -ORBendPoint 
>>>> giop:tcp::2222 -ORBnativeCharCodeSet UTF-8 --config 
>>>> /etc/fred/fred-adifd.conf
>>>>
>>>> Warning: Journal has been rotated since unit was started. Log 
>>>> output is incomplete or unavailable.
>>>>
>>>> Regards,
>>>> Moeketsi Maphoi
>>>>
>>>> -----Original Message-----
>>>> From: Jaromir Talir <jaromir.talir at nic.cz>
>>>> Sent: Wednesday, October 31, 2018 4:04 PM
>>>> To: Moeketsi Maphoi <mmaphoi at nic.ls>; fred-users at lists.nic.cz
>>>> Subject: Re: ERROR: Backend server is not running!
>>>>
>>>> Hi Moeketsi,
>>>> can you verify once again that fred-adifd service is running?
>>>>
>>>> Regards,
>>>> Jaromir
>>>>
>>>> On Wed, 2018-10-31 at 15:17 +0200, Moeketsi Maphoi wrote:
>>>>> Greetings,
>>>>>    
>>>>> I am experiencing a bit of a problem here on daphne, out of 
>>>>> nowhere.
>>>>> The FRED services have never stopped running for two months now 
>>>>> but daphne puts out the following message after hitting login.
>>>>>    
>>>>> Error:
>>>>> Error: Backend server is not running!
>>>>> Traceback (most recent call last):
>>>>>     File "/usr/lib/python2.7/dist- 
>>>>> packages/fred_webadmin/exposed.py",
>>>>> line 25, in _wrapper
>>>>>       return view_func(*args, **kwd)
>>>>>     File "/usr/lib/python2.7/dist- 
>>>>> packages/fred_webadmin/controller/adif.py", line 241, in login
>>>>>       self._authenticate(form, admin)
>>>>>     File "/usr/lib/python2.7/dist- 
>>>>> packages/fred_webadmin/controller/adif.py", line 175, in 
>>>>> _authenticate
>>>>>       auth.authenticate_user(admin, login, password)
>>>>>     File "/usr/lib/python2.7/dist- 
>>>>> packages/fred_webadmin/auth/corba_auth.py", line 11, in 
>>>>> authenticate_user
>>>>>       admin.authenticateUser(recoder.u2c(username),
>>>>> recoder.u2c(password))
>>>>>     File "/tmp/tmprSxSnq", line 6903, in authenticateUser
>>>>> TRANSIENT: CORBA.TRANSIENT(omniORB.TRANSIENT_ConnectFailed,
>>>>> CORBA.COMPLETED_NO)
>>>>>    
>>>>> All FRED services are still running. The logs don’t show anything 
>>>>> conclusive, what could be happening?
>>>>>    
>>>>> Regards,
>>>>> Moeketsi Maphoi
>>>>> Systems Engineer: LsNIC
>>>>>
>>>>>    
>>>>> _______________________________________________
>>>>> fred-users mailing list
>>>>> fred-users at lists.nic.cz
>>>>> https://lists.nic.cz/cgi-bin/mailman/listinfo/fred-users
>>>>
>>>> --
>>>> Jaromir Talir
>>>> Technicky partner / Technical Fellow
>>>> -------------------------------------------
>>>> CZ.NIC, z.s.p.o.  --    .cz domain registry
>>>> Milesovska 5, 130 00 Praha 3, Czech Republic 
>>>> mailto:jaromir.talir at nic.cz  http://nic.cz/ 
>>>> sip:jaromir.talir at nic.cz
>>>> tel:+420.222745107
>>>> mob:+420.739632712       fax:+420.222745112
>>>> -------------------------------------------
>>>>
>>>
>>> --
>>> Jaromir Talir
>>> Technicky partner / Technical Fellow
>>> -------------------------------------------
>>> CZ.NIC, z.s.p.o.  --    .cz domain registry
>>> Milesovska 5, 130 00 Praha 3, Czech Republic 
>>> mailto:jaromir.talir at nic.cz  http://nic.cz/ sip:jaromir.talir at nic.cz
>>> tel:+420.222745107
>>> mob:+420.739632712       fax:+420.222745112
>>> -------------------------------------------
>>>
>> --
>> Jaromir Talir
>> Technicky partner / Technical Fellow
>> -------------------------------------------
>> CZ.NIC, z.s.p.o.  --    .cz domain registry
>> Milesovska 5, 130 00 Praha 3, Czech Republic mailto:jaromir.talir at nic.cz  http://nic.cz/ sip:jaromir.talir at nic.cz tel:+420.222745107
>> mob:+420.739632712       fax:+420.222745112
>> -------------------------------------------
>>
>> _______________________________________________
>> fred-users mailing list
>> fred-users at lists.nic.cz
>> https://lists.nic.cz/cgi-bin/mailman/listinfo/fred-users
>>
> _______________________________________________
> fred-users mailing list
> fred-users at lists.nic.cz
> https://lists.nic.cz/cgi-bin/mailman/listinfo/fred-users
> 
> _______________________________________________
> fred-users mailing list
> fred-users at lists.nic.cz
> https://lists.nic.cz/cgi-bin/mailman/listinfo/fred-users
> 
_______________________________________________
fred-users mailing list
fred-users at lists.nic.cz
https://lists.nic.cz/cgi-bin/mailman/listinfo/fred-users



More information about the fred-users mailing list