CLOSED: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

jaybea
Posts: 56
Joined: Tue Dec 15, 2009 1:24 am

CLOSED: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby jaybea » Tue Nov 06, 2018 9:55 am

As with a few others, upgraded without removing all my webapps. Having removed the ones I installed, I am left with:
  • 010-users
  • 020-shares
  • 030-disks
  • 040-apps
  • 050-network
  • 080-settings
The Control Panel still will not start, and hda-ctl is failing

hda-ctl.service: Control process exited, code=exited status=2
systemd[1]: Failed to start Amahi HDA controller.
systemd[1]: hda-ctl.service: Unit entered failed state.
systemd[1]: hda-ctl.service: Failed with result 'exit-code'.


Looking at the amahi-platform-migration.log, there are a number of errors, which look to be causing the database errors leading to the error message on the control page:

rake aborted!
Mysql2::Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")
/var/hda/platform/html/vendor/bundle/ruby/gems/mysql2-0.3.20/lib/mysql2/client.rb:70:in `connect'
[...]
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
rake aborted!
LoadError: incompatible library version - /usr/lib64/ruby/bigdecimal.so


There is also a dnf error, which might also be linked:

Problem: cannot install the best update candidate for package hda-platform-10.6.50-1.x86_64
- nothing provides /this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby needed by hda-platform-11.0.0-1.x86_64

Skipping packages with broken dependencies:
hda-platform x86_64 11.0.0-1 amahi 70 M


Is there another problem, or do I just need to remove some other plugins? Everything else appears to be working ok, so it is just the web-interface I am missing. This is my third upgrade of my HDA, so perhaps my luck has run out this time!

jaybea
Posts: 56
Joined: Tue Dec 15, 2009 1:24 am

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby jaybea » Tue Nov 06, 2018 10:14 am

The upgrade also breaks Logitech Media Server, but I installed this directly and not as an Amahi app. The latest builds (7.9.2) seem to work with Febora 27, but the link to Perl5 in LMS is wrong, so a symlink to the location of Perl in Fedora is needed:

Code: Select all

ln -sf /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/vendor_perl/Slim
LMS is now working perfectly, including the web interface.

User avatar
bigfoot65
Project Manager
Posts: 11391
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby bigfoot65 » Tue Nov 06, 2018 10:46 am

s there another problem, or do I just need to remove some other plugins?
It appears you have removed all the correct plugin directories. Those remaining are required.

Have you restarted the machine? After removing the plugins, it may be needed.

Is this a recent upgrade? We specifically added the MUST uninstall plugins in the guidance several days ago.

I presume you followed the upgrade instructions precisely otherwise.
This is my third upgrade of my HDA, so perhaps my luck has run out this time!
You may be right. With the errors outlined above, there may be no way to save it.
ßîgƒσστ65
Applications Manager

jaybea
Posts: 56
Joined: Tue Dec 15, 2009 1:24 am

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby jaybea » Wed Nov 07, 2018 2:24 am

I have rebooted several times, with no effect. I even reinstalled hda-platform, but I am still getting hda-ctl failures so the web interface is not running.

I am curious about the DNF error, as is says that it cannot install the most recent version of hda-platform (11.0.0) because of dependency errors. The two versions of hda-platform are very different sizes.

Installed Packages
Name : hda-platform
Version : 10.6.50
Release : 1
Arch : x86_64
Size : 165 M
Source : hda-platform-10.6.50-1.src.rpm
Repo : @System
From repo : amahi
Summary : hda-platform is the Amahi web interface platform.
License : AGPL
Description : hda-platform is the Amahi web platform.

Available Packages
Name : hda-platform
Version : 11.0.0
Release : 1
Arch : x86_64
Size : 70 M
Source : hda-platform-11.0.0-1.src.rpm
Repo : amahi
Summary : hda-platform is the Amahi web interface platform.
License : AGPL
Description : hda-platform is the Amahi web platform.


Everything else is working fine, and I only use the web interface for managing fixed IP address allocations, which I can do via the CLI, so I will hold off the major disruption of a clean install until I have a spare day or two!

jaybea
Posts: 56
Joined: Tue Dec 15, 2009 1:24 am

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby jaybea » Wed Nov 07, 2018 5:30 am

After some more digging through logs, it appears to be a plugin issue.

Code: Select all

Message from application: /var/hda/platform/html/plugins/040-apps/app/controllers/webapp_controller.rb:1: Invalid char `\x1F' in expression
Removing 040-apps brings back the Login screen, but when I login it then fails again with a "the Dashboard encountered an exception" message probably because 040-apps is not there. (I can't find where the exception is logged to see what the problem is.)

Lesson: remove apps and plugins before upgrading!

User avatar
bigfoot65
Project Manager
Posts: 11391
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby bigfoot65 » Wed Nov 07, 2018 9:04 am

Lesson: remove apps and plugins before upgrading!
Yes, that's why we put it in the guidance. When you deviate, results are unpredictable.

I presume we can mark this as closed.
ßîgƒσστ65
Applications Manager

jaybea
Posts: 56
Joined: Tue Dec 15, 2009 1:24 am

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby jaybea » Wed Nov 07, 2018 9:52 am

I presume we can mark this as closed.
Yes, I think I have reached the end of the road for repairs, and will do a clean install at some point.

It is nearly time to retire the computer that the HDA runs on and get something newer and more energy efficient. It has been running as my HDA for 9 years, and another 4 years as a Windows PC before that.

User avatar
bigfoot65
Project Manager
Posts: 11391
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi 11 Upgrade = "We're sorry, but something went wrong (500)"

Postby bigfoot65 » Wed Nov 07, 2018 10:21 am

That stinks, but expected at some point.

I run my HDA virtualized, so it allows me to run multiple OS.

I presume we can mark this as closed.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: Google [Bot] and 1 guest