[myHD 0.9.1 R.C.1] debug problems

Who doesn't love third-party apps? Get together and talk about them here.
Post Reply
User avatar
father.mande
Posts: 1817
youtube meble na wymiar Warszawa
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

[myHD 0.9.1 R.C.1] debug problems

Post by father.mande »

Hi,

Some information on : how-to debug installation or run problems

[Installation]
FIRST : BE PATIENT ... BE PATIENT ... BE PATIENT :lol:
===== IN ALL CASE to avoid download problem it's better to PRE-DOWNLOAD the Ubuntu environment as explain in announcement post using the provided shell script.
AFTER installation of the APKG (myHD) ... when myHD is started by AppCentral
... the first phase (in the background) is to download the Ubuntu environment from O.V.H. (if not pre-downloaded)
... ... during this phase if download (up to 6 files max 256 Mbytes each) fail for any reason ... the background task finish and install is not done
... TO RESTART THIS do :
... ... open a ssh console using root (not admin) / your_password
... ... do : myHD start
... THIS restart the download phase then if success ... start the Ubuntu set_up phase

Ubuntu set_up phase is local ... so can run without specific problems
... AT END of set_up phase ... myHD is restarted

ALWAYS verify using : myHD status console command or use the WebUI status top/left button

[WebUI problems]
A.D.M. 3.3
Update 0.9.1 solve problem with Authentification

user / password require :
... user is : myhd (lowercase)
... password is : asusfr1
... CAN I change it (or add user) ?
... ... for the moment it's manual, open a ssh console and use htpasswd command (Apache user/password generator) do :
... ... cd /usr/local/AppCentral/myHD/bin/
... ... htpasswd -b .htpassword myhd NEW_PASSWORD (this change the password use by myhd user)
... ... you can use the hdpasswd tool interactively (to don't have password in clear ... during htpasswd execution time and in shell history
... ... you can add a new user / password then delete the default ... it's up to you :lol:

[local Folder not visible in myHD]
... by default myHD is an isolated environment so don't have any access to your /share folder and sub_folder
... to add a folder (visible by myHD applications) use
... ... myHD add_include_folder [FOLDER form /share/xxxx]
... ... use WebUI specific menu (all available folder in /share are directly accessible)
... IN ALL CASE : restart myHD after to really add it ... previous action ONLY change config file

[Application in Asportal don't start]
... The method to start an application in Ubuntu environment (myHD) is
... a shell in A.D.M. part doing a ssh connection (with keys so without password) to the SSH server internal to myHD (dropbear port 6222 only on localhost)
... ... this connection start a shell in myHD to start the application
TEST to verify
... open a ssh console then enter in myHD as a normal user (default is astr)
... myHD_user astr
... Then start the myHD shell for the applications
... ... myHD shell are in /myHD_scripts/Apps and are named MH_xxxx.sh (ex. MH_kodi18.sh)
... /myHD_scripts/Apps/MH_kodi18.sh ... normally this start kodi18 (in the example) in Asportal
... ... identify the error if exist if no error just exit kodi18 ALL is correct inside myHD
... NOW you must test from Asportal / A.D.M. side
... ... exit myHD to return to A.D.M.
... Run as asportal do the script
... /usr/local/AppCentral/MH-xxxx/run_MH-xxxx.sh
... ... identify the error ...

[myHD command error]
... just start it using : /bin/sh -x myHD xxxx

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [myHD 0.9.1 R.C.1] debug problems

Post by father.mande »

Hi,

Small update for version 0.9.1

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
FiRu
Posts: 5
Joined: Thu Feb 28, 2019 11:27 pm

Re: [myHD 0.9.1 R.C.1] debug problems

Post by FiRu »

Hello first sorry for my bad english.
Y have a problem whit the myHD: everything installing ok , check root via shh ok status running.

but in asustor portal wen click on the icon to open the WEBUI not work, a instant flash open and close the nav tab.
no webui work.
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [myHD 0.9.1 R.C.1] debug problems

Post by father.mande »

Hi,
FiRu wrote:Hello first sorry for my bad english.
Y have a problem whit the myHD: everything installing ok , check root via shh ok status running.

but in asustor portal wen click on the icon to open the WEBUI not work, a instant flash open and close the nav tab.
no webui work.
Are you using 0.9.1 APKG, because in previous version we discover a problem in Apache default server (this problem is NOT linked to myHD BUT to default Apache configuration)

1 be sure that Apache web server (so NOT the admin web server (another one)) is enable and started
2 check that files exist

Code: Select all

root@AS5002TAPHIL:/volume1/.@root # ll /usr/builtin/etc/apache2/mods-available/authn_core.conf
-rw-r--r--    1 root     root          80 Feb 14 17:17 /usr/builtin/etc/apache2/mods-available/authn_core.conf
root@AS5002TAPHIL:/volume1/.@root # cat /usr/builtin/etc/apache2/mods-available/authn_core.conf
LoadModule authn_core_module /usr/builtin/lib/apache2/modules/mod_authn_core.so
root@AS5002TAPHIL:/volume1/.@root # ll /usr/builtin/lib/apache2/modules/mod_authn_core.so
-rwxr-xr-x    1 root     root       11.0K Jan 29 06:49 /usr/builtin/lib/apache2/modules/mod_authn_core.so*
root@AS5002TAPHIL:/volume1/.@root # ll /usr/builtin/etc/apache2/mods-enabled/authn_core.conf
lrwxr-xr-x    1 root     root          33 Feb 14 17:20 /usr/builtin/etc/apache2/mods-enabled/authn_core.conf -> ../mods-available/authn_core.conf
root@AS5002TAPHIL:/volume1/.@root #
3 try a restart of Apache
/usr/builtin/etc/init.d/S54apache2 start
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
FiRu
Posts: 5
Joined: Thu Feb 28, 2019 11:27 pm

Re: [myHD 0.9.1 R.C.1] debug problems

Post by FiRu »

Thanks work perfect !!!
Post Reply

Return to “Developer's Corner”