[8.160][BUG][FIXED] Error when opening Dashboard

Hi there,

I just installed Beta 8.160 and restored my settings through my backup file.
When I open the Dashboard I get the following error:

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

The Dashboard doesn't open and where it should be it only writes "undefined".
  • Astaro Beta Report
    
    --------------------------------
    Version: 8.160
    Type: BUG
    State: TESTED/FIXED
    Reporter: SK2003+
    Contributor: potsdam
    MantisID: 16986
    Target version: 8.161
    Fixed in version: 8.161
    --------------------------------
  • That's indeed strange. Can you please issue a "cc get_dashboard_data" on the console and post the output/error message here?
  • The output from "cc get_dashboard_data" is the following:

    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:
    Illegal division by zero at /Info/webadmin.pm line 547.
    ',
                'never_hide' => 0,
                'perl_error' => 'Illegal division by zero at /Info/webadmin.pm line 547.
    '
              }
            ]
  • Bingo, that's somewhere in the calculation of the Bandwidth that has to be shown on he dashboard. I've created a Mantis ID for this.

    My guess is that the calculation fails because your VPN-Interfaces are initially down (That's why i think both of your issues are related), but i have to wait for the other guys to take a look at this.  In the meantime, can you tell me a little bit more about your setup? Especially the VPN Interfaces you've created?
  • I'm deploying my VPN-Interface-Settings with ACC in Version 8.1 (currently running as live system). The VPN-Settings in Version 8.1 are working. [[:)]]

    For version 8.160 I took the configuration backup from my live system (there are 2 VPN-Connections created through the ACC) and imported it.

    After that the beta ASG registered with ACC... 

    Now I wanted to create a VPN-Configuration but I wasn't able to because in the configuration wizzard of the ACC all Interfaces (Internal, Internet and WLAN) are shown without any IP-Address. When I want to finish the wizard it just tells me that there aren't any valid interfaces as described in my other post.

    I hope that helps a little bit. [[:)]]
  • got same error when opening dashboard after installation and initial configuration with a backup from version 8.102. Error occurs after login per ACC or login with local admin user.

    same output of cc get_dashboard_data as SK2003 wrote.

    when opening management/up2date following error occurs: 

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



    im running at the moment with my test-licence (home-user). 
    After applying the beta-licence the error is still alive [;)].
  • Hi potsdam,

    thanks for your feedback. I have been able to track down the error on the up2date page to the same bug.

    Thanks for participating!