Jump to content
Fabrizio Ruggeri

Set-up sync is not working on version 6 (Linux)

Recommended Posts

When I try to setup the sync through google drive (which was working fine on version 5) I get the step of authorizing your app. Then the xdg-open opens enpass but a new window and the first window stay always in the state of waiting for authorization process to be complete. I attach a gif to better explain the issue

enpass.gif

Share this post


Link to post
Share on other sites

Sorry, after rebooting my laptop everything is working fine. As you were guessing probably there was a second instance still running after the upgrade. Thank you for the help.

 

Do you usually change the title to something like "Solved" here?

Share this post


Link to post
Share on other sites

I have the same problem as described here.

First I updated Enpass to 6.0 on Android. There it worked without problems and sync with google is working again.

Today I updated Enpass on Linux Unbuntu 18.04. When I want to to init the synchronization, firefox is started on the google pages. I grant the access and than it starts a second Enpass application to process the link, not the one already running.

Rebooting the system does not help.

Share this post


Link to post
Share on other sites

I'm also having this issue.  I don't seem to have another Enpass and rebooting doesn't help.  I'm running Mint 19.1 Cinnamon.

When I install enpass, I get a menu item for Enpass.  Choosing the menu item doesn't run enpass.  I can start enpass from /opt/enpass.  Setting up sync takes me to the Google login page and - after I approve - prompts me to open xdg-open.  The process never completes, however.  Would appreciate any ideas!

Share this post


Link to post
Share on other sites

Hi @Brent,

It seems Enpass protocol handlers are not updated properly at install time. Please run these commands on Terminal.

sudo update-desktop-database
sudo update-mime-database /usr/share/mime

Try again and share results.

Share this post


Link to post
Share on other sites

Hi!

I've got a similar issue on my machine (Linux Mint 19.1 - i3wm desktop interface) when it comes to syncing with Google drive (using Firefox v64.0).

I authenticate successfully with Google, and approve 'enpass.io' to access, but when I expect to be redirected back to the Enpass (v6) window, I instead get the attached screenshot.
(Given by this url: enpassauth://googledrive/?scope=https://www.googleapis.com/auth/drive.appfolder&state=security_token_sinew&code=<sanitized>).

This is after executing the below:

$ sudo update-desktop-database
$ sudo update-mime-database /usr/share/mime
$ sudo reboot

$ # After reboot:
$ sudo grep -iHRn 'enpass' /usr/share/mime/
[sudo] password for user: 
/usr/share/mime/types:6:application/enpasscard
/usr/share/mime/globs:207:application/enpasscard:*.enpasscard
/usr/share/mime/application/enpasscard.xml:2:<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/enpasscard">
/usr/share/mime/application/enpasscard.xml:4:  <comment>Enpass Sharing File</comment>
/usr/share/mime/application/enpasscard.xml:5:  <glob pattern="*.enpasscard"/>
/usr/share/mime/packages/application-enpass.xml:2:  <mime-type type="application/enpasscard">
/usr/share/mime/packages/application-enpass.xml:3:    <comment>Enpass Sharing File</comment>
/usr/share/mime/packages/application-enpass.xml:4:    <glob pattern="*.enpasscard"/>
/usr/share/mime/globs2:207:50:application/enpasscard:*.enpasscard
Binary file /usr/share/mime/mime.cache matches
$ # And also self-edit inspired by: https://askubuntu.com/a/1039162/817936
$ cat ~/.local/share/applications/mimeapps.list 
[Default Applications]
application/enpass=/opt/Enpass/Enpass
application/enpassauth=/opt/Enpass/Enpass

 

Any ideas/suggestions?
 

Screenshot from 2019-01-14 10-09-03.png

Share this post


Link to post
Share on other sites

Hi @x10an14,

There is something wrong in this output.

$ cat ~/.local/share/applications/mimeapps.list
[Default Applications]
application/enpass=/opt/Enpass/Enpass
application/enpassauth=/opt/Enpass/Enpass

The path of Enpass executable should be /opt/enpass/Enpass not /opt/Enpass/Enpass.

May I know from where you have installed it?

Thanks.

  • Thanks 1

Share this post


Link to post
Share on other sites

Hi @Vinod Kumar!

Thank you for your prompt reply!
I've installed through your package repository - but I might've messed up the capitalization of that folder myself.

After updating to v6 today, I noticed a symlink from '/opt/enpass' to '/opt/Enpass', so I just removed the symlink and manually fixed my path-links.

So, after reverting that change, xdg-open worked (even without editing my '~/.local/share/applications/mimeapps.list'). Thanks! =)

