Univention Bugzilla – Bug 36106
noVNC error when /var on other partition than /tmp, Failed to connect to server (code: 1006)
Last modified: 2015-01-26 13:26:37 CET
Created attachment 6152 [details] patch for /usr/lib/pymodules/python2.6/univention/uvmm/node.py With a separate /var, the Python operation os.rename() fails on Linux when used with a file that was created with tempfile.NamedTemporaryFile() as that will by default create a file in /tmp. The result will be an empty novnc tokens file in /var/cache/univention-virtual-machine-manager-daemon/novnc.tokens/ an thus no HTML5 client. The appended patch fixes that.
Also PT UCS-4.0-0 with separate partition for /var/
Created attachment 6414 [details] Fix noVNC temporary file location Create the temporary file on the same partition as the final file so an atomic rename can be used to update the file. shortly tested: works as exected
Comment on attachment 6152 [details] patch for /usr/lib/pymodules/python2.6/univention/uvmm/node.py Thank you for your patch, but I prefer to create the file on the same partition and use an atomic rename.
Thank you, your patch works for me on 3.2-4 too.
(In reply to Daniel Tröder from comment #4) > Thank you, your patch works for me on 3.2-4 too. Thank you for the feedback. I'll re-open this bug until the patch is applied to 3.2-x and 4.0-y.
*** This bug has been marked as a duplicate of bug 36988 ***
Verified duplicate