I meant replace the ./vbnc script with a new shell script that write out the parameters, not the vb script or aspx page... We need to see what parameters are being passed, as I suspect one of the paths doesn't match so the script doesn't remove the first line from the file past from HS.
Announcement
Collapse
No announcement yet.
Mono 5.x VB/ASPX compatibility issue
Collapse
X
-
Originally posted by Pete View Postthe HS3 Lite machine which doesn't work see multiple paths of VBNC..
ICS-Pine64:~$ find / -name vbnc
/usr/bin/vbnc
/usr/lib/mono/4.5/vbnc
/root/vbnc
Presumably the file /root/vbnc was copied there by you, /root being root user's home directory...
1) what userid is your HS3 is running under? (usually root)
2) What is that user's PATH?
Code:printenv PATH
Comment
-
Removed vbnc from /root..dunno how it got there.
The computer boots up with a user ID ...pete
Runs HS3 using root
pete@ICS-Pine64:~$ printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
looking at the .profile file do not see any reference to mono there.
When mono is running from homeseer for the plugins see it in htop as /usr/bin/mono /opt/HomeSeer/HSPI_OMNI.exe.
- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
Comment
-
Originally posted by Pete View PostRemoved vbnc from /root..dunno how it got there.
The computer boots up with a user ID ...pete
Runs HS3 using root
pete@ICS-Pine64:~$ printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
looking at the .profile file do not see any reference to mono there.
Comment
-
Yes. Confirmed this by shutting down Homeseer and rebooting computer.
SSH'd to computer and reboot it just now testing again...computer did not start...doing a cold boot now...
After it auto started looked at the HS3 logs and all looks good.
Then shut down HS3 via gui and restarted it via ssh command line.
Not seeing any errors on HS3 start up.
Then shut it down again via the HS3 GUI and manually autostarted it via command line.
- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
- 1 like
Comment
-
Originally posted by Pete View PostRemoved vbnc from /root..dunno how it got there.
The computer boots up with a user ID ...pete
Runs HS3 using root
pete@ICS-Pine64:~$ printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
looking at the .profile file do not see any reference to mono there.
When mono is running from homeseer for the plugins see it in htop as /usr/bin/mono /opt/HomeSeer/HSPI_OMNI.exe.
Code:sudo bash -c 'printenv PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Comment
-
root@ICS-Pine64:/# printenv PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
root@ICS-Pine64:/# exit
exit
pete@ICS-Pine64:~$ sudo bash -c 'printenv PATH'
[sudo] password for pete:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
root@ICS-Pine64:/home/pete# find / -name "vbnc*"
/usr/bin/vbnc
/usr/share/man/man1/vbnc.1.gz
/usr/lib/mono/4.5/vbnc
/usr/lib/mono/4.5/vbnc.rsp
/usr/lib/mono/4.5/vbnc.exe
root@ICS-Pine64:/home/pete#
- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
Comment
-
Looks like you've got something odd in one or more startup files. There are a few that may come into play:
~/.bashrc, ~/.profile, ~/.bash_login, ~/.bash_profile
As well as the system wide ones /etc/bash.bashrc, /etc/profile
Some of these are only run for login shells.
"~" represents the user's home directory. To check that,
Code:printenv HOME
Comment
-
Thank you Z.
This is sort of bad cuz I log in a variety of ways...different users or root. Mostly root. The box was updated / upgraded from Ubuntu 16.04 to 18.04 via ssh and root as I have no monitor connected to it.
root@ICS-Pine64:/usr/bin# printenv HOME
/root
root@ICS-Pine64:/usr/bin# exit
exit
pete@ICS-Pine64:~$ printenv HOME
will check out
~/.bashrc, ~/.profile, ~/.bash_login, ~/.bash_profile
Only ~/.bashrc, ~/.profile exist on the two machines. No path statements there.
that said the HS3 Pro box is identically built except that it is running on an Intel iSeries versus an Arm CPU.
For a bit on the ARM could never update Mono because it was not there to update for the ARM 64 bit CPU.
The above written the Pine64 Arm is configured identically to the iSeries Intel box.
Installed mono from this guide (years now)...Download Stable Mono
The two boxes were running Ubuntu 16.04 64 bit and upgraded them to 18.04 this past year via SSH with no issues.
Both boxes are running HS3 V3.0.0.449 (Linux) and Mono V 5.18.0.225.
Arm computer is running Mono Architecture: arm64
Intel computer is running Mono Architecture: amd64- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
Comment
-
Any news?
pete@ICS-Pine64:~$ which vbnc
/usr/bin/vbnc
pete@ICS-Pine64:~$ type vbnc
vbnc is /usr/bin/vbnc
- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
Comment
-
Not yet Z. Yes meant that VBNC was working with it out of the /root directory.
Works fine on the Intel CPU but not on the ARM CPU (Pine64 2Gb computer).
Still have the error below.
xxx- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
Comment
-
Then following bsobel 's suggestion, temporarily modify /usr/bin/vbnc to log to a file like so:
Code:#!/bin/bash # mono vbnc invocation script patched for HS3 aspx compatability logfile=/tmp/$(basename $0)$$.log echo "$0 $@" > $logfile for x do if [[ $x =~ ^/tmp/ && -e $x ]] then (echo "------------"; echo "$x before"; head $x) >> $logfile sed -i '1{/#External/d}' $x (echo "++++++++++++"; echo "$x after"; head $x) >> $logfile fi done exec /usr/bin/mono --debug $MONO_OPTIONS /usr/lib/mono/4.5/vbnc.exe "$@"
Example - after calling test.aspx, two log files appear in /tmp, vbnc26537.log and vbnc26558.log. First one contains
Code:/usr/bin/vbnc /quiet /target:library /out:/tmp/root-temp-aspnet-0/62b0fdd2/App_g lobal.asax_c0nog1vn.dll /r:/usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f1 1d50a3a/Microsoft.CSharp.dll /r:/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e0 89/System.dll /r:/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3 a/System.Configuration.dll /r:/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d5 0a3a/System.Web.dll /r:/usr/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/S ystem.Data.dll /r:/usr/lib/mono/gac/System.Web.Services/4.0.0.0__b03f5f7f11d50a3 a/System.Web.Services.dll /r:/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e 089/System.Xml.dll /r:/usr/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a /System.Drawing.dll /r:/usr/lib/mono/gac/System.EnterpriseServices/4.0.0.0__b03f 5f7f11d50a3a/System.EnterpriseServices.dll /r:/usr/lib/mono/gac/System.IdentityM odel/4.0.0.0__b77a5c561934e089/System.IdentityModel.dll /r:/usr/lib/mono/gac/Sys tem.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization .dll /r:/usr/lib/mono/gac/System.Xaml/4.0.0.0__b77a5c561934e089/System.Xaml.dll /r:/usr/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.Servic eModel.dll /r:/usr/lib/mono/gac/System.ServiceModel.Web/4.0.0.0__31bf3856ad364e3 5/System.ServiceModel.Web.dll /r:/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c56 1934e089/System.Core.dll /r:/usr/lib/mono/gac/System.Web.Extensions/4.0.0.0__31b f3856ad364e35/System.Web.Extensions.dll /r:/usr/lib/mono/gac/System.Data.DataSet Extensions/4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll /r:/usr/l ib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll /r:/us r/lib/mono/gac/System.ComponentModel.DataAnnotations/4.0.0.0__31bf3856ad364e35/S ystem.ComponentModel.DataAnnotations.dll /r:/usr/lib/mono/gac/System.Web.Dynamic Data/4.0.0.0__31bf3856ad364e35/System.Web.DynamicData.dll /r:/usr/lib/mono/gac/S ystem.Data.Linq/4.0.0.0__b77a5c561934e089/System.Data.Linq.dll /r:/usr/lib/mono/ gac/System.Web.ApplicationServices/4.0.0.0__31bf3856ad364e35/System.Web.Applicat ionServices.dll /r:/opt/HomeSeer/html/bin/HSCF.dll /r:/opt/HomeSeer/html/bin/Hom eSeerAPI.dll /r:/opt/HomeSeer/html/bin/HomeSeerUtil.dll /r:/opt/HomeSeer/html/bi n/Scheduler.dll /r:Microsoft.VisualBasic.dll /noconfig /tmp/root-temp-aspnet-0/6 2b0fdd2/App_global.asax_c0nog1vn_1.vb ------------ /tmp/root-temp-aspnet-0/62b0fdd2/App_global.asax_c0nog1vn_1.vb before #ExternalChecksum("/opt/HomeSeer/html/Global.asax","{406ea660-64cf-4c82-b6f0-42d 48172a799}","7AF4B1B52D1D332DD24F634F78F849DC") '------------------------------------------------------------------------------ ' <auto-generated> ' This code was generated by a tool. ' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ ++++++++++++ /tmp/root-temp-aspnet-0/62b0fdd2/App_global.asax_c0nog1vn_1.vb after '------------------------------------------------------------------------------ ' <auto-generated> ' This code was generated by a tool. ' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------
- 1 like
Comment
-
Ran the above posted script.
Here is what I see in the vbnc18864.log
Code:/usr/bin/vbnc /quiet /target:library /out:/tmp/root-temp-aspnet-0/62b0fdd2/App_global.asax_f95889u0.dll /r:/usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll /r:/usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll /r:/usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll /r:/usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll /r:/usr/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll /r:/usr/lib/mono/gac/System.Web.Services/4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll /r:/usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll /r:/usr/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll /r:/usr/lib/mono/gac/System.EnterpriseServices/4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll /r:/usr/lib/mono/gac/System.IdentityModel/4.0.0.0__b77a5c561934e089/System.IdentityModel.dll /r:/usr/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll /r:/usr/lib/mono/gac/System.Xaml/4.0.0.0__b77a5c561934e089/System.Xaml.dll /r:/usr/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll /r:/usr/lib/mono/gac/System.ServiceModel.Web/4.0.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll /r:/usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll /r:/usr/lib/mono/gac/System.Web.Extensions/4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll /r:/usr/lib/mono/gac/System.Data.DataSetExtensions/4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll /r:/usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll /r:/usr/lib/mono/gac/System.ComponentModel.DataAnnotations/4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll /r:/usr/lib/mono/gac/System.Web.DynamicData/4.0.0.0__31bf3856ad364e35/System.Web.DynamicData.dll /r:/usr/lib/mono/gac/System.Data.Linq/4.0.0.0__b77a5c561934e089/System.Data.Linq.dll /r:/usr/lib/mono/gac/System.Web.ApplicationServices/4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll /r:/opt/HomeSeer/html/bin/CSScriptLibrary.dll /r:/opt/HomeSeer/html/bin/HSCF.dll /r:/opt/HomeSeer/html/bin/HomeSeerAPI.dll /r:/opt/HomeSeer/html/bin/HomeSeerUtil.dll /r:/opt/HomeSeer/html/bin/Mail.dll /r:/opt/HomeSeer/html/bin/Mono.CSharp.dll /r:/opt/HomeSeer/html/bin/RssToolkit.dll /r:/opt/HomeSeer/html/bin/Scheduler.dll /r:Microsoft.VisualBasic.dll /noconfig /tmp/root-temp-aspnet-0/62b0fdd2/App_global.asax_f95889u0_1.vb ------------ /tmp/root-temp-aspnet-0/62b0fdd2/App_global.asax_f95889u0_1.vb before #ExternalChecksum("/opt/HomeSeer/html/Global.asax","{406ea660-64cf-4c82-b6f0-42d48172a799}","7AF4B1B52D1D332DD24F634F78F849DC") '------------------------------------------------------------------------------ ' <auto-generated> ' This code was generated by a tool. ' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ ++++++++++++ /tmp/root-temp-aspnet-0/62b0fdd2/App_global.asax_f95889u0_1.vb after '------------------------------------------------------------------------------ ' <auto-generated> ' This code was generated by a tool. ' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------
- Pete
Auto matorHomeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
HS4 Pro - V4.1.10.0 - Ubuntu 18.04/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.12.x
HS4 Lite -X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant
Comment
Comment