[myHD 1.0.2] Application server for Kodi, Plex, etc.
- father.mande
- Posts: 1819
- youtube meble na wymiar Warszawa
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi,
Sorry for the delay, I had really target to provide myHD 2.x before general delivery of ADM 4, but some health problem generate delay.
segfault are an ADM problem with applog application (ticket is open but not solved), you can ignore it (myHD 1.x or 2.x)
only work around is to use the applog from ADM 3.x ... the problem is a lack of log information.
After the tmux problem, be sure to have stopped myHD, because the crash don't kill the namespace.
normally a stop then a start in terminal can solve it
in some circumstance a reboot can also used as a solution, but it's difficult for some configuration.
if this don't solve the problem, please do in a terminal UNDER root (not admin) / your_admin_password (same for the two)
/bin/sh -x /usr/local/AppCentral/myHD/myHD.sh stop
then
/bin/sh -x /usr/local/AppCentral/myHD/myHD.sh start
to get a full log.
Philippe.
NB myHD 2 is in packaging phase for the Beta version.
Sorry for the delay, I had really target to provide myHD 2.x before general delivery of ADM 4, but some health problem generate delay.
segfault are an ADM problem with applog application (ticket is open but not solved), you can ignore it (myHD 1.x or 2.x)
only work around is to use the applog from ADM 3.x ... the problem is a lack of log information.
After the tmux problem, be sure to have stopped myHD, because the crash don't kill the namespace.
normally a stop then a start in terminal can solve it
in some circumstance a reboot can also used as a solution, but it's difficult for some configuration.
if this don't solve the problem, please do in a terminal UNDER root (not admin) / your_admin_password (same for the two)
/bin/sh -x /usr/local/AppCentral/myHD/myHD.sh stop
then
/bin/sh -x /usr/local/AppCentral/myHD/myHD.sh start
to get a full log.
Philippe.
NB myHD 2 is in packaging phase for the Beta version.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
-
- Posts: 4
- Joined: Fri Mar 22, 2019 6:58 pm
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Thanks for your fast answer. I am really thankful that myHD 2.0 will be soon released. If you need beta testers let me know.
If I try to start/stop myHD then this appears:
This is the log:
If I try to start/stop myHD then this appears:
Code: Select all
root@AS6202T-2EA3:/volume1/.@root # myHD start
myHD start ... requested
get keys from Asportal / get sound def.
myHD astr user exist ...
Download Ubuntu if not yet available
Hum! myHD is already started
root@AS6202T-2EA3:/volume1/.@root # myHD stop
myHD don't run ??? so nothing to do ...
Code: Select all
root@AS6202T-2EA3:/volume1/.@root # /bin/sh -x /usr/local/AppCentral/myHD/myHD.s
h stop
+ NS_HOST=myHD
+ APKG_PATH=/usr/local/AppCentral/myHD
+ APKG_FOLDER=/usr/local
+ MYHD_BIN=/usr/local/AppCentral/myHD/bin
+ BLUE='\033[0;36m'
+ NC='\033[0m'
+ RED='\033[0;31m'
+ BOLD='\033[1m'
+ UNBOLD='\033[0m'
+ WGREEN='<font color=#00FF00>'
+ WRED='<font color=#FF0000>'
+ WBLUE='<font color=#0000FF>'
+ WBLACK='<font color=#000000>'
+ WNC='</font>'
+ WBOLD='<b>'
+ WUNBOLD='</b>'
+ '[' -e /usr/local/AppCentral/myHD/.fresh_install ]
+ '[' root '!=' root ]
+ '[' -e /share/Public/.myHD_trace_run ]
+ '[' '!' -e /tmp/.myHD_lock ]
+ /usr/bin/confutil -get /usr/local/AppCentral/myHD/myHD.conf myHD QPKG_UBUNTU_VERSION
+ UVER=1804
+ '[' 0 -ne 0 ]
+ /usr/bin/confutil -set /usr/local/AppCentral/myHD/myHD.conf myHD UVER 1804
+ CHROOT_PATH=/usr/local/.myHD/1804
+ /usr/bin/confutil -get /usr/local/AppCentral/myHD/myHD.conf myHD CHRT
+ CHRT=jchroot
+ '[' jchroot '=' jchroot ]
+ '[' -e /tmp/jinit.stop ]
+ stop_jchroot
+ '[' -e /tmp/myHD.pid ]
+ echo 'myHD don'"'"'t run ??? so nothing to do ... '
myHD don't run ??? so nothing to do ...
+ exit 1
root@AS6202T-2EA3:/volume1/.@root # /bin/sh -x /usr/local/AppCentral/myHD/myHD.sh start
+ NS_HOST=myHD
+ APKG_PATH=/usr/local/AppCentral/myHD
+ APKG_FOLDER=/usr/local
+ MYHD_BIN=/usr/local/AppCentral/myHD/bin
+ BLUE='\033[0;36m'
+ NC='\033[0m'
+ RED='\033[0;31m'
+ BOLD='\033[1m'
+ UNBOLD='\033[0m'
+ WGREEN='<font color=#00FF00>'
+ WRED='<font color=#FF0000>'
+ WBLUE='<font color=#0000FF>'
+ WBLACK='<font color=#000000>'
+ WNC='</font>'
+ WBOLD='<b>'
+ WUNBOLD='</b>'
+ '[' -e /usr/local/AppCentral/myHD/.fresh_install ]
+ '[' root '!=' root ]
+ '[' -e /share/Public/.myHD_trace_run ]
+ '[' '!' -e /tmp/.myHD_lock ]
+ /usr/bin/confutil -get /usr/local/AppCentral/myHD/myHD.conf myHD QPKG_UBUNTU_VERSION
+ UVER=1804
+ '[' 0 -ne 0 ]
+ /usr/bin/confutil -set /usr/local/AppCentral/myHD/myHD.conf myHD UVER 1804
+ CHROOT_PATH=/usr/local/.myHD/1804
+ /usr/bin/confutil -get /usr/local/AppCentral/myHD/myHD.conf myHD CHRT
+ CHRT=jchroot
+ echo 'myHD start ... requested'
myHD start ... requested
+ initial_tasks
+ rm -f /usr/local/AppCentral/myHD/myHD.out
+ rm -f /tmp/myHD.pid
+ '[' '!' -e /var/run/utmp ]
+ '[' -e /usr/local/AppCentral/myHD/fstab_temp ]
+ rm -f /usr/local/AppCentral/myHD/fstab_temp
+ touch /usr/local/AppCentral/myHD/fstab_temp
+ '[' '!' -e /usr/local/AppCentral/myHD/fstab_include ]
+ '[' '!' -e /share/Public/myHD_package ]
+ manage_adm_infos_keys
+ echo 'get keys from Asportal / get sound def.'
get keys from Asportal / get sound def.
+ '[' '!' -e /root/.ssh ]
+ '[' '!' -e /root/.ssh/id_rsa ]
+ '[' '!' -e /root/.ssh/id_rsa.pub ]
+ '[' '!' -e /home/admin/.ssh ]
+ '[' '!' -e /home/admin/.ssh/id_rsa ]
+ '[' '!' -e /home/admin/.ssh/id_rsa.pub ]
+ grep -q ^astr: /etc/passwd
+ '[' 0 -eq 0 ]
+ grep ^astr: /etc/passwd
+ grep -q 'myHD user'
+ '[' 0 -eq 0 ]
+ echo 'myHD astr user exist ...'
myHD astr user exist ...
+ '[' -e /usr/local/.myHD/ ]
+ cp -p /usr/local/AppCentral/myHD/bin/uninstall_environment.sh /usr/local/.myHD/
+ cp -p /usr/local/AppCentral/myHD/bin/uninstall_apkg.sh /usr/local/.myHD/
+ '[' '!' -e /etc/sudoers.d/001_myHD ]
+ '[' '!' -e /MHD/lib ]
+ '[' -e /usr/local/AppCentral/myHD/pre_load.sh ]
+ myhd_download_env
+ echo 'Download Ubuntu if not yet available'
Download Ubuntu if not yet available
+ /usr/bin/confutil -get /usr/local/AppCentral/myHD/myHD_1804.conf 1804 INSTALLED
+ INSTALLED=TRUE
+ '[' TRUE '=' FALSE ]
+ cp -p /usr/local/AppCentral/myHD/scripts/bin/generate_keys.sh /usr/local/AppCentral/myHD/scripts/bin/mount_via_sshfs.sh /usr/local/AppCentral/myHD/scripts/bin/mountall.sh /usr/local/AppCentral/myHD/scripts/bin/myserv /usr/local/AppCentral/myHD/scripts/bin/myserv_user /usr/local/AppCentral/myHD/scripts/bin/rc.local /usr/local/AppCentral/myHD/scripts/bin/rcK /usr/local/AppCentral/myHD/scripts/bin/rcS /usr/local/AppCentral/myHD/scripts/bin/start_myserv.sh /usr/local/AppCentral/myHD/scripts/bin/test_pulse_Intel_config.sh /usr/local/AppCentral/myHD/scripts/bin/update_tz.sh /usr/local/AppCentral/myHD/scripts/bin/update_ubuntu_package.sh /usr/local/AppCentral/myHD/scripts/bin/update_user.sh /usr/local/AppCentral/myHD/scripts/bin/www_update_ubuntu_package.sh /usr/local/.myHD/myHD_1804_scripts/bin/
+ /usr/bin/confutil -get /usr/local/AppCentral/myHD/myHD.conf myHD QPKG_FIRST_INSTALL
+ QPKG_FIRST_INSTALL=FALSE
+ '[' FALSE '=' TRUE ]
+ test_apkg_enable
+ /usr/sbin/apkg --info-installed myHD
+ grep Enabled:
+ awk '{print $2}'
+ APKG_ENABLE=Yes
+ '[' Yes '!=' Yes ]
+ ps -eaf+ grep jchroot
+ grep -q myHD
+ '[' 0 -eq 0 ]
+ echo 'Hum! myHD is already started '
Hum! myHD is already started
+ exit 1
- father.mande
- Posts: 1819
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi,
Seems that a previous run is not closed so residual process still exist ... even pid file (/tmp/myHD.pid) is deleted.
please do as root :
ps -eaf | grep -v grep | grep jchroot
if line exist kill the process ex. :
wait for some time ... 10 to 15 sec. to be sure all child are also destroy then try a myHD start
Philippe.
Seems that a previous run is not closed so residual process still exist ... even pid file (/tmp/myHD.pid) is deleted.
please do as root :
ps -eaf | grep -v grep | grep jchroot
if line exist kill the process ex. :
Code: Select all
# ps -eaf | grep -v grep | grep jchroot
root 2723452 1 0 11:32 pts/1 00:00:00 /usr/local/AppCentral/myHD/xbin/jchroot .... etc. etc.
kill -9 2723452
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
-
- Posts: 4
- Joined: Fri Mar 22, 2019 6:58 pm
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi,
still no success with this. I get the message with segmentation fault.
still no success with this. I get the message with segmentation fault.
Code: Select all
root@AS6202T-2EA3:/volume1/.@root # ps -eaf | grep -v grep | grep jchroot
6261 root 0:00 /usr/local/AppCentral/myHD/xbin/jchroot -p /tmp/myHD.pid -f /usr/local/AppCentral/myHD/fstab_myHD /usr/local/.myHD/1804 -- /bin/bash
root@AS6202T-2EA3:/volume1/.@root # kill -9 6261
root@AS6202T-2EA3:/volume1/.@root # myHD start
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
Segmentation fault
now start in background a survey to manage a clean exit
- father.mande
- Posts: 1819
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi,
Segfault IS NOT a problem it's applog (to put message in AppCentral log) that don't work in ADM 4.x (ticket is open)
to veridy use the command dmesg (syslog) you must see something like
I don't understand why Asustor don't solve this ... because the 3.x version of applog works.
to verify if myHD run, do : myHD status
Philippe.
Segfault IS NOT a problem it's applog (to put message in AppCentral log) that don't work in ADM 4.x (ticket is open)
to veridy use the command dmesg (syslog) you must see something like
Code: Select all
[327231.261506] applog[2727301]: segfault at 0 ip 00007f397fe8ed96 sp 00007ffdcf7e0dd8 error 4 in libc-2.27.so[7f397fe1c000+13e000]
[327231.261520] Code: 0f 1f 40 00 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 6a <f3> 0f 6f 20 66 0f 74 e0 66 0f d7 d4 85 d2 74 04 0f bc c2 c3 48 83
to verify if myHD run, do : myHD status
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
- clinton.hall
- Posts: 845
- Joined: Thu May 09, 2013 7:01 pm
- Location: New Zealand
- Contact:
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi All,
Since updating to ADM 4.0 I have experienced an issue with kodi.
I have applied the fixes for tmux and it all works fine, until I turn off my tv... When the tv is turned on, kodi will not display until I restart kodi, or restart xorg.
I know father.mande has indicated issues with xorg. Is this known, or otherwise has anyone else noticed this?
additionally, I am using a cec adapter so that may add a layer of complexity.
Since updating to ADM 4.0 I have experienced an issue with kodi.
I have applied the fixes for tmux and it all works fine, until I turn off my tv... When the tv is turned on, kodi will not display until I restart kodi, or restart xorg.
I know father.mande has indicated issues with xorg. Is this known, or otherwise has anyone else noticed this?
additionally, I am using a cec adapter so that may add a layer of complexity.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T
Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python
Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic
About Me: http://fockwulf.wix.com/index
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T
Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python
Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic
About Me: http://fockwulf.wix.com/index
- father.mande
- Posts: 1819
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
hi,
... you can check if it's the case by using xrandr command (like in this shell)
... seems that xorg don't ask again for EDID, so not informed that screen and resolution change.
unfortunately the only working solution (for me) is to have an HDMI passthrough plug that do at start a response to the Xorg request, then TV is connected on the other side of the plug
this is not a solution for ALL (require hardware) and for some reason some plug don't work (even working in ADM 3.x) ... no idea why ...
best is to open a ticket (no responses for my own) perhaps this awake Asustor on this problem.
On my "old" AS5002T I have also try (with a relative success) to always start the NAS with a powered screen, after I can disconnect it, seems that EDID stay valid ???? idem no idea why ?
F.Y.I. I will deliver a beta of myHD 2.0 soon with new version of all Applications ... but not sure this solve the TV off problem.
I have from some months a limited time to work on it (and myHD 2 is complex by offering a replacement to Asportal with multi-task, taskbar, etc. etc. )
If I can free some time, I can try again to solve this.
Philippe.
It's true I have open a ticket all along the Beta phase and for the stable release (4.x) about problem when tv is off or no screen connected at boot time.clinton.hall wrote:Hi All,
Since updating to ADM 4.0 I have experienced an issue with kodi.
I have applied the fixes for tmux and it all works fine, until I turn off my tv... When the tv is turned on, kodi will not display until I restart kodi, or restart xorg.
I know father.mande has indicated issues with xorg. Is this known, or otherwise has anyone else noticed this?
additionally, I am using a cec adapter so that may add a layer of complexity.
... you can check if it's the case by using xrandr command (like in this shell)
Code: Select all
#!/bin/sh
source /usr/local/AppCentral/xorg/CONTROL/env.sh
xrandr "$@"
unfortunately the only working solution (for me) is to have an HDMI passthrough plug that do at start a response to the Xorg request, then TV is connected on the other side of the plug
this is not a solution for ALL (require hardware) and for some reason some plug don't work (even working in ADM 3.x) ... no idea why ...
best is to open a ticket (no responses for my own) perhaps this awake Asustor on this problem.
On my "old" AS5002T I have also try (with a relative success) to always start the NAS with a powered screen, after I can disconnect it, seems that EDID stay valid ???? idem no idea why ?
F.Y.I. I will deliver a beta of myHD 2.0 soon with new version of all Applications ... but not sure this solve the TV off problem.
I have from some months a limited time to work on it (and myHD 2 is complex by offering a replacement to Asportal with multi-task, taskbar, etc. etc. )
If I can free some time, I can try again to solve this.
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
- clinton.hall
- Posts: 845
- Joined: Thu May 09, 2013 7:01 pm
- Location: New Zealand
- Contact:
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
After playing with things a bit I noticed that resolution in ASUSTOR Portal was always reverting to "ASUSTOR 4k Resolution 30 Hz" regardless of what options I had set (either "Auto" or "std_1920x1080@60.00"
So, I have found a temporary fix to this issue.
in /volume1/.@plugins/AppCentral/xorg/xorg.conf I added the following.
In Section Device
In section Screen
and then added section Monitor
Note. I got the modeline from reading the /volume1/.@plugins/AppCentral/xorg/var/log/Xorg.0.log
So now my /volume1/.@plugins/AppCentral/xorg/xorg.conf looks like this:
I am not sure if all changes mentioned above are required... I had multiple attempts at different things (including setting an edid etc.). In the end this combination works for me. When I turn off the tv, then start again, kodi (or whatever was in Asustor Portal) is displaying and working.
So, I have found a temporary fix to this issue.
in /volume1/.@plugins/AppCentral/xorg/xorg.conf I added the following.
In Section Device
Code: Select all
Option "ConnectedMonitor" "HDMI1"
Code: Select all
Monitor "HDMI"
SubSection "Display"
Virtual 1920 1080
Modes "1920x1080"
Code: Select all
Section "Monitor"
Identifier "HDMI1"
Modeline "1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Option "PreferredMode" "1920x1080"
EndSection
So now my /volume1/.@plugins/AppCentral/xorg/xorg.conf looks like this:
Code: Select all
Section "ServerLayout"
Identifier "X.org Configured"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "off"
EndSection
Section "Files"
ModulePath "/usr/local/AppCentral/xorg/usr/lib"
FontPath "/usr/local/AppCentral/xorg/usr/share/fonts/truetype/uming"
FontPath "/usr/local/AppCentral/xorg/usr/share/fonts/truetype/baekmuk"
FontPath "built-ins"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "CorePointer"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Device"
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
# Option "NoAccel" "True"
Option "AccelMethod" "uxa"
Option "ConnectedMonitor" "HDMI1"
EndSection
Section "Monitor"
Identifier "HDMI1"
Modeline "1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Option "PreferredMode" "1920x1080"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Card0"
Monitor "HDMI"
SubSection "Display"
Virtual 1920 1080
Modes "1920x1080"
EndSubSection
EndSection
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T
Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python
Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic
About Me: http://fockwulf.wix.com/index
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T
Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python
Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic
About Me: http://fockwulf.wix.com/index
- father.mande
- Posts: 1819
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi,
Thanks, I will test also, I had try to add a monitor but perhaps forgot somethings (modeline) ... and due to the Beta phase, I have post the problem to support (one remember post for all Beta and final stable) and stop working on it .
I will suggest to support to test your workaround for future update of Xorg .
for the modeline, Asustor provide cvt in Xorg ... so it's possible to get them (with a monitor connected) without exploring X log.
Again, thanks.
Philippe.
Thanks, I will test also, I had try to add a monitor but perhaps forgot somethings (modeline) ... and due to the Beta phase, I have post the problem to support (one remember post for all Beta and final stable) and stop working on it .
I will suggest to support to test your workaround for future update of Xorg .
for the modeline, Asustor provide cvt in Xorg ... so it's possible to get them (with a monitor connected) without exploring X log.
Again, thanks.
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
-
- Posts: 20
- Joined: Wed Feb 21, 2018 9:22 pm
Re: [myHD 1.0.2] Application server for Kodi, Plex, etc.
Hi,
I try to understand all posts. Is MyHD 1.0.2 compatible with ADM 4? (with some simple workaround? for a beginner).
Even if there is MyHD 2 in beta, will there be a summary of the additional steps to be done to make MyHD 1.02 work with ADM 4?
Thanks
I try to understand all posts. Is MyHD 1.0.2 compatible with ADM 4? (with some simple workaround? for a beginner).
Even if there is MyHD 2 in beta, will there be a summary of the additional steps to be done to make MyHD 1.02 work with ADM 4?
Thanks