Project

General

Profile

Feature #2309

Amahi Express Install Disc 11

Added by sanjitchak over 1 year ago. Updated over 1 year ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
04/24/2018
Due date:
% Done:

0%


Description

v3 -

ISO: https://drive.google.com/open?id=1ncFivR8UPaVmUX_Ip8K_GQnTOXPCUiBs

-Added Amahi Server Setup message without any login prompt at all.

v4 -

ISO: https://drive.google.com/open?id=1DfY8bfG39CRbbRid4fqG-7eMeXTwXUKv

-Added automatic admin/administrator creation

v5 -

ISO: https://drive.google.com/open?id=1mlzitpIKT8i3wAowZIUBJ5jYdNz1tGXI

-Complete change of theme.
-Changed names to 'Amahi'
-Added Amahi dice in the module
-Fixed slowness if INSTALL CODE is written first
-Automatic timezone selection according to location.
-Changed prompt message in the terminal

v6 -

ISO: https://drive.google.com/open?id=15KkJSDsjHcP2ZjhxUNf8Q3Rfa1gn50Oo

-Added command to change to 'generic-release` from `fedora-release`

v7 -

ISO: https://drive.google.com/open?id=1PtQ_evKnoumpV8FgDfmfFIBCCktvs7E5

-Tried to make amahi server install script more network fail proof

Note - Try disconnecting the internet for 15 minutes and then reconnect again to test. Installation time may increase substantially due to network reconnection. But it will complete.

v8 -

ISO: https://drive.google.com/open?id=1U9_A2388GJaZ8eDE93csLfNKfdYDhqkx

-Changed amahi setup script to execute hda-install in the end.

v9 -

ISO: https://drive.google.com/open?id=1IefgnE5dGYOx62gkaFVN5oQa8Z50AuYN

-Changed the script to include hda-install -i INSTALL CODE

History

#1 Updated by bigfoot65 over 1 year ago

  • Status changed from New to Feedback
  • Assignee set to sanjitchak

Tested new Express CD version 3 and all appears to be working as expected.

Seems like in the first version most of the Amahi bits were installed during the OS installation process. Once the terminal was accessed, it only do the hda-install piece. Doing it this way, the last part of install was quicker.

In this version, it appears all the Amahi bits are installed once the Terminal is accessed. Not sure which is best, but I personally preferred most of the Amahi bits installed during the OS setup.

Also, only keyboard language that is available is English. Is that based on the language chosen initially with the OS install or should there be more choices? I chose English of course for the language.

Also do we want to make the default user administrator/administrator versus letting the user do it? Seems many users forget to make the user an administrator which causes a reinstall since root is disabled. Setting it for them would prevent that issue.

Finally, can the options that are preset be locked, such as the Minimal Install and disk format? Since root was disabled, I wondered if we could do other customization that was locked to prevent users making changes. These changes often result in a failed Amahi install and cause many hours of diagnosis with users in forums and chat.

All and all, the Express CD works well and is a great advancement for Amahi 11. Users will prefer this over previous Amahi version installs that required command line intervention.

Awesome job!

#2 Updated by sanjitchak over 1 year ago

Thanks for your awesome feedback. Felt nice, reading it.

-Yes, in the beginning, I was trying to do hda-install during OS installation itself. But hda-install showed an error that it can't connect to MySQL. So, I tried the hard way of rebooting the system and automatically install it.
OS installation runs in chroot mode and it's a bad idea to run MySQL in chroot mode, according to various sources.

-The keyboard is available according to the language selected. English (India) gives keyboard with Indian rupee sign.

-If we don't have any problem regarding security, keeping default admin/admin then we can do it. What do you think?

-I think only a few options, which are not mandatory can be locked like ROOT. I will try to do it.

#3 Updated by sanjitchak over 1 year ago

  • Subject changed from Amahi Express Install Disc 11 v3 to Amahi Express Install Disc 11
  • Description updated (diff)

#4 Updated by bigfoot65 over 1 year ago

Thanks for answering my questions. Makes sense to do it the way you did in this version.

I think setting the default user is fine as we did it with the Amahi 7 Express CD. However, I think it would be best to make the user name and password administrator / administrator to ensure we meet the minimum password length.

Also, the MySQL root password needs to be changed to be at least 8 characters as well. This was an issue in Amahi 10 initially. Maybe make it something like amahihda vs hda.

If I am mistaken, cpg can jump in and clarify.

#5 Updated by cpg over 1 year ago

Let's go with a default user as follows: admin with pw administrator
(the root pw should also be the same as the admin user)

The mysql root pw has been and should be: AmahiHDARulez

#6 Updated by sanjitchak over 1 year ago

Ok! Sure. I will try to add default admin/administrator and 'Make it as Administrator'.

Or make an extra root account with pw - administrator.

#7 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

#8 Updated by bigfoot65 over 1 year ago

IMO, I think the 'Make it as Administrator' is good. Leave root account disabled.

Also for the MariaDB password, in Amahi 10 I can login as root using hda as a password. Is there more than one root password? Seems like I could also login using AmahiHDARulez as well.

Obviously cpg has the final say.

#9 Updated by bigfoot65 over 1 year ago

Tested v4 image and worked perfectly.

The creation of the user simplifies the install.

I think we are pretty much ready to call this version the final Amahi 11 Express CD.

Was it possible to lock down the default options set, like minimal install, user creation, etc? Just curious if it was possible. Not sure if cpg would want it locked down, or still potential for advanced users to be able to make changes.

#10 Updated by cpg over 1 year ago

Correction. @bigfoot65 is correct. The root pasword for mysql is hda.

The username for the platform is amahihda but I believe that is done in hda-install, so it's that user/pw is not relevant to the DVD. Please disregard my comment about that.

#11 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

I am sorry but I was able to lock only USER CREATION and ROOT option during installation.

I will still try if other options can be locked or not. But I think, it may not be possible.

#12 Updated by bigfoot65 over 1 year ago

No worries.

We need to change the MariaDB root password from hda to amahihda. Is that in the platform install code somewhere?

#13 Updated by sanjitchak over 1 year ago

https://github.com/amahi/hda-ctl/blob/ed319a52de83b21e51f8100fb80de44900cf93ba/hda-install#L40

Maybe changing this DATABASE_MAIN_PASSWORD might do the trick. We use this hda-install script to setup Amahi Server for the first time.
What do you say?

#14 Updated by bigfoot65 over 1 year ago

That looks like the place to me. Not sure if it's done anywhere else though.

cpg would be the best to ask on this one.

Also do we want to comment out the Greyhole pieces? Since Greyhole is now separate form Amahi, not sure we need it in the install script any longer.

#15 Updated by cpg over 1 year ago

Ok, near as I can tell, I tested it and the mysql root password can remain short (hda).

#16 Updated by cpg over 1 year ago

I found how we're getting around the short/weak password for root in mysql.

Given that it still works in the installer, I am hesitant to kick this particular hornet's nest, as it will require hard constraints on it, and it which could also change over time or something.

I will think about this some more, maybe experiment, but I rather we keep on trucking as is.

#17 Updated by sanjitchak over 1 year ago

There we are uninstalling 'cracklib_password_check' which may be a good option.

If maybe in some cases cracklib don't have access to its dictionary, password won't be created (https://mariadb.com/kb/en/library/password-strength-checking/#known-issues).

#18 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

#19 Updated by bigfoot65 over 1 year ago

Tested latest release.

Changes to remove Fedora and replace with Amahi look professional. Good job!

The process appears to work as designed, installing with no issues. The Amahi install in the console takes a while, but it is seamless to the user other that waiting for the final login.

Did basic testing of some dashboard items with no problems to report.

This Express CD is something Amahi has needed for quite some time. Hopefully this is an easily repeatable process for future releases.

#20 Updated by sanjitchak over 1 year ago

Nice! Thanks for your awesome review.

And yes, if installation process of Amahi remains the same and if Fedora doesn't make changes to their future releases. Then it will be easily repeatable.

#21 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

#22 Updated by cpg over 1 year ago

working on v6 now, we're down to one of our last errors. it appears, after all the gems are updated, etc. that it may be some issue with authlogic. filed a bug with them

https://github.com/binarylogic/authlogic/issues/605

#23 Updated by bigfoot65 over 1 year ago

v6 installs fine, however there is an error when doing the initial user login with http://hda. Entering admin/administrator results in "whoopsie there is a dashboard issue" message, then it redirects back to the credentials initialization. Goes into an endless loop, entering credentials, then the error.

#24 Updated by sanjitchak over 1 year ago

Yep! That's the one of our last errors we are working on.

#25 Updated by cpg over 1 year ago

  • Status changed from Feedback to Assigned

ok, hda-platform-10.6.9-1.x86_64.rpm is in the repo. please try a new install and report any errors as detailed in my PM to you.

from what you said, the iso is the same, the new bits are picked up from the repo.

#26 Updated by sanjitchak over 1 year ago

  • Status changed from Assigned to Feedback
  • Assignee changed from sanjitchak to cpg

Tested the v6 ISO with repo updated.

As expected, something's not good in bootsnap.

/var/log/httpd/error_log  :-

https://paste.fedoraproject.org/paste/ZzvNnxnYDvThQaIgwTilEg

Everything seems to be ok in production.log:-

https://paste.fedoraproject.org/paste/UOPdlUFKOsG4N1PVEeV9Dw

When trying to access the server for the first time it shows the following error:-

We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.

#27 Updated by bigfoot65 over 1 year ago

I updated to the latest platform, 10.6.11-1 and get the same error.

Dashboard won't display, so can test functionality of it.

#28 Updated by cpg over 1 year ago

hda-platform-10.6.15-1.x86_64.rpm updated to the repo.

i am not sure if installing over an existing broken hda-platform will work. it may need to be a fresh install.

i think app installs are not working, however, most other things should be working, so detailed page by page testing and reporting anyhing in in the Setup area tabs would be great help.

#29 Updated by cpg over 1 year ago

hda-platform-10.6.16-1.x86_64.rpm updated to the repo with a small fix for the shares settings area. thanks to sukhbir for the fix!

#30 Updated by bigfoot65 over 1 year ago

Did a new install and dashboard is still not working.

I get the same message as before.

#31 Updated by cpg over 1 year ago

  • Status changed from Feedback to Assigned
  • Assignee changed from cpg to bigfoot65

hmm. could you take a peek at the /var/hda/platform/html/log/production.log and /var/log/httpd/error_log?

#33 Updated by cpg over 1 year ago

hda-platform-10.6.17-1.x86_64.rpm has been released with a bunch of fixes for various pages in networking, etc.

i'm working on apps now, but the rest could use some testing.

#34 Updated by sukhbir over 1 year ago

  • File Screenshot from 2018-05-29 23-32-50.png added
  • Tracker changed from Feature to Bug
  • Status changed from Assigned to New
  • Assignee deleted (bigfoot65)
  • Target version set to amahi-11

#35 Updated by sanjitchak over 1 year ago

  • Tracker changed from Bug to Feature
  • Description updated (diff)

#36 Updated by cpg over 1 year ago

hda-platform-10.6.20-1.x86_64.rpm released to the repo with some updates. apps page should work (slow).

app installation seems to work, though there are some issues with app URLs.

other known issues: super-slow app listing, flaky installs that appear to work but reported as errors to the user

#37 Updated by bigfoot65 over 1 year ago

Did a new install and dashboard is still not working.

I get the same message as before. Dashboard is inaccessible.

The VM is still active if cpg wants to check it out.

#38 Updated by cpg over 1 year ago

Thanks. Looks like the permission stuff is still there. Something is creating files as root during some point at initialization time.

I think we may just not use bootsnap, which was nice in making the app way faster to start up. Thanks for the report.

#39 Updated by cpg over 1 year ago

btw, I worked-around the issue and while i can't test at the moment, i think you should be able to see apps, etc.

#40 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

Sorry, had some issues with previous v7 ISO.

Re-uploaded v7 ISO and changed its link.

#41 Updated by cpg over 1 year ago

hda-platform-10.6.21-1.x86_64.rpm updated on the repo with a fix for the permission issues and some web app stuff.

the apps listing is still very slow for some reason.

#42 Updated by cpg over 1 year ago

hda-platform-10.6.22-1.x86_64.rpm updated. app listing is fast (thanks sukhbir!) and app installation/uninstallation seems to work.

known issue is that webapps are not created (maybe all the time, only tried a couple of apps), so DNS names and perhaps virtualhost for apps with web apps do not seem to work. getting close!

#43 Updated by cpg over 1 year ago

hda-platform-10.6.24-1.x86_64.rpm updated. app installation should work, finally!

please give a good once-over and report issues!

#44 Updated by bigfoot65 over 1 year ago

Tested install using latest v7 image. All went well.

Dashboard is working and apps listing is much quicker.

Tested a few apps, but ran into a problem with those that have a database, such as WordPress and phpMyAdmin:

ERROR 1045 (28000): Access denied for user 'wordpress'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'phpmyadmin'@'localhost' (using password: YES)

phpSysInfo installs and reflects the distro name as: Generic release 27 (Generic)

Installed Adminer, but it's not working. It goes to the Amahi Dashboard when accessing the URL.

Seems phpMan works fine, so might be something with the Adminer app.

Will test more functionality as time permits.

#45 Updated by cpg over 1 year ago

hda-platform-10.6.26-1.x86_64.rpm is out and it has fixes that seemingly gets the bulk of apps installing!

great progress and thanks for testing!

we will need to do a few more small bits of cleanup and test. exciting!

#46 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

Sometimes, the internet might drop when hda-install was executed before any command, which required internet, due to change of ip address. Happened in sukhbir 's VM. So, thanks to him.

#47 Updated by cpg over 1 year ago

ok, hda-platform-10.6.35-1.x86_64.rpm is in the repo.

it has the latest bits of code that include bootstrap 4 (thanks sukhbir!).

please test as thoroughly as possible with the latest iso image!

#48 Updated by sanjitchak over 1 year ago

  • Description updated (diff)

It would be good to test this ISO, one last time.

#49 Updated by sukhbir over 1 year ago

  • File deleted (Screenshot from 2018-05-29 23-32-50.png)

#50 Updated by cpg over 1 year ago

we know that plugin-based apps are not working at the moment, installation may wedge the platform and render it hosed. advice not installing any plugin-based apps.

#51 Updated by cpg over 1 year ago

hda-platform-10.6.36-1.x86_64.rpm is updated, with fixes for plugin-based apps installation. thanks @sukhbir!

however, running plugin-apps fail with a silly asset issue.

#52 Updated by bigfoot65 over 1 year ago

  • Status changed from New to Feedback
  • Assignee set to cpg

Tested latest Express ISO and install went smoothly.

Once rebooted, Dashboard works. Checked out Beach theme and appears to work fine.

Most tabs worked fine, except apps. I tried two apps (WordPress and phpMyAdmin), both failed with:

Installing   app id n0d3n5na6g under /var/hda/platform/html/script/.. ENV=production
/var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/connection.rb:154:in `handle_response': Failed.  Response code = 404.  Response message = Not Found. (ActiveResource::ResourceNotFound)
        from /var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/connection.rb:133:in `request'
        from /var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/connection.rb:92:in `block in get'
        from /var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/connection.rb:227:in `with_auth'
        from /var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/connection.rb:92:in `get'
        from /var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/base.rb:1051:in `find_single'
        from /var/hda/platform/html/vendor/bundle/ruby/2.4.0/gems/activeresource-5.0.0/lib/active_resource/base.rb:938:in `find'
        from /var/hda/platform/html/app/models/app.rb:210:in `install_bg'
        from /var/hda/platform/html/script/install-app:87:in `install_or_uninstall'
        from /var/hda/platform/html/script/install-app:108:in `main'
        from /var/hda/platform/html/script/install-app:121:in `<main>'
=======  app install begin      @  2018-06-18 20:57:34 -0500 ==========
Installing   app id fqzjgts9lz under /var/hda/platform/html/script/.. ENV=production

Will continue to test other areas when I have more time.

#53 Updated by cpg over 1 year ago

The reasons apps do not install is because apparently the platform is not recognized for that HDA.

I am waiting to hear from @sanjitcak and maybe change amahi.org to match.

#54 Updated by cpg over 1 year ago

update hda-ctl per changes by @sanjit, and hoping they work well in general.

they should make the platform be recognized in amahi.org (with some extra changes there), so app install should work!

#55 Updated by cpg over 1 year ago

hda-platform-10.6.43-1.x86_64.rpm released to the repo with improvements on app installation (thanks @sukhbir!)

Also available in: Atom