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.
  • Hi  Brainscanner,

    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.

    http://www.astaro.org/beta-versions/utm-9-public-beta/42707-8-940-myth-cant-use-string-0-hash.html


    concerning the quoted thread from the BETA Forum: we found that the user had suffered from a currupted filesystem, which ultimately caused the system to handling everything incorrectly. At first sight I'd say this may also be your problem here.

    Cheers,
    Cristof
  • Hi Cristof,

    I'd at least like to give it a try.

    Do you know if there's a recommended way to do this (online doesn't seem to be a good idea, does it?)?
    I know how to do these things in AIX, but not Linux.

    Update: Stupid of me. I've scheduled an appropriate reboot for tonight: nohup shutdown -rF 900
  • No, I'm afraid the fsck upon reboot didn't solve the problem :-(
  • Anybody got an idea? I'm still having the problem... I'd very much prefer not to reinstall Astaro :-(
  • Hi, still running 8.303, or something newer?

    Barry
  • I've installed all updates ever since. Since yesterday I'm running 8.306.

    I've had to install them via command line because the up2date page in the webinterface doesn't work either because of a very similar error message.
  • I Have  the same Issue on UTM which was updated to 9.1.but it occured for only Auditor user
  • I'd still be interested in a solution because I'm still experiecing this problem. I get similar messages in few other areas than the main screen.
  • Well, supposed your problem is a corrupt file system and fsck didn't help, the only way would be to reinstall...

    Anything in the logs of "Configuration Daemon" or "System Messages"?

    ----------
    Sophos user, admin and reseller.
    Private Setup:

    • XG: HPE DL20 Gen9 (Core i3-7300, 8GB RAM, 120GB SSD) | XG 18.0 (Home License) with: Web Protection, Site-to-Site-VPN (IPSec, RED-Tunnel), Remote Access (SSL, HTML5)
    • UTM: 2 vCPUs, 2GB RAM, 50GB vHDD, 2 vNICs on vServer (KVM) | UTM 9.7 (Home License) with: Email Protection, Webserver Protection, RED-Tunnel (server)
  • 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.