No NOVNC. Changing Port did not fix. Anyone have success with nightlies?

RSVP

Explorer
Joined
Feb 11, 2016
Messages
73
Hi,
So I blindly updated and overlooked the known bug. I read some successes about changing the port to 5900. I had no success on existing VM and on trying to install a new VM. I read you can change the train to nighly, but I no longer see the option to change trains. So curious if anyone has done this? If so how? And did it fix the VNC issue. Thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700

RSVP

Explorer
Joined
Feb 11, 2016
Messages
73
You need to go to the manual update file and download that for the master branch here:


Then on the updates page, apply manual update and supply the file and tell it where to temporarily store.
Good Morning and thank you for a resopnse. Making my first cuppa, so pardon me not catching on here. I tried the file at the bottom there. And I get

EFAULT] Unable to downgrade from TrueNAS-13.0-RELEASE to TrueNAS-13.0-MASTER-202205050459​

FAILED. Am I using the wrong file? Really bumbed I updated. I dont know why I do that anymore LOL.

Updated to say got caffeine and still stuck here. Thanks
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Looks like that "latest" file is from before the release date, so maybe there's a need to wait for a new MASTER to come post RELEASE.
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
It means it will be in 13.0-U1 in June, and 13.1 nighlty builds as soon as they are fixed (appear to not upload images since May 5th, I've notified QE team).
 

Punderino

Cadet
Joined
May 31, 2022
Messages
5
Really sucks I went through the same rollercoaster of emotions, trying to update to the nightly and it being older than the release. I guess we just play the waiting game? Changing the port to 5900 didn't fix it for me either.
 

awasb

Patron
Joined
Jan 11, 2021
Messages
415
It's quite easy to fix. Browse to the solution/commit in the repo, get the committed changes:


Open terminal and search vor vm.py:

Code:
root@truenas ~ # find / -name vm.py


edit file deleting the erroneous lines, add in the corrected ones:

Code:
root@truenas ~ # vi /usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py


Restart middlewared:

Code:
root@truenas ~ # service middlewared restart


Try to restart the VM and connect to it. It worked for me (though the port reference is still wrong: second digit reading from left to right in the connect URL is still diminished by 1 for the real connect URL; changing by hand works).
 
Last edited:

Punderino

Cadet
Joined
May 31, 2022
Messages
5
It's quite easy to fix. Browse to the solution/commit in the repo, get the committed changes:


Open terminal and search vor vm.py:

Code:
root@truenas ~ # find / -name vm.py


edit file deleting the erroneous lines, add in the corrected ones:

Code:
root@truenas ~ # vi /usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py


Restart middlewared:

Code:
root@truenas ~ # service middlewared restart


Try to restart the VM and connect to it. It worked for me (though the port reference is still wrong: second digit reading from left to right in the connect URL is still diminished by 1 for the real connect URL; changing by hand works).
That's what I ended up doing except I just replaced the entire vm.py file. I found it easiest to just delete the vnc device and readd it without touching it and it'll work.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Fix worked great, thanks for the help!

However, I think I may have found another bug if someone else could confirm it.
Basically, after using the VM for some time through VNC, one of the next reconnects (randomly) will crash bhyve.
I posted about it in more details here.
 

Punderino

Cadet
Joined
May 31, 2022
Messages
5
Fix worked great, thanks for the help!

However, I think I may have found another bug if someone else could confirm it.
Basically, after using the VM for some time through VNC, one of the next reconnects (randomly) will crash bhyve.
I posted about it in more details here.
I replaced the vm.py with the latest from GitHub entirely and am not experiencing that issue, but I'm also using a different VNC client.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I replaced the vm.py with the latest from GitHub entirely and am not experiencing that issue, but I'm also using a different VNC client.
Yeah. As I noted on the other thread. There's another bug logged against this and other people besides me also experienced it.

For now, I've worked around the issue by simply installing a VNC server on the guest OS itself so I can avoid using the bhyve VNC. It works great and I have not crashed bhyve since then.
 
Top