xpra icon
Bug tracker and wiki

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#1630 closed defect (invalid)

Failed to create socket and run html server

Reported by: sheenam Owned by: sheenam
Priority: major Milestone: 2.2
Component: html5 Version: 1.0.x
Keywords: Cc:

Description (last modified by Antoine Martin)

2017-08-31 10:19:06,579 created unix domain socket: /home/sheenam/.xpra/Server-10^[[0m
^[[33m2017-08-31 10:19:06,579 Warning: failed to create socket directory '/var/run/xpra'^[[0m
^[[33m2017-08-31 10:19:06,579  [Errno 13] Permission denied: '/var/run/xpra'^[[0m
^[[33m2017-08-31 10:19:06,579 Warning: cannot create socket '/var/run/xpra/Server-10'^[[0m
^[[33m2017-08-31 10:19:06,579  [Errno 2] No such file or directory^[[0m
^[[33m2017-08-31 10:19:06,579  /var/run/xpra does not exist^[[0m
^[[33m2017-08-31 10:19:06,579  user 'sheenam' is a member of groups: adm, cdrom, sudo, dip, plugdev, lpadmin, sambashare, xpra^[[0m
/bin/sh: 1: dbus-launch: not found
dbus-launch failed to start using command 'dbus-launch --close-stderr':
 exit code is 127
^[[33m2017-08-31 10:19:06,609 Warning: menu forwarding is disabled:^[[0m
^[[33m2017-08-31 10:19:06,609  cannot load dbus helper: org.freedesktop.DBus.Error.Spawn.ExecFailed: //bin/dbus-launch terminated abnormally without any error message^[$
^[[33m2017-08-31 10:19:06,736 Warning: libvpx ABI version 5 is too old:^[[0m
^[[33m2017-08-31 10:19:06,736  disabling YUV444P support with VP9^[[0m
^[[33m2017-08-31 10:19:06,778 Warning: no X11 RandR support on :10^[[0m
^[[31m2017-08-31 10:19:07,231 Error: cannot import websockify connection handler:^[[0m
^[[31m2017-08-31 10:19:07,231  cannot import name WebSocketRequestHandler^[[0m
^[[31m2017-08-31 10:19:07,231  the html server will not be available^[[0m
^[[33m2017-08-31 10:19:07,310 Warning: webcam forwarding is disabled^[[0m
^[[33m2017-08-31 10:19:07,311  the virtual video directory '/sys/devices/virtual/video4linux' was not found^[[0m
^[[33m2017-08-31 10:19:07,311  make sure that the 'v4l2loopback' kernel module is installed and loaded^[[0m
2017-08-31 10:19:07,311 found 0 virtual video devices for webcam forwarding^[[0m
2017-08-31 10:19:07,318 pulseaudio server started with pid 1985^[[0m
/bin/sh: 1: pulseaudio: not found
Warning: failed to import GStreamer:
 GStreamer 1.0: Namespace Gst not available
 GStreamer 0.10: No module named pygst
^[[31m2017-08-31 10:19:07,559 Error: failed to query sound subsystem:^[[0m
^[[31m2017-08-31 10:19:07,559  query did not return any data^[[0m
^[[33m2017-08-31 10:19:07,562 Warning: failed to load or register our dbus notifications forwarder:^[[0m
^[[33m2017-08-31 10:19:07,562  org.freedesktop.DBus.Error.Spawn.ExecFailed: //bin/dbus-launch terminated abnormally without any error message^[[0m
^[[33m2017-08-31 10:19:07,562  if you do not have a dedicated dbus session for this xpra instance,^[[0m
^[[33m2017-08-31 10:19:07,562  use the 'notifications=no' option^[[0m
^[[33m2017-08-31 10:19:07,563 Warning: cannot load dbus helper:^[[0m
^[[33m2017-08-31 10:19:07,563  org.freedesktop.DBus.Error.Spawn.ExecFailed: //bin/dbus-launch terminated abnormally without any error message^[[0m
^[[31m2017-08-31 10:19:07,567 dbus server error

Attachments (3)

xpraconfig.txt (7.6 KB) - added by sheenam 3 months ago.
1. xpra showconfig file
_0.log (11.3 KB) - added by sheenam 3 months ago.
2. Log file
xpra_info.txt (23.2 KB) - added by sheenam 3 months ago.
3. xpra info(command output)

Download all attachments as: .zip

Change History (9)

comment:1 Changed 3 months ago by sheenam

Summary: Fiailed to create socket and run html serverFailed to create socket and run html server

xpra v1.0.7-r16697
There is no xpra in /var/run .. I am not sure what is the problem. Please help

comment:2 Changed 3 months ago by Antoine Martin

Description: modified (diff)
Owner: changed from Antoine Martin to sheenam

Please see wiki/ReportingBugs and provide the details required.

comment:3 Changed 3 months ago by sheenam

Operating System: Ubuntu 14.04 (No Desktop) virtual machine running on windows 8 host
xpra config: I attached file name xpraconfig.txt
Commands used: xpra start --bind-tcp=0.0.0.0:10000 --html=on --start-child=wireshark
xpra info : I attached file name xpra_info.txt
software installed from : https://xpra.org/dists/trusty/main/binary-amd64/
Xpra version: xpra v1.0.7-r16697
Log file : file attached with name 0.log

I am trying to open wireshark app with browser using : localhost:10000 and on windows 8 host : ip:10000 but I can't open wireshark with browser in both.
I tried using xterm as well but even I can't access xterm using browser.

Last edited 3 months ago by sheenam (previous) (diff)

Changed 3 months ago by sheenam

Attachment: xpraconfig.txt added
  1. xpra showconfig file

Changed 3 months ago by sheenam

Attachment: _0.log added
  1. Log file

Changed 3 months ago by sheenam

Attachment: xpra_info.txt added
  1. xpra info(command output)

comment:4 Changed 3 months ago by Antoine Martin

Resolution: invalid
Status: newclosed

The error is right there in your log output:

Error: cannot import websockify connection handler:
 cannot import name WebSocketRequestHandler
 the html server will not be available

The version of websockify in Ubuntu Trusty is too old: http server on Ubuntu Trusty.

comment:5 Changed 3 months ago by sheenam

Ohh I thought so but can you please help me with how to install it from git?
I tried apt-get but it is unable to locate setuptools and pip as well.

I used "git clone https://github.com/novnc/websockify" and have websockify directory. Please tell me what commands to use now to install ?

I am new to Linux sorry for this question.

Thank you so much

comment:6 Changed 3 months ago by Antoine Martin

Untested:

  • make sure to remove the websockify version installed by your package manager, if any:
    apt-get remove websockify
    
  • install setuptools:
    apt-get install python-setuptools
    

(you may also be able to use python-pip)

  • use setuptools to install websockify:
    easy_install websockify
    
Note: See TracTickets for help on using tickets.