Share this post


Link to post
Share on other sites

Hello,

I have the same problem as the original poster. However, I don't have 2 instances of Enpass running and rebooting the computer did not solve my issue. 

Can you help? 

Thank you

Share this post


Link to post
Share on other sites

Hey @Alessandro,

Sorry for the trouble you are going through.

Please run these commands on Terminal and then try again.

sudo update-desktop-database

sudo update-mime-database /usr/share/mime
If the problem persists, please try this command in terminal and share result.

 

xdg-open enpassauth://googledrive

Thanks for your co-operation.

 

Share this post


Link to post
Share on other sites

Running the update-desktop-database/update-mime-database appear to have fixed the 2 instances of Enpass running while attempting to setup a sync.

However, Enpass still sits there waiting forever and doesn't complete the operation.

What else can I do to track this down?

Share this post


Link to post
Share on other sites

Hello,

sorry for the very very long delay. Actually the problem is not solved

running

xdg-open enpassauth://googledrive

just starts the sync process but it is still running endlessly, with no effective syncing. 

Thank you

Share this post


Link to post
Share on other sites

Ok I solved my problem, it came from the browser! My default one is Opera.

Opening the authorization link in Firefox allowed for the process to go on smoothly. 

Share this post


Link to post
Share on other sites

Hey @srouleau,

Sorry for the trouble you are going through.

Please share some more info so that we can help you better.

  • Which Linux version and Enapss version are you using?
  • Have you installed two versions (Enpass 5 and Enpass 6) of Enpass on your system?
  • Are you using a multiuser system?
  • Which cloud services are you using to sync?
  • What is your preferred browser and its version?

Thanks for your co-operation.

 

Share this post


Link to post
Share on other sites

Hello @Anshu kumar

Here is the requested information:

1) Kubuntu 18.10, Enpass 6.0.6.323
2) I had Enpass 5 before, went through the upgrade, and now only have 6 installed.
3) Well I guess by definition Kubuntu is multi-user, but in practice I'm the only one using this computer.
4) I tried both Google Drive and OneDrive -- same result.
5) I use Firefox (66.0.2+build1-0ubuntu0.18.10.1)

Thanks!

Share this post


Link to post
Share on other sites

Quick (related) question @Anshu kumar :

As my Linux box is slowly lagging behind my Windows and Android copies of Enpass, how will it reconcile the database once I get it to work again on Linux? Is the database synchronized as a blob, or it's actually item-by-item?

I ask because I added a few items on Linux, and a few items on Windows.

Thanks!

Share this post


Link to post
Share on other sites

Hey @srouleau,

On 4/15/2019 at 7:38 PM, srouleau said:

5) I use Firefox (66.0.2+build1-0ubuntu0.18.10.1)

 

I would suggest you please make Chrome as your default browser and then try sync if you haven't tried it yet and share your findings.

20 minutes ago, srouleau said:

As my Linux box is slowly lagging behind my Windows and Android copies of Enpass, how will it reconcile the database once I get it to work again on Linux? Is the database synchronized as a blob, or it's actually item-by-item?

It will sync item by item.

Thanks!

 

Share this post


Link to post
Share on other sites

@Anshu kumar

With Chrome it seemed to have taken a step back. Whereas with Firefox I could get it to stay in the same instance of Enpass, Chrome would launch a second copy of Enpass. I tried updated the mime database, to no avail.

Share this post


Link to post
Share on other sites

Hey @srouleau,

I'm sorry to hear that the workaround didn't help!

I've noted down this issue in high priority and notified the dev team to look into it. Till then I request you to please co-operate with us.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...