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

Cannot connect to device #2

Closed
NicoHood opened this issue May 7, 2016 · 12 comments
Closed

Cannot connect to device #2

NicoHood opened this issue May 7, 2016 · 12 comments

Comments

@NicoHood
Copy link
Contributor

NicoHood commented May 7, 2016

Once I got the app compile now, I am not able to connect to mooltipass.

./MoolticuteApp 
DEBUG: :0 - Websocket disconnect
DEBUG: :0 - Websocket error:  "Connection refused"
DEBUG: :0 - Websocket open()

I am using Ubuntu Mate 16.04 and I've enable the udev rules. The chrome app works, I also closed the chrome app before launching moolticute. I tried replugging and unlocking.

@limpkin
Copy link
Collaborator

limpkin commented May 7, 2016

Disable the application in the extension tab of chrome
On May 7, 2016 12:49 PM, "Nico" [email protected] wrote:

Once I got the app compile now, I am not able to connect to mooltipass.

./MoolticuteApp
DEBUG: :0 - Websocket disconnect
DEBUG: :0 - Websocket error: "Connection refused"
DEBUG: :0 - Websocket open()

I am using Ubuntu Mate 16.04 and I've enable the udev rules. The chrome
app works, I also closed the chrome app before launching moolticute. I
tried replugging and unlocking.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#2

@NicoHood
Copy link
Contributor Author

NicoHood commented May 7, 2016

No. Moolticute did not work, even before I had not even installed chrome. So that cannot be the problem. I installed chrome afterwards to verify the udev rule works.

@raoulh
Copy link
Member

raoulh commented May 8, 2016

Did you start the moolticute daemon first?
./moolticuted

The client needs to connect to a running daemon

@NicoHood
Copy link
Contributor Author

NicoHood commented May 9, 2016

Ah! that should be noted in the readme as a "usage" section.

However I got another error:
Websocket connected
mp_disconnected (2 times)

The moolticuted deamon only shows warnings when opening the devices. I also tried replugging etc.

@NicoHood
Copy link
Contributor Author

Any ideas?

@raoulh
Copy link
Member

raoulh commented May 23, 2016

You need correct udev rules for your device and libusb. Do you have them configured?

@NicoHood
Copy link
Contributor Author

I used this instruction:
http://www.themooltipass.com/udev_rule.txt

I only used this line:

root@myusers-vubuntu:~# echo "KERNEL==\"hidraw*\", SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"16d0\", ATTRS{idProduct}==\"09a0\", MODE=\"0664\", GROUP=\"plugdev\"" > /etc/udev/rules.d/50-mooltipass.rules

This works under ubuntu 16.04 with the mooltipass chrome app but not with moolticute!?

@raoulh
Copy link
Member

raoulh commented May 24, 2016

No it does work as Moolticute needs libusb access and does not use hidraw.
Include the udev rule for libusb access and it will work

@NicoHood
Copy link
Contributor Author

NicoHood commented May 24, 2016

Which libusb rule? How does it look like?

Oh and please place this in the readme :)

@raoulh
Copy link
Member

raoulh commented May 24, 2016

The one for libusb that is written in http://www.themooltipass.com/udev_rule.txt
Something like:

echo "ATTRS{idVendor}==\"16d0\", ATTRS{idProduct}==\"09a0\", SYMLINK+=\"mooltipass\", MODE=\"0664\", GROUP=\"plugdev\"" > /etc/udev/rules.d/50-mooltipass.rules

@NicoHood
Copy link
Contributor Author

Now it works. I did no know that there is such a difference. Please add it to the readme.

Do you also know how much has changed to the app since you last updated moolticute? Because I really would like to use moolticute instead of the chrome app. The chrome app honstely has too many unsolved bugs, which I am unable to fix. For a c++ app this might be different, while still a challenge.

@raoulh
Copy link
Member

raoulh commented May 25, 2016

For now in moolticute, in memory management mode you can only view your credentials, but not add/delete them. The code for handling device memory node in the moolticute daemon is not finished/working yet.

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

3 participants