Modify

Ticket #4070 (closed defect: worksforme)

Opened 14 months ago

Last modified 14 months ago

Error restarting service: Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Squid/Model/ObjectPolicy.pm line 279

Reported by: w.duplessis@… Owned by: jamor@…
Milestone: 2.0.X Component: squid
Severity: normal Keywords: squid proxy
Cc:

Description

I updated the server, kept getting error about some changes unable to be saved. Rebooted the server, since then unable to start squid.

Manually stop dansguardian, and then i was able to start squid. But via the GUI it still gives an error.

Attachments

software.7z Download (27.7 KB) - added by w.duplessis@… 14 months ago.
software.log
ebox.log Download (59.6 KB) - added by w.duplessis@… 14 months ago.
ebox.log

Change History

Changed 14 months ago by w.duplessis@…

software.log

Changed 14 months ago by w.duplessis@…

ebox.log

comment:1 follow-up: ↓ 2 Changed 14 months ago by jamor@…

  • Status changed from new to accepted
  • Summary changed from Unable to start http proxy to Error restarting service: Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Squid/Model/ObjectPolicy.pm line 279
  • Component changed from base to squid
  • Severity changed from critical to normal
  • Milestone set to 2.0.X

Hello W.Duplessis,

do you have any object policy set?. It seems a error related to it. If you have object policies please tell me what you have set.

Maybe you can try to remove all your object policies and see if it starts correctly?. After that you can put them again and try if it starts again.

Regards,

Javier

comment:2 in reply to: ↑ 1 Changed 14 months ago by w.duplessis@…

Replying to jamor@…:

Hello W.Duplessis,

do you have any object policy set?. It seems a error related to it. If you have object policies please tell me what you have set.

Maybe you can try to remove all your object policies and see if it starts correctly?. After that you can put them again and try if it starts again.

Regards,

Javier

Hi Javier,

I have set several filter profiles on objects.

At the moment I am unable to access these objects, error occurs "An internal error related to a template has occurred. This is a bug, relevant information can be found in the logs."

Thus I am unable to disable/remove these objects

Wilhelm

comment:3 Changed 14 months ago by jamor@…

I think this is a redis (the configuration backend) corruption.

Can you at least see the 'Objects' screen?.

Anyway you can remove all the object policies with this command (executed as root):

perl -MEBox -MEBox::Global -e"EBox::init(); EBox::Global->modInstance('squid')->model('ObjectPolicy')->removeAll(); 1"

comment:4 Changed 14 months ago by jamor@…

  • Status changed from accepted to closed
  • Resolution set to worksforme

I think this is a redis corruption so I close this. Anyway 2.2.X and 2.3.X versions are shipped with updated redis libraries that make this harder to occur.

If you have some piece of information that makes for another diagnosis, please reopen and share it.

Regards,

Javier

comment:5 Changed 14 months ago by w.duplessis@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

HI Javier,

I am still getting the same error. I notice that the firewall module, http proxy and network module is not starting up. Filtering is not working at all at the moment. I have tried reinstalling ebox-squid, but the configuration remain intact after a reinstall.

Any ideas.

Wilhelm

comment:6 Changed 14 months ago by w.duplessis@…

I am able to start the proxy service manually, the firewall however does not want to start manually. It gives the error

"/etc/init.d/ebox firewall start

  • Restarting Zentyal module: firewall [fail]

Can't call method "valueByName" on an undefined value at /usr/share/perl5/EBox/Squid/Model/ObjectPolicy.pm line 279."

Regards,

Wilhelm

comment:7 Changed 14 months ago by jamor@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

Hello Wilhem,

in 2.0 if you want to remove the configuration of a module, you need to use the script /usr/share/ebox/ebox-clean-gconf . You must pass it the module to clean, in this case it would be:

/usr/share/ebox/ebox-clean-gconf squid

The firewall restart error is due to the corruption of squid objects, it needs them to work correctly to add rules needed for this objects. So it is the same error.

Also check that the object you have are not corrupted too.

Regards,

Javier

comment:8 Changed 14 months ago by w.duplessis@…

hi Javier,

That did the trick all policies have now been removed. I can now recreate all the object policies. It does not look like the objects are corrupted, I am able to view/edit them.

Thanks for the help. Wilhelm

comment:9 Changed 14 months ago by jamor@…

You are welcome, Wilhem.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.