-
Notifications
You must be signed in to change notification settings - Fork 379
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
Issue when getting Hostip on Linux #182
Comments
Thank you for the report and this detailed track-down to the underlying issue! I've applied your suggestion with Could you compare the output of
Good catch! Is fixed, too. |
Me too and, strangely, I do see two IPs know… maybe I tried, yesterday, while docker was doing something with the network (I was doing my tests while waiting for What I am seeing know is
I tried replacing Perhaps, the full list of IPs could be sent to |
Thanks for the test! I've always seen I slightly changed the IP check to prefer
Some sort of additional check might make sense. Basically x11docker just needs one reliable IP from host; it doesn't matter which one, it should just not disappear while in use. So far x11docker relied on |
It does not seem to be the case. Oddly, I only have
You could also use something like |
That is a good idea in general. But I think the current solution will almost always work; after all, the IP is needed for some special setups and fallbacks only. Thank you! |
Running last version from
master
on Funtoo GNU/Linux with sway.(TL;DR: see proposed patch at the end)
When trying to run
jess/spotify
with pulseaudio, I could not launch it twice without a reboot (as in, launch, quit, re-launch). x11docker simply stopped without any error and without opening any window. The problem was the same with other images using pulseaudio. The order did not matter: once one was launched, no other would work (either at the time or after stopping the first).After taking a look at the logs in
--verbose
, I found variations of:Looking at container.CMD.sh, we can see
It seems that
store_runoption dump env
(L4541-4548) gives some bad variable…Let’s see how
PULSE_SERVER
is set then: the functionsetup_sound_pulseaudio
(L1511); we are in the tcp case so we want to check what is used on L1570.Using a warning (let us remove
--verbose
), I could see thatHostip
contained two lines with an IP on each (172.17.0.1
and169.254.207.216
, see above), definitely not what we want.How is it set?
Being on Linux, it’s either on L5808 or 5809; the first command, run directly in a term, does return
172.17.0.1
… and only172.17.0.1
(the second returns my ip on the LAN but is not executed by the script since we don’t enter the OR clause)So… I "fixed" my issue by appending
| head -n1
to the command on L5808 (as is done on the next line) but I don’t know why there are more IPs when running x11docker nor if it is the best way to fix it (although it does work: I have been listening to music fromjess/spotify
the whole time I have been writing here)Here is the diff:
If you want, I can make a PR (or you can apply the patch yourself, as you prefer). But if you think this need more work, I can try to figure out why I have a different result in the script and in a term and how to select the correct IP (but it’s getting late here so it will wait a bit)
Also, on L5812, you have two pipes without anything in-between (
head -n1 | | rev
), it does not work on bash on my (Linux) computer and I assume it should not work on a windows’ version of bash either.In any case, thank you for this nice piece of software 😸
The text was updated successfully, but these errors were encountered: