Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't use string ("0") as a HASH ref while "strict refs" in use at /wfe/asg/modules/a

Hello everybody,

I have the following problem:
When I login to webadmin (regardless of browser or local/remote user) I get the following error instead of the dashboard:

Can't use string ("0") as a HASH ref while "strict refs" in use at /wfe/asg/modules/asg_dashboard.pm line 90.


The ASG's current version is 8.303, but it also happened on 8.301. At that time the VM had an uptime of more than 70 days and I hadn't done ANY configuration changes (not on ASG, not on any switch, router, etc.) for a long time.

I've found similar problems in these posts, but I can't really seem to find a solution in there. It appears it was considered a bug in one case.

https://community.sophos.com/products/unified-threat-management/astaroorg/f/75/t/64326

https://community.sophos.com/products/unified-threat-management/astaroorg/f/110/t/70223

astaro:/root # cc get_dashboard_data

get_dashboard_data returned 0
[
          'UNEXPECTED',
          {
            'attrs' => [
                         'method',
                         'perl_error'
                       ],
            'fatal' => 1,
            'format' => 'Unexpected error in %s: %s',
            'method' => 'get_dashboard_data',
            'msgtype' => 'UNEXPECTED',
            'name' => 'Unexpected error in get_dashboard_data: Can\'t use string ("0") as a HASH ref while "strict refs" in use at /Info/webadmin.pm line 337.
',
            'never_hide' => 0,
            'perl_error' => 'Can\'t use string ("0") as a HASH ref while "strict refs" in use at /Info/webadmin.pm line 337.
'
          }
        ]
astaro:/root #


I've also gotten similar messages in Mgmt-Up2Date. 

Does anybody have an idea how to solve this?


This thread was automatically locked due to age.
Parents
  • The Configuration daemon log contains this entry at that time:
    2013:05:22-14:44:38 astaro confd[17992]: W Message::err_set:973() => id="3100" severity="warn" sys="System" sub="confd" name="UNEXPECTED (Unexpected error in get_dashboard_data: Can't use string ("0") as a HASH ref while "strict refs" in use at /Info/webadmin.pm line 337. | )" user="MyUsername" srcip="MyIPAddress" facility="webadmin" client="index.plx" method="get_dashboard_data" perl_error="Can't use string ("0") as a HASH ref while "strict refs" in use at /Info/webadmin.pm line 337."


    I've tried offline fsck's. No change.
    I've also tried a reinstall, even with the new major release. After I imported my settings backup I get the same errors.
Reply
  • The Configuration daemon log contains this entry at that time:
    2013:05:22-14:44:38 astaro confd[17992]: W Message::err_set:973() => id="3100" severity="warn" sys="System" sub="confd" name="UNEXPECTED (Unexpected error in get_dashboard_data: Can't use string ("0") as a HASH ref while "strict refs" in use at /Info/webadmin.pm line 337. | )" user="MyUsername" srcip="MyIPAddress" facility="webadmin" client="index.plx" method="get_dashboard_data" perl_error="Can't use string ("0") as a HASH ref while "strict refs" in use at /Info/webadmin.pm line 337."


    I've tried offline fsck's. No change.
    I've also tried a reinstall, even with the new major release. After I imported my settings backup I get the same errors.
Children
  • Seems your configuration is messed up... [:(]

    If this is a paid license: Have you opened a ticket with Sophos via your reseller?

    Just because kamal.ahmed mentioned a possible permission issue: Have you tried to create a new user (e.g. adminnew), put him into the SuperAdmins group and tried to log in with that user?