Seitanas / kvm-vdi

linux-kvm based VDI solution
MIT License
218 stars 82 forks source link

HTML5 Viewer /tmp dependency conflict with systemd #110

Closed cwriter closed 6 years ago

cwriter commented 6 years ago

systemd marks apache2.service as PrivateTmp=true on newer debian-styled systems. This leads to it being unable to create files/directories (including /tmp/kvm-vdi) in /tmp. A fix could be use an own temporary directory, but I don't know if websocketify can handle different paths.

A workaround is disabling PrivateTmp for now on affected systems. See: https://serverfault.com/a/615054

cwriter

sskras commented 6 years ago

Time to look for $TMPDIR and expand it if present?

cwriter commented 6 years ago

Time to look for $TMPDIR and expand it if present?

Sorry, I didn't get that. Can you please elaborate?

Seitanas commented 6 years ago

This patch should fix the issue. Token files will be written to: https://github.com/Seitanas/kvm-vdi/blob/773ae56e142675cb44d7ea8d2a5591f8ec06542c/functions/config.php_kvm#L86 Afterwards you should change --token-source path when starting websockify.

sskras commented 6 years ago

@cwriter: please ignore. It was a blind suggestion addressed mainly to the developer. But oh well, this is PHP code and @Seitanas seems to already have a var for that matter.

Excuse me for the interruption guys:)

cwriter commented 6 years ago

This patch should fix the issue.

It does 👍

cwriter