Hi,
I have an issue where scripts dont run on my Hometroller SEL after mono Upgrade.
**** First som info on how i upgraded mono ****
Info on my Hometroller SEL:
I had read that upgrading the mono could be tricky so i contacted HomeSeer support and the gave me this recipe:
THIS WILL ONLY WORK ON THE HOMETROLLER SEL.
Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:14:25 UTC 2019)
LLVM: yes(600)
Suspend: hybrid
GC: sgen (concurrent by default)
All these scripts had been running fine for a long time.
After reading som more on this forum I learned that it could be an issue with vbnc.
I tried installing / updating vbnc with this command:
sudo apt-get install mono-vbnc
After that I still get error but now the following error in the log:
Example from a immediate script:
Anyone know what to do?
Best regards,
Torkil
I have an issue where scripts dont run on my Hometroller SEL after mono Upgrade.
**** First som info on how i upgraded mono ****
Info on my Hometroller SEL:
running command lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Before mono upgrade it was running a very old version of mono:
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Before mono upgrade it was running a very old version of mono:
running command mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.comCopyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
I had read that upgrading the mono could be tricky so i contacted HomeSeer support and the gave me this recipe:
THIS WILL ONLY WORK ON THE HOMETROLLER SEL.
Some plug-ins require Mono version 5 or higher. If you purchased your SEL after 03/01/18, you do not need this script.
DO NOT RUN THIS SCRIPT ON A SYSTEM THAT ALREADY HAS MONO 5 OR HIGHER. To check, follow steps 1-2, and 7. If you do not feel comfortable running the following commands, please contact support and we can remote in and do it for you
To check the systems current mono version run the command "mono --version" from the Linux tools page or from putty.
1) Navigate to Tools > System > Linux Tools
2) Login with the system password that you created when you first set up the device
3) Download the update script using the following command, without quotes "sudo wget
homeseer.com/linux/sel/selmono5.sh"
4) Run the script "sudo sh selmono5.sh"
5) The system will automatically reboot, once it is online, test to make sure the error in your log is gone.
7) After completion, connect back to your SEL and run the following command in Linux Tools (Steps 1-2), "mono --version".
*This procedure can also be performed using SSH (putty)
If you run the above script and get dependency errors (such as libglib2.0 missing). Do the following:1) Download the update script using the following command, without quotes "sudo wget
homeseer.com/linux/sel/selmonocomplete.sh"
2) Run the script "sudo sh selmonocomplete.sh"
3) The system will automatically reboot, once it is online, test to make sure the error in your log is gone.
I had to go through all the steps (1-7 and then 1-3) but atleast mono was upgraded:
homeseer@hometrollerSEL:~$ mono --versionI had to go through all the steps (1-7 and then 1-3) but atleast mono was upgraded:
Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:14:25 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
Interpreter: yesLLVM: yes(600)
Suspend: hybrid
GC: sgen (concurrent by default)
**** Now to the problem with running / compiling cscripts ****
After getting mono upgraded none of my scripts would run, not even startup.vb.
I got this error in the log from both immediate scripts and script files:
I got this error in the log from both immediate scripts and script files:
Error | Compiling script Startup.vb: Error running vbnc: Cannot find the specified file |
After reading som more on this forum I learned that it could be an issue with vbnc.
I tried installing / updating vbnc with this command:
sudo apt-get install mono-vbnc
After that I still get error but now the following error in the log:
Example from a immediate script:
Jul-18 10:29:46 | Error | Compiling script /tmp/K2.vb: |
Jul-18 10:29:46 | Event | Running script statement immediately: &hs.SetDeviceString(976, NOW.ToString("HH:mm"),True) |
Best regards,
Torkil
Comment