[7.850][BUG][FIXED] Restoring 7.502 backup file renders WebAdmin unusable

Hmm, this thread seams to be fallen victim to the moderation "feature" [:D]

Here once again (it was still in my browsers history, phew - don't want to write this again, just returned from the Pink concert in Stuttgart [;)]):

Hi,

immediately after installation I tried to restore my existing configuration. After that I was logged out (as expected) and after that the only thing WebAdmin managed to show is the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


In this situation I could not do anything. I have to add that the User Portal was in working condition, though!

How can I help analyzing this problem? Could the backup file help you?

Regards,
Bastian
  • Yes please send it via E-Mail to mschmidt@astaro.com
  • OK you should get it in a few minutes (if v8 handles it *g*).
  • Thanks for sending the backup. But I can't see anything going wrong when importing the backup.

    You may as well suffer from the same problem as described here (changed NIC order)

    Please check via the console and 'ifconfig -a' if the NIC ordering is as expected after importing the backup - my guess is, it's not.
  • Hi Mario,

    I checked the nics and there is no change in their order. I could have worked around that easily as I'm running under VMware.

    Now everything works but I have no access to WebAdmin!



    I also got a notification, but I think this is OK: [INFO-148] L2TP-over-IPsec daemon not running - restarted.

    I now have a working SSH connection to the ASG, how can I get more information or what can I do (I'm really no Linux guru [;)])?

    Regards,
    Bastian
  • I can confirm this is a bug: /var/log/httpd.log says "Premature end of script headers: index.plx" for each WebAdmin request. Thanks for the report, will open a ticket.
  • OK I managed to get some logs:

    SYSTEM-LOG:

    2009:12:21-10:22:22 astaro1 postgres[16165]: [2-1] ERROR:  relation "accounting_data" does not exist at character 98Dec 21 10:22:22 postgres[16165]: [2-2] STATEMENT:  select ip as ip_addr, min(start) as start from (select ip_saddr as ip, min(dayabs) as start from accounting_data where raw_in_pktcount > 0 and raw_out_pktcount > 0 and  (ip_saddr between 3232235520 and 3232235775) and ip_saddr not in (3232235619, 1528055989) and dayabs >= 733755 group by ip union select ip_daddr as ip, min(dayabs) as start from accounting_data where raw_in_pktcount > 0 and raw_out_pktcount > 0 and  (ip_daddr between 3232235520 and 3232235775) and ip_daddr not in (3232235619, 1528055989) and dayabs >= 733755 group by ip order by start asc) as dummy group by ip_addr order by start asc
    2009:12:21-10:22:39 astaro1 postgres[16800]: [2-1] ERROR:  invalid input syntax for type inet: ""Dec 21 10:22:39 postgres[16800]: [2-2] STATEMENT:  select ins_pfilter($1, $2, $3, $4, $5)
    2009:12:21-10:22:39 astaro1 postgres[16813]: [2-1] ERROR:  duplicate key value violates unique constraint "serveraddress_pkey"Dec 21 10:22:39 postgres[16813]: [2-2] STATEMENT:  insert into serveraddress (server_id, ip_addr) values ($1, $2)
    2009:12:21-10:22:40 astaro1 postgres[16813]: [3-1] ERROR:  insert or update on table "confd_accounts" violates foreign key constraint "confd_accounts_server_ref_fkey"
    2009:12:21-10:22:40 astaro1 postgres[16813]: [3-2] DETAIL:  Key (server_ref)=(REF_KadLtlXzzw) is not present in table "servers".
    2009:12:21-10:22:40 astaro1 postgres[16813]: [3-3] STATEMENT:
    2009:12:21-10:22:40 astaro1 postgres[16813]: [3-4]            insert into confd_accounts (account_ref, user_ref, server_ref, username, passwd, comment)
    2009:12:21-10:22:40 astaro1 postgres[16813]: [3-5]            values ($1, $2, $3, $4, $5, $6)
    2009:12:21-10:22:40 astaro1 postgres[16813]: [3-6]
    2009:12:21-10:22:40 astaro1 postgres[16813]: [4-1] ERROR:  insert or update on table "confd_accounts" violates foreign key constraint "confd_accounts_server_ref_fkey"
    2009:12:21-10:22:40 astaro1 postgres[16813]: [4-2] DETAIL:  Key (server_ref)=(REF_KadLtlXzzw) is not present in table "servers".
    2009:12:21-10:22:40 astaro1 postgres[16813]: [4-3] STATEMENT:
    2009:12:21-10:22:40 astaro1 postgres[16813]: [4-4]            insert into confd_accounts (account_ref, user_ref, server_ref, username, passwd, comment)
    2009:12:21-10:22:40 astaro1 postgres[16813]: [4-5]            values ($1, $2, $3, $4, $5, $6)
    2009:12:21-10:22:40 astaro1 postgres[16813]: [4-6]

    MIDDLEWARE
    2009:12:21-10:22:39 astaro1 middleware[4295]: E DBD:[[:P]]g:[:D]b do failed: ERROR:  duplicate key value violates unique constraint "serveraddress_pkey" at /mail/pop3.pm line 369.
    2009:12:21-10:22:40 astaro1 middleware[4295]: E DBD:[[:P]]g:[:D]b do failed: ERROR:  insert or update on table "confd_accounts" violates foreign key constraint "confd_accounts_server_ref_fkey"
    2009:12:21-10:22:40 astaro1 middleware[4295]: DETAIL:  Key (server_ref)=(REF_KadLtlXzzw) is not present in table "servers". at /mail/pop3.pm line 400.
    2009:12:21-10:22:40 astaro1 middleware[4295]:
    2009:12:21-10:22:40 astaro1 middleware[4295]:  1. mail:[:P]op3::updateDatabase:298() /mail/pop3.pm
    2009:12:21-10:22:40 astaro1 middleware[4295]:  2. mail:[:P]op3::setAll:320() /mail/pop3.pm
    2009:12:21-10:22:40 astaro1 middleware[4295]:  3. core::Config::load:278() /core/Config.pm
    2009:12:21-10:22:40 astaro1 middleware[4295]:  4. main::top-level:170() mdw_deamon.pl
    +several more errors

  • Hi.

    The problem was caused by the missing localization files.
    Importing a backup with WebAdmin language set to something other than "english"
    seems to break WebAdmin currently.

    Quick fix for anyone in this situation: As root execute:

    # rm /var/sec/chroot-httpd/var/webadmin/locales/loc
    # cc set webadmin language english
    # /etc/init.d/httpd restart
  • Hi,

    I think this quote from the release notes is important.

    "* No localization
     Localization updates are usually done late in the release cycle. To
     avoid confusion due to half-done translations, we decided to deactivate
     localizations completely for this Beta."

    Ian M
  • OK thank you for examining this. I really didn't watch out whether localization was enabled when taking the backup or not [;)]
  • Astaro Beta Report
    --------------------------------
    Version: 7.850
    Type: BUG
    State: TESTED/FIXED
    Reporter: Monarch
    Contributor: 
    MantisID: 12209
    Target version: 7.851
    Fixed in version: 7.851
    --------------------------------