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

Gets stuck at connection established #19

Open
kirarpit opened this issue Sep 19, 2016 · 9 comments
Open

Gets stuck at connection established #19

kirarpit opened this issue Sep 19, 2016 · 9 comments

Comments

@kirarpit
Copy link

Everything seems to be working fine when I check the tcp connection at both the ends which says 'Established' but when I try to copy anything it doesn't work, it get's stuck there and doesn't even throw any errors.

Any help would be appreciated.
Thanks.

@pocke
Copy link
Member

pocke commented Sep 22, 2016

Hi. Thanks for your feedback!

Maybe lemonade client's request is blocked by IP filtering in lemonade server.
See. https://github.com/pocke/lemonade#server
Please check your lemonade.toml.

@kirarpit
Copy link
Author

Hey, thanks for the quick response but I have tried specifying the IP of the client as well as allowing it from every IP. Still no luck. And again the connections seem to be established at both the places which shouldn't have been the case had the IP been blocked.

This is the .toml configuration

port = 5001
allow = '0.0.0.0/0,::/0'
line-ending = 'crlf'

Thanks.

@pocke
Copy link
Member

pocke commented Sep 22, 2016

lemonade server logs client address when received TCP packet.

$ lemonade server
2016/09/22 13:20:31 Request from [::1]:51302

So, if the log doesn't exist, TCP packet is not caught. Or if the log exists, maybe lemonade crash silently.

@kirarpit
Copy link
Author

I think there was some issue with my router/ISP because I just tried a different internet connection and it worked just fine with the same configuration.

Anyway, thanks for your time. 👍

@kirarpit kirarpit changed the title Get's stuck at connection established Gets stuck at connection established Sep 24, 2016
@rafi
Copy link

rafi commented Oct 24, 2016

I'm experiencing same problems, while both client & server succeed to connect:

$ lemonade server
2016/10/24 12:30:10 Request from 10.0.0.2:65127

$ lemonade copy 'foooo'
exit status 1

I'm always receiving "exit status 1".
@pocke Is there a way to increase verbosity of error?

@pocke
Copy link
Member

pocke commented Oct 24, 2016

Maybe xsel or xclip is crashes silently.

Lemonade uses xsel or xclip as clipboard backend.
Could you try to execute the following command in lemonade server machine?

# if you use xsel
$ echo 'foo' | xsel --input --clipboard

# if you use xclip
$ echo 'foo' | xclip -in -selection clipboard

@rafi
Copy link

rafi commented Oct 24, 2016

Thanks for the fast reply. I've been using xsel for years with no issues. Your command successfully copies foo to clipboard.
Does lemonade server passthru the DISPLAY env variable for xsel/xclip?

@pocke
Copy link
Member

pocke commented Oct 25, 2016

Does lemonade server passthru the DISPLAY env variable for xsel/xclip?

yes. lemonade doesn't modify env variables.

@assaf758
Copy link

I got this issue as well.
in my case it happens because I have ~/.config/lemonade.toml in a github repo cloned on both my laptop host and vagrant guest.
in this scenario the 'host' config is not correct when running the lemonade client from the host.
running the client with lemonade --host="localhost" solves this but is cumbersome. is there a way to solve this? maybe have lemonade look at env variable when parsing its config file?

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

4 participants