Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server startup error with no socket-dirs #1323

Closed
totaam opened this issue Sep 24, 2016 · 17 comments
Closed

server startup error with no socket-dirs #1323

totaam opened this issue Sep 24, 2016 · 17 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Sep 24, 2016

Issue migrated from trac ticket # 1323

component: server | priority: major | resolution: needinfo

2016-09-24 23:42:22: kc7noa created the issue


This is once posted as fixed .. and yet im getting this in teh log ..

(process:4494): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
xpra main error:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/xpra/scripts/main.py", line 126, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/usr/local/lib/python2.7/dist-packages/xpra/scripts/main.py", line 1007, in run_mode
    return run_server(error_cb, options, mode, script_file, args, current_display)
  File "/usr/local/lib/python2.7/dist-packages/xpra/scripts/server.py", line 1143, in run_server
    local_sockets = setup_local_sockets(opts.bind, opts.socket_dir, opts.socket_dirs, display_name, clobber, opts.mmap_group, opts.socket_permissions)
  File "/usr/local/lib/python2.7/dist-packages/xpra/scripts/server.py", line 434, in setup_local_sockets
    dotxpra = DotXpra(socket_dir or socket_dirs[0])
IndexError: list index out of range

This is on an Arm, Ubuntu 16.04 kernel 3.8.14
Server has no display

@totaam
Copy link
Collaborator Author

totaam commented Sep 25, 2016

2016-09-25 04:19:02: antoine changed owner from antoine to kc7noa

@totaam
Copy link
Collaborator Author

totaam commented Sep 25, 2016

2016-09-25 04:19:02: antoine edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Sep 25, 2016

2016-09-25 04:19:02: antoine commented


This is once posted as fixed
[[BR]]
Where?

[[BR]]
You do not have any socket directories defined, this should not happen - r13859 improves the error (but the error will remain).

Since this is a non standard installation, please include the commands that you've used for installing and the commands that you've used for running the server. "xpra showconfig" wouldn't hurt either.

@totaam
Copy link
Collaborator Author

totaam commented Sep 26, 2016

2016-09-26 16:03:50: kc7noa commented


sudo python setup.py install
xpra start :100 --start-child=xterm
odroid@odroid:~$ xpra showconfig
auth                           = ''
auto-refresh-delay             = 0.15
av-sync                        = True
bell                           = True
bind                           = '~/.xpra/'
bind-tcp                       = []
bind-vsock                     = []
border                         = 'auto,5:off'
clipboard                      = 'yes'
clipboard-filter-file           = ''
compression_level              = 1
compressors                    = 'lz4', 'lzo', 'zlib'
csc-modules                    = 'swscale', 'cython'
cursors                        = True
daemon                         = True
dbus-control                   = True
dbus-launch                    = 'dbus-launch --close-stderr'
dbus-proxy                     = True
debug                          = ''
delay-tray                     = False
desktop-scaling                = 'auto'
display                        = ''
displayfd                      = False
download-path                  = '~/Downloads'
dpi                            = 0
encoding                       = ''
encodings                      = 'h264', 'vp9', 'vp8', 'mpeg4', 'png', 'png/P', 'png/L', 'webp', 'rgb', 'rgb24', 'rgb32', 'jpeg', 'h265'
encryption                     = ''
encryption-keyfile             = ''
env                            = '#avoid Ubuntu's global menu, which is a mess and cannot be forwarded:', 'UBUNTU_MENUPROXY=', 'QT_X11_NO_NATIVE_MENUBAR=1', '#fix for MainSoft's MainWin buggy window management:', 'MWNOCAPTURE=true', 'MWNO_RIT=true', 'MWWM=allwm'
exec-wrapper                   = ''
exit-ssh                       = True
exit-with-children             = False
exit-with-client               = False
fake-xinerama                  = True
file-size-limit                = 10
file-transfer                  = True
global-menus                   = True
idle-timeout                   = 0
input-method                   = 'none'
key-shortcut                   = 'Meta+Shift+F1:show_menu', 'Meta+Shift+F2:show_start_new_command', 'Meta+Shift+F3:show_bug_report', 'Meta+Shift+F4:quit', 'Meta+Shift+F5:increase_quality', 'Meta+Shift+F6:decrease_quality', 'Meta+Shift+F7:increase_speed', 'Meta+Shift+F8:decrease_speed', 'Meta+Shift+F10:magic_key', 'Meta+Shift+F11:show_session_info', 'Meta+Shift+F12:toggle_debug', 'Meta+Shift+plus:scaleup', 'Meta+Shift+minus:scaledown', 'Meta+Shift+underscore:scaledown', 'Meta+Shift+KP_Add:scaleup', 'Meta+Shift+KP_Subtract:scaledown', 'Meta+Shift+KP_Multiply:scalereset', 'Meta+Shift+bar:scalereset', 'Meta+Shift+question:scalingoff'
keyboard-sync                  = True
local-clipboard                = 'CLIPBOARD'
log-dir                        = '~/.xpra'
log-file                       = '$DISPLAY.log'
lpadmin                        = '/usr/sbin/lpadmin'
lpinfo                         = '/usr/sbin/lpinfo'
max-size                       = ''
mdns                           = True
microphone                     = 'off'
microphone-codec               = []
min-quality                    = 30
min-speed                      = 30
mmap                           = True
mmap-group                     = False
notifications                  = True
open-command                   = 'xdg-open'
open-files                     = False
opengl                         = None
packet-encoders                = 'rencode', 'bencode', 'yaml'
password-file                  = ''
pdf-printer                    = ''
pings                          = False
postscript-printer             = ''
printing                       = True
pulseaudio                     = True
pulseaudio-command             = 'pulseaudio --start -n --daemonize=false --system=false --exit-idle-time=-1 --load=module-suspend-on-idle '--load=module-null-sink sink_name="Xpra-Speaker" sink_properties=device.description="Xpra\ Speaker"' '--load=module-null-sink sink_name="Xpra-Microphone" sink_properties=device.description="Xpra\ Microphone"' --load=module-native-protocol-unix --load=module-dbus-protocol --log-level=2 --log-target=stderr'
pulseaudio-configure-commands           = 'pactl set-default-sink Xpra-Speaker', 'pactl set-default-source Xpra-Microphone.monitor'
quality                        = 0
readonly                       = False
remote-clipboard               = 'CLIPBOARD'
remote-logging                 = 'both'
remote-xpra                    = '~/.xpra/run-xpra', '$XDG_RUNTIME_DIR/xpra/run-xpra', 'xpra'
resize_display                 = True
server-idle-timeout            = 0
session-name                   = ''
shadow-fullscreen              = False
sharing                        = False
socket-dir                     = ''
socket-dirs           (used)   = []                                <type 'list'>
socket-dirs          (default) = '~/.xpra'                         <type 'list'>
socket-permissions             = '600'
sound-source                   = ''
speaker                        = 'on'
speaker-codec                  = []
speed                          = 0
ssh                            = 'ssh -x'
start                          = []
start-after-connect            = []
start-child                    = []
start-child-after-connect           = []
start-child-on-connect           = []
start-new-commands             = False
start-on-connect               = []
sync-xvfb                      = 0
system-tray                    = True
tcp-auth                       = ''
tcp-encryption                 = ''
tcp-encryption-keyfile           = ''
tcp-proxy                      = ''
title                          = '@title@ on @client-machine@'
tray                           = True
tray-icon                      = ''
use-display                    = False
username                       = 'odroid'
video-decoders                 = 'avcodec2', 'vpx'
video-encoders                 = 'x264', 'vpx'
video-scaling                  = 1
vsock-auth                     = ''
webcam                         = 'auto'
window-close                   = 'auto'
window-icon                    = ''
windows                        = True
wm-name                        = 'Xpra'
xsettings                      = True
xvfb                           = 'Xvfb +extension Composite -screen 0 5760x2560x24+32 -nolisten tcp -noreset -auth $XAUTHORITY'
odroid@odroid:~$

Im also using a Displaylink on /dev/fb1
The display device on dev/fb0 has a defective HDMI output -- non-repairable.

could Xvfb be causing this ? "-screen 0"

I thought this was seen before .... inticket #237 .. but was in different file.

@totaam
Copy link
Collaborator Author

totaam commented Sep 26, 2016

2016-09-26 16:11:25: antoine commented


OK, so the only change in your configuration from the defaults is that you don't have any "socket-dirs" defined.
When running "xpra showconfig" from a terminal, it should get printed out in orange to highlight it.
Please post the output of this command:

python -c "from xpra.platform.paths import get_socket_dirs;print(get_socket_dirs())"

This is what is used to generated "socket-dirs" in your default xpra config. (/etc/xpra/xpra.conf in v0.17.x).
I assume that you are on this version based on the file offsets, please update the ticket "version" attribute to match if that's the case.

@totaam
Copy link
Collaborator Author

totaam commented Sep 26, 2016

2016-09-26 17:42:38: kc7noa commented


odroid@odroid:~/Downloads/xpra-0.17.5$ python -c "from xpra.platform.paths import
> > >  get_socket_dirs;print(get_socket_dirs())"
  File "<string>", line 1
    from xpra.platform.paths import
                                  ^
SyntaxError: invalid syntax
odroid@odroid:~/Downloads/xpra-0.17.5$ 

@totaam
Copy link
Collaborator Author

totaam commented Sep 27, 2016

2016-09-27 12:53:48: antoine changed title from IndexError: list index out of range to server startup error with no socket-dirs

@totaam
Copy link
Collaborator Author

totaam commented Sep 27, 2016

2016-09-27 12:53:48: antoine commented


I have edited comment:4 to use a code block so we can see what you typed, and clearly it's not what I had in comment:3.
Try using cut&paste instead, and make sure not to introduce newlines where there should not be any.

@totaam
Copy link
Collaborator Author

totaam commented Sep 27, 2016

2016-09-27 19:07:10: kc7noa commented


ok ... there were some changes in the formatting due to the email client ... moving forward.

odroid@odroid:~$ python -c "from xpra.platform.paths import get_socket_dirs;print(get_socket_dirs())"
['~/.xpra']
odroid@odroid:~$ 

@totaam
Copy link
Collaborator Author

totaam commented Sep 27, 2016

2016-09-27 19:14:01: kc7noa commented


odroid@odroid:~/.xpra$ ls
:100.log  :100.log.old  :200.log  :200.log.old  run-xpra
odroid@odroid:~/.xpra$ 

@totaam
Copy link
Collaborator Author

totaam commented Sep 28, 2016

2016-09-28 03:32:10: antoine commented


kc7noa: so your get_socket_dirs() returns at least one socket directory ("~/.xpra"), as expected, and this is what should be in your /etc/xpra/xpra.conf. (please attach the file to this ticket)

@totaam
Copy link
Collaborator Author

totaam commented Sep 28, 2016

2016-09-28 04:30:06: kc7noa commented


contents of ...

odroid@odroid:/etc/xpra$ ls
xorg.conf
odroid@odroid:/etc/xpra$ 

there is no xpra.conf in /etc/xpra/

this is the first few lines of xorg.conf thats in /ext/xpra/

# This xorg configuration file is meant to be used by xpra
# to start a dummy X11 server.
# For details, please see:
# https://xpra.org/Xdummy.html

Section "ServerFlags"
  Option "DontVTSwitch" "true"
  Option "AllowMouseOpenFail" "true"
  Option "PciForceNone" "true"
  Option "AutoEnableDevices" "false"
  Option "AutoAddDevices" "false"
EndSection

Section "Device"
  Identifier "dummy_videocard"
  Driver "dummy"
  DacSpeed 600
  Option "ConstantDPI" "true"
  #VideoRam 2048000
  #VideoRam 1024000
  #VideoRam 384000
  VideoRam 256000
  #VideoRam 192000
EndSection

Section "Monitor"
  Identifier "d

Should this file be named xpra.conf ?

@totaam
Copy link
Collaborator Author

totaam commented Sep 28, 2016

2016-09-28 04:32:00: antoine commented


Then your installation is borked, there should be an xpra.conf.
(xorg.conf is something else)

@totaam
Copy link
Collaborator Author

totaam commented Oct 20, 2016

2016-10-20 20:20:42: kc7noa commented


Wow . talk about tired .. i totally missed the fact-- that --- that is my Display config ... awful odd that its in /ect/xpra

Ill search whole drive for xpra.conf

@totaam
Copy link
Collaborator Author

totaam commented Oct 21, 2016

2016-10-21 02:29:55: antoine commented


It isn't odd, xpra ships an xorg.conf to use with Xdummy.

@totaam
Copy link
Collaborator Author

totaam commented Nov 2, 2016

2016-11-02 11:56:32: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Nov 2, 2016

2016-11-02 11:56:32: antoine set resolution to needinfo

@totaam totaam closed this as completed Nov 2, 2016
@totaam totaam added the v0.17.x label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant