Problem Installation myHD 0.9.4

myHD is an isolated (namespace (mnt, IPC, PID)) Ubuntu environment to run Ubuntu application displayed as ASUSTOR Asportal / Xorg applications.

Moderator: Lillian.W@AST

Warlock
Posts: 9
youtube meble na wymiar Warszawa
Joined: Fri Aug 02, 2019 1:50 pm

Problem Installation myHD 0.9.4

Post by Warlock »

Hello Philippe,

first of all let me say thank you for your work. This will pimp my Asustor.....when myHD would start running, which unfortunately is currently not the case.

I tried to stick exactly to your installation guide:

-First ./pre_download_myHD.sh 1804
-Then installation of myHD APK
-and then the problem starts --> If I click on the new icon, a window pops up and closes within the blink of an eye. I am running ADM 3.2.2RM92.

When I connect via Putty and perform a myHD status I get

==== is myHD running ?
==== myHD is NOT running

When trying myHD start I get

myHD start ... requested
get keys from Asportal / get sound def.
myHD astr user exist ...
Download Ubuntu if not yet available
/usr/local/bin/myHD: line 1485: /usr/sbin/apkg: not found
Hum! the APKG is disabled ...

So honestly I have no clue where I made the mistake during installation.

in my Public folder i have

drwsrwsrwt 4 admin administ 4096 Aug 1 19:22 myHD_delivery/
drwxrwxrwx 2 root root 4096 Aug 1 18:44 myHD_package/
-rwxr-xr-x 1 admin administ 3762 Dec 9 2018 pre_download_myHD.sh*
-rwxrwxrwx 1 admin administ 10240 Aug 1 16:41 pre_download_myHD.tar*

and in myHD_delivery

drwxrwsrwx 24 admin administ 4096 Aug 1 19:22 1804/
-rw-r--r-- 1 admin administ 402 May 11 15:01 delivery_1804.list
-rw-r--r-- 1 admin administ 499711 May 11 14:57 myHD_1804_delivery_scripts.tgz
drwxrwsrwx 7 admin administ 4096 Aug 1 19:18 myHD_1804_scripts/
-rw-r--r-- 1 admin administ 1136031584 Aug 1 17:42 myHD_delivery_1804.tgz
-rw-r--r-- 1 admin administ 268435456 May 11 15:02 myHD_delivery_1804_aa
-rw-r--r-- 1 admin administ 268435456 May 11 15:03 myHD_delivery_1804_ab
-rw-r--r-- 1 admin administ 268435456 May 11 15:04 myHD_delivery_1804_ac
-rw-r--r-- 1 admin administ 268435456 May 11 15:05 myHD_delivery_1804_ad
-rw-r--r-- 1 admin administ 62289760 May 11 15:05 myHD_delivery_1804_ae


If you or someone from the community could guide me back on track I would really appricate your help.

Cheers

Warlock
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Problem Installation myHD 0.9.4

Post by father.mande »

Hi,

The icon in App. Center connect you to the Web server, so the web server must be enable (not the web admin server)
... I don't enable it myself by security
REMEMBER the login is (user / password) myhd / asusfr1

Second point is strange : /usr/sbin/apkg is provide by Asustor ??? so seems it's not the case in your model ??? AND myHD need to have it ?
can you do a verification :
ll /usr/sbin/apkg (please verify the color in response (if correct) link in blue target in green)
if nothing displayed do :
ll /usr/builtin/sbin/apkg
if exist create a link to test BUT it's temporary due to the fact that after a reboot the link disappear

I use apkg to test is myHD APKG is enable ... so if Asustor apkg program is not present ... I get a Disable status (no value) for myHD and stop starting it.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Warlock
Posts: 9
Joined: Fri Aug 02, 2019 1:50 pm

Re: Problem Installation myHD 0.9.4

Post by Warlock »

Hi,

Web Server is now running, nerw tab stays open, but an error message appears, as it does not connect.
Coming back to your request, here is the outcome for ll /usr/sbin/apkg

lrwxrwxrwx 1 root root 72 Oct 9 2018 /usr/sbin/apkg -> /asustor/branch3_2_2018_10_09/x64_g3/x64_g3/target/usr/builtin/sbin/apkg

That is the colouring.

For your second request the outcome is

-rwxr-xr-x 1 root root 36.9K Oct 9 2018 /usr/builtin/sbin/apkg*

Linux/NAS-Newbie question: What are the next steps I need to perform?

Thanks a lot for your support and patience

Warlock
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Problem Installation myHD 0.9.4

Post by father.mande »

Hi,
Warlock wrote:Hi,
Web Server is now running, nerw tab stays open, but an error message appears, as it does not connect.
Coming back to your request, here is the outcome for ll /usr/sbin/apkg
lrwxrwxrwx 1 root root 72 Oct 9 2018 /usr/sbin/apkg -> /asustor/branch3_2_2018_10_09/x64_g3/x64_g3/target/usr/builtin/sbin/apkg
That is the colouring.
For your second request the outcome is
-rwxr-xr-x 1 root root 36.9K Oct 9 2018 /usr/builtin/sbin/apkg*
Linux/NAS-Newbie question: What are the next steps I need to perform?
Thanks a lot for your support and patience
Warlock
1 web ... please provide a screen capture of the error or the error value

2 the link /usr/sbin/apkg point to a non-existent program (in red ... it's why I ask you the color) IT'S TOTALLY ABNORMAL ... please open a support request to Asustor
... if you are not at last version of firmware ... do an update
... I don't know your model BUT 3.2.x is normally obsolete ... please use 3.3.x or 3.4 (if stable ... I think)

If updating firmware don't solve problems (no need to reinstall myHD) ... just verify /usr/sbin/apkg link ... please return the same output for debugging.

I used A.D.M. 3.4.1.R7Q4 ... and own only ONE Asustor ... so I can't test with "old" 3.2.x

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Warlock
Posts: 9
Joined: Fri Aug 02, 2019 1:50 pm

Re: Problem Installation myHD 0.9.4

Post by Warlock »

Hi there,

the update did the trick.
Now it looks the following:

root@AS6204T:/volume1/.@root # ll /usr/sbin/apkg
lrwxrwxrwx 1 root root 22 Jul 29 12:04 /usr/sbin/apkg -> /usr/builtin/sbin/apkg*
root@AS6204T:/volume1/.@root # ll /usr/builtin/sbin/apkg
-rwxr-xr-x 1 root root 37.0K Jul 29 12:09 /usr/builtin/sbin/apkg*


root@AS6204T:/volume1/.@root # myHD status
==== is myHD running ?
==== myHD is running
==== myHD Version 0.9.4
====
==== Ubuntu Version in use : 1804
====
==== PID is 12224
====
==== List of tasks running in myHD
==== ==== PID are internal to myHD not as in A.D.M.
==== ==== user name are internal to myHD not as in A.D.M.
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 13:55 ? 00:00:00 /bin/bash
root 69 1 0 13:55 ? 00:00:00 /usr/sbin/cron
message+ 89 1 0 13:55 ? 00:00:00 /usr/bin/dbus-daemon --system
root 96 1 0 13:55 ? 00:00:00 /usr/sbin/dropbear -p 6222 -W 65536
admin 151 1 0 13:56 ? 00:00:00 /bin/bash /myHD_scripts/bin/myserv_user
astr 167 1 0 13:56 ? 00:00:00 /bin/bash /myHD_scripts/bin/myserv_user
root 186 1 0 14:10 ? 00:00:00 ps -eaf
====
==== List of user know by myHD
LIST of user in myHD :
root (NOT Asustor root user but real root myHD user)
admin
astr (it's Asustor root user MAPPED as astr user in myHD)
End of the list
====
==== port used by myHD internal dropbear server
Internal Listen interface and port used :
DROPBEAR_PORT=6222
====
==== List shared ressources defined in myHD

Currently the only thing that does not work, is the Webui. Still I get the popup, but then a timeout and no chance to fill in the login data.
Webserver is active.

Cheers

Warlock
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Problem Installation myHD 0.9.4

Post by father.mande »

Hi,

Hum!, the problem is if other things was incorrect when install have been done ... perhaps ... an uninstall then reinstall of myHD can solve the problem but I am not sure it's new for me ...
If you uninstall ... please use myHD command : myHD uninstall_myHD
BUT please wait, I will check before ...

Please can you provide the content of /tmp/start_myHD.log

I suppose somethings is not installed in web server, please wait I will check, install if myHD is done in three phases
... one is download of Ubuntu env.
... second is when myHD start the first time
... third is when myHD start

I will come back later with some verification to do.

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

Re: Problem Installation myHD 0.9.4

Post by father.mande »

Hi,

for the Apache problem, please can you do :
before try connecting to the web server using any browser ... to be sure it is enabled and working : http://your-nas_ip/ or http://your-nas_ip:PORT/ if you change default port (80 to other value) use https if you force using https .

cat /usr/builtin/etc/apache2/mods-available/authn_core.conf
ll /usr/builtin/lib/apache2/modules/mod_authn_core.so
ll /usr/builtin/etc/apache2/mods-enabled/authn_core.conf


then if all exist try :
/usr/builtin/etc/init.d/S54apache2 restart

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Warlock
Posts: 9
Joined: Fri Aug 02, 2019 1:50 pm

Re: Problem Installation myHD 0.9.4

Post by Warlock »

HI,

as requested, here comes the content of the log:

myHD start ... requested
get keys from Asportal / get sound def.
myHD astr user exist ...
Download Ubuntu if not yet available
Now start jchroot in background
now start in background a survey to manage a clean exit
time to do extra works in myHD
set keys and files for user admin
set keys and files for user astr
create or verify authorized_keys for ADM root user
keys for myHD root user is already installed
Background interface to solve some launch problems (like AppImage)
Start background interface for user admin
Start background interface for user astr
Init alsa


Cheers

Warlock
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: Problem Installation myHD 0.9.4

Post by father.mande »

Hi,

try also to change browser, especially if you use windows IE

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

Re: Problem Installation myHD 0.9.4

Post by father.mande »

Hi,
Warlock wrote:HI,
as requested, here comes the content of the log:
Warlock
OK nothing special ... no error reported (not blocking error)

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “myHD”