xpra icon
Bug tracker and wiki

Opened 8 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#2490 closed defect (invalid)

Cannot spin up a HTML mode

Reported by: netikras Owned by: netikras
Priority: major Milestone: 4.1
Component: android Version: 4.0.x
Keywords: html web invalid packet header Cc:

Description

xpra start :10 --start-child=xeyes --bind-tcp=0.0.0.0:10000 --html=on --no-daemon

At first I was getting

2019-11-22 10:37:13,840 cannot create group socket '/run/xpra/netikras-PC-10'
2019-11-22 10:37:13,840  [Errno 13] Permission denied
2019-11-22 10:37:13,891 pointer device emulation using XTest

I ran sudo chmod o+w /run/xpra to get around this. Not sure if I did it right, but I no longer see the Permission Denied error.

But I'm still getting an error below when trying to either do xdg-open http://127.0.0.1:10000/ or attach via https://xpra.org/html5/connect.html .

2019-11-22 10:51:08,744 pointer device emulation using XTest
2019-11-22 10:51:08,797 Error: cannot find the html web root
2019-11-22 10:51:08,797  '/usr/share/xpra/www' does not exist
2019-11-22 10:51:09,541 OpenGL is supported on display ':10'
<...>
2019-11-22 10:51:19,831 Error: tcp connection failed:
2019-11-22 10:51:19,832  packet from 127.0.0.1:47112
2019-11-22 10:51:19,832  received on 0.0.0.0:10000
2019-11-22 10:51:19,832  invalid packet header, HTTP GET request

Attaching a full log.

Am I doing something wrong?

xpra --version: xpra v4.0-r24461
pip show websockify | grep -i vers
Version: 0.9.0

Attachments (1)

xpra.log (4.1 KB) - added by netikras 8 weeks ago.
xpra log

Download all attachments as: .zip

Change History (4)

Changed 8 weeks ago by netikras

Attachment: xpra.log added

xpra log

comment:1 Changed 8 weeks ago by Antoine Martin

Owner: changed from Antoine Martin to netikras

cannot create group socket

See wiki/FAQ

Error: cannot find the html web root
 '/usr/share/xpra/www' does not exist

Which xpra package did you install?
This directory must exist, that is the html5 client.

pip show websockify | grep -i vers

Websockify is not required or used by xpra since v2.4: #2121.

Last edited 8 weeks ago by Antoine Martin (previous) (diff)

comment:2 Changed 5 weeks ago by netikras

Resolution: invalid
Status: newclosed

Thanks Antoine for the hint!

though I feel stupid now :) All I needed it the obvious thing: apt install xpra-html5. Somehow I was under impression that the html5 client comes OOTB with the xpra package. After reading wiki/Clients/HTML5 I did not even think I'd need to install smth else :)

Anyways, my bad. Thanks again!
I'm very glad you folks are doing this project. It's exactly what I've been looking for for a while now. TA!

Last edited 5 weeks ago by Antoine Martin (previous) (diff)

comment:3 Changed 5 weeks ago by Antoine Martin

Somehow I was under impression that the html5 client comes OOTB with the xpra package

It is a Recommends dependency of the main xpra package.
So you must have used --no-install-recommends when you installed xpra.

I have updated the wiki page: wiki/Clients/HTML5 (removed websockify, etc)

Note: See TracTickets for help on using tickets.