Courseware:IT Advanced - 11 How to setup the Application Platform after a factory reset

From innovaphone wiki
Jump to navigation Jump to search

Moodle can restore a start configuration to an Application Platform. However, after a factory reset, a few steps must be performed manually.

Restore a start configuration to your AP

Moodle can restore a start configuration to your Application Platform. If this feature is available in your current topic, you will see screenshot.png a button on your Devices page as soon as you completed all steps of this book. This button will remove any data currently present on your AP and will then install the data provided as a start configuration for your current topic.

(Further Hints) The button will appear even if you already loaded this data before, so you should only click it once per topic.

If you are in doubt, have a look at your My Devices Page. Most lesson checkers have a section titled App platform properly loaded which should pass ok (that is, not being screenshot.png flagged in red).

Generally, when loading a new start configuration, you first need to load the device configurations (by using the screenshot.png link provided in the respective book or lesson). Only when this is completed, you would update your AP using the aforementioned button.

(Further Hints) However, a few steps must be performed manually before you use the update button (but after you have restored the start configuration to your devices).


Preliminary steps to restore the AP

After a factory reset, the AP might still be present on your SSD (as SSD content is not removed during a factory reset).

You can easily check this by accessing the AP directly: http://172.31.31.12.

(Further Hints) As password, try both ip411 (which is likely if this AP was created manually in the course before) or pwd (which is likely if this AP was created using the Install before in this course).

If there is no AP present (that is, you failed to log in or the link did not open correctly), follow the next steps in this chapter.

Otherwise (that is, you succeeded to log in), you can skip the first few steps and directly proceed from chapter Setting the App Store URL.

Disabling autostart

If after the full factory reset a configuration has been loaded (e.g. by the lesson checker), the system might try to auto-start the Application Platform which would interfere with the steps outlined in this book.

Perform the following steps to make sure the AP does not try to start:
  • open the advanced UI on App-Platform / General
  • screenshot.png untick the Autostart App Platform check-mark
  • do not forget to click on OK !
  • if the Status shows App Platform processor active, then stop the AP by clicking the Stop link and wait for the AP to screenshot.png stop

Installing the Application Platform

The AP must be installed using the mechanism available in the advanced UI of your IP411LEFT.

As we do want to use moodle's course specific App store (instead of innovaphone's standard store), you need to use the moodle app store URL, which is https://class.innovaphone.com/moodle2/webbuild/app-platform/<ap-build>/app-platform-armel.img where <ap-build> is course specific.

Here are the complete steps:
  • make sure Proxy ARP screenshot.png is activated on your IP4 / ETH0 / IP
  • switch to the App-Platform / General tab
  • If the App-Platform/Installation page does not exist, the App Platform support screenshot.png needs to be enabled (requiring a reset afterwards)
  • set the AP Platform screenshot.png to receive a DHCP lease via ETH0 on App-Platform / IP
  • copy the complete URL from the screenshot.png AP-Install-Url entry on your Devices page into the URL field on App-Platform / Installation
  • install the required AP version by clicking the Install button.
  • confirm the pop-up that you still want to install a new App Platform.

The AP will be downloaded and installed and the Installation page will screenshot.png show you the progress until it screenshot.png is completed. Please note that this takes some time.



Logging on to the AP

You can now log in to your freshly installed application platform

Setting the App Store URL

Again, we want to use moodle's own App store instead of innovaphone's standard store.

To change the store

Setting the password

In the settings/security (that you have reached via the burger menu), set the AP Manager password to ip411.

Updating the core components

To verify that this worked well, you can have a look at the App Store now.

To open the App Store
If you don't have any App Services so far on your App Platform, you will only see the AP Manager and Webserver. These are the core components we need to update (it doesn't hurt to update further Apps you may have installed, but it is not necessary).

To update these components
For a short moment, you will see the screenshot.png confirmation of the succeeded update. Then, as the manager will be restarted automatically, you need to log in again (remember that you have changed the password to ip411 shortly before).
     
     

Making your AP known to moodle

The final manual step is making your Application platform known to moodle.

To do so
  • go to screenshot.png Burger menu / Settings / General and set the Devices app URL 2 to

    wss://training-apps.training.innovaphone.com/class.net/Trainee-Devices/sysclients

    (be sure to set Devices app URL 2 not Devices app URL!). You can copy the URL from the screenshot.png sysclient-Url entry on your Devices page
From this moment, your APPPLATFORM entry on the Devices page will change from out of date to screenshot.png a few seconds in the Info Age column, indicating that moodle knows your AP now.
     

Restoring the lesson's start configuration

You are now ready to restore the start configuration to your Application platform by clicking on the screenshot.png Load initial lesson configuration ... button on your Devices page. This will start the screenshot.png automatic part of the initialization process. Please note that this can take a while.

(Further Hints) After uploading the AP's new start configuration, the AP password will be ip411 in any case!

(Further Hints) If the upload did not work and no or not all app instances were configured, or some instances were not started, then please obtain the App Platform Manager log file and post it in your topics support forum. After that, click the button a second time. It usually works then.