# Nextcloud Client asks for password every time it starts

**URL:** <https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591>\
**Category:** ℹ️ Support\
**Created:** [March 7, 2018, 8:16pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591 "2018-03-07T20:16:36Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndru](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ndru/32/4472_2.png) [@ndru](https://help.nextcloud.com/u/ndru)\
**Post date:** [March 7, 2018, 8:16pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/1 "2018-03-07T20:16:36Z")

</div>

Nextcloud client version: 2.3.3  
Nextcloud version: 12.0.5snap1  
Operating system and version: Xubuntu 16.04.4  
Apache or nginx version: 2.4  
PHP version: 7.1

Hi everyone. I hope you’re OK.

I installed the Nextcloud server snap on a VPS and installed the Nextcloud Client on my Xubuntu desktop computer a couple of weeks ago. Ever since I installed the desktop client, I’ve been getting this message when I open it (I disabled its launching at system start.):

![2018-03-07_13-35-32_Nextcloud-Client-Issues](https://help.nextcloud.com/uploads/default/original/2X/9/95cbc7d6286b2799452edada656c34b4843b6c59.png)

I’ve tried the PPA, snap and AppImage versions of the client and it happens with all of them. As far as I can tell, the issue has something to do with the wallet manager. When I googled this issue, I found that it had been reported in ownCloud back in the day:

[Reading from keychain failed with fatal error: ‘Could not open wallet: org.freedesktop.DBus.Error.NoReply; Message recipient disconnected from message bus without replying’](https://central.owncloud.org/t/reading-from-keychain-failed-with-error-could-not-open-wallet-org-freedesktop-dbus-error-noreply-message-recipient-disconnected-from-message-bus-without-replying/2865)

I tried the [Arch Linux solutions proposed in this post](https://bbs.archlinux.org/viewtopic.php?id=217906) but nothing changed.

Steps to replicate it:

1. Install Nextcloud Client on Xfce in Ubuntu (PPA, snap package or AppImage)
2. Connect to Nextcloud server and authenticate with your password
3. Quit the Nextcloud Client
4. Connect to Nextcloud server again and you get the message

I hope you can some light on how to solve this is issue. I appreciate your help.

Thanks a lot,  
ndru

---

<div class="post-metadata">

**Author:** ![stratacast](https://help.nextcloud.com/user_avatar/help.nextcloud.com/stratacast/32/5076_2.png) [@stratacast](https://help.nextcloud.com/u/stratacast)\
**Post date:** [March 8, 2018, 1:09am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/2 "2018-03-08T01:09:13Z")

</div>

I think you’re right when you say it is a wallet issue. I’ve had this with KDE where you would have to type in the password for your password manager, since that is storing it. It could be that it isn’t unlocking? I also had this happen semi-recently with GNOME when Linux got the meltdown patch. Maybe try opening the password manager for xfce at login before you get that prompt and see if it requires you login…that could fix the issue

---

<div class="post-metadata">

**Author:** ![ndru](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ndru/32/4472_2.png) [@ndru](https://help.nextcloud.com/u/ndru)\
**Post date:** [March 10, 2018, 2:01am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/3 "2018-03-10T02:01:19Z")

</div>

Thanks for the suggestion, @stratacast. It actually solved the problem. I’ve had all kind of weird issues with gnome-keyring in Xfce on different distros (Arch-based ones, Debian, Tumbleweed and Xubuntu). I just ran

```auto
rm -v ~/.local/share/keyrings/*.keyring

```

and rebooted.

After that, I assigned a new password to the keyring, rebooted again and when asked if I wanted to unlock the keyring at session start, I said yes. And voilà. That was it. I can now launch the Nextcloud client without having to type my password over and over again.

Thanks for your help! I really appreciate it.

---

<div class="post-metadata">

**Author:** ![prmr](https://help.nextcloud.com/letter_avatar/prmr/32/5_5575768a8748004e209b776fc1b2916d.png) [@prmr](https://help.nextcloud.com/u/prmr)\
**Post date:** [March 12, 2018, 5:41am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/4 "2018-03-12T05:41:53Z")

</div>

Hi,

I have a problem along similar lines. I am running the latest nextcloud sync client on Mint 18.3 Cinnamon. I regularly got an error on shutdown saying that the gnome-keyring-daemon was running and this window gave a ‘shutdown anyway’ button (and nothing happened until that button was pressed). My search for solutions found a solution where the ‘execute as program’ permission was removed from gnome-keyring-daemon. This solved the shutdown problem but then required the entry of a password to start the sync client.

Is this combination unique to Mint/Cinnamon? Is there a solution?

Thanks in advance for any advice.  
Peter

---

<div class="post-metadata">

**Author:** ![blucap](https://help.nextcloud.com/user_avatar/help.nextcloud.com/blucap/32/10421_2.png) [@blucap](https://help.nextcloud.com/u/blucap)\
**Post date:** [August 21, 2018, 6:27am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/5 "2018-08-21T06:27:43Z")

</div>

I tried - but unfortunately I could not get it to work. Working with Cinnamon Mate 19 (Bionic).

I deleted the \*.keyring using the line you mention above.

However, it is unclear to me how you assign a new password to the keyring. Which software or app do you use to do that?

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [October 2, 2018, 1:59pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/6 "2018-10-02T13:59:15Z")

</div>

hi,

i have the same issue with Linux Mint 19 Mate Edition.  
Every start of the Netbook it asks for the password. Very frustrating…

---

<div class="post-metadata">

**Author:** ![danger89](https://help.nextcloud.com/user_avatar/help.nextcloud.com/danger89/32/67378_2.png) [@danger89](https://help.nextcloud.com/u/danger89)\
**Post date:** [October 5, 2018, 10:43pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/7 "2018-10-05T22:43:07Z")

</div>

Yep same :\

---

<div class="post-metadata">

**Author:** ![Berwin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/berwin/32/10470_2.png) [@Berwin](https://help.nextcloud.com/u/Berwin)\
**Post date:** [October 22, 2018, 6:28pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/8 "2018-10-22T18:28:56Z")

</div>

The same issue here. Mint 19 Cinnamon. Nextcloud client and ownCloud too, everything with very last updates. I’ve removed ~/.local/share/keyrings/\*.keyring and rebooted. Evolution stores each password, NC and oC not … ☹

---

<div class="post-metadata">

**Author:** ![plrunner](https://help.nextcloud.com/letter_avatar/plrunner/32/5_5575768a8748004e209b776fc1b2916d.png) [@plrunner](https://help.nextcloud.com/u/plrunner)\
**Post date:** [October 22, 2018, 8:56pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/9 "2018-10-22T20:56:16Z")

</div>

# apt install libgnome-keyring0

You will be asked for password once more and then it will log in automatically.

Enjoy  
PL

---

<div class="post-metadata">

**Author:** ![jokester](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jokester/32/13392_2.png) [@jokester](https://help.nextcloud.com/u/jokester)\
**Post date:** [February 6, 2019, 1:12pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/10 "2019-02-06T13:12:17Z")

</div>

I encountered this recently in my Linux notebook (ArchLinux + XFCE desktop). Tried these before NextCloud remembers its password (maybe not all of them are necessary):

- ensure`~/.local/share/keyrings/` exists and is a writable directory
- Install `gnome-keyring` package
- in XFCE `Session and Startup -- Application Autostart` settings, enable a few `keyring`-like entries

---

<div class="post-metadata">

**Author:** ![esprit-libre](https://help.nextcloud.com/user_avatar/help.nextcloud.com/esprit-libre/32/48680_2.png) [@esprit-libre](https://help.nextcloud.com/u/esprit-libre)\
**Post date:** [March 6, 2019, 5:45pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/11 "2019-03-06T17:45:50Z")

</div>

I also had similar problem, soved once by creating this symlink `ln -s /usr/bin/kwalletd5 /usr/bin/kwalletd` and on other computer by installing `kwalletmanager`

---

<div class="post-metadata">

**Author:** ![Clemens](https://help.nextcloud.com/letter_avatar/clemens/32/5_5575768a8748004e209b776fc1b2916d.png) [@Clemens](https://help.nextcloud.com/u/Clemens)\
**Post date:** [June 8, 2019, 9:31pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/12 "2019-06-08T21:31:35Z")

</div>

On my desktop computer (Xubuntu 18.04) I had the same issue when using Nextcloud client as snap. After I had installed the password manager Seahorse and had generated an entry Nextcloud with its password, Nextcloud will auto login every time, when I start Nextcloud client. For this behaviour, it is not necessary, to have Seahorse running, before starting Nextcloud client.

My Laptop has the exactly same Xubuntu installation. Even after installation of Seahorse and all the same settings like on my desktop, it does not work: I have to tpe in the password every time, after having started Nextcloud client.

I cannot find out any differences between both computers or their settings!

On my laptop, I followed the proposal of “esprit-libre” and did create the symlink. Nothing changed, when I tried to start Nextcloud.

I followed the advice of jokester and saw, that .local/share/keyrings/ is writable. Gnome-keyring package has been already installed. And in autostart, all keyring elements are activated.

I tried the hint of “plrunner” and did install apt instll libgnome-keyring0. This had not been installed but it was installed now. But no effort.

After removing ~/.local/share/keyrings/\*.keyring and rebooting, the same problem: I had to login in Nextcloud manually.

Then I started Seahorse and createdd the entry “Nextcloud” and its password. The file login.keyring did change its change date. So I can be sure, that the password is stored there.

After rebooting, the problem with autologin keeps on.

Sorry, I have no solution, even in spite, I have a desktop computer with no additional installation like libgnome-keyring0 and there the auto login does work flawless!

---

<div class="post-metadata">

**Author:** ![Clemens](https://help.nextcloud.com/letter_avatar/clemens/32/5_5575768a8748004e209b776fc1b2916d.png) [@Clemens](https://help.nextcloud.com/u/Clemens)\
**Post date:** [June 10, 2019, 11:43am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/13 "2019-06-10T11:43:28Z")

</div>

Just found the really helpfull answer in the Snapcraft forum:

> **[Nextcloud-client snap app armor issue](https://forum.snapcraft.io/t/nextcloud-client-snap-app-armor-issue/4366/5)**
>
> Indeed, or even shorter: $ sudo snap connect nextcloud-client:password-manager-service

You have to install a passwordmanager like Seahorse and define the password for your Nextcloud. After that you should type: `sudo snap connect nextcloud-client:password-manager-service`

After this, you start Nextcloud only one more time, needing manually typed password. When you close Nextcloud and start it again, it will successfully auto login. It is not required, to have Seahorse running when starting Nextcloud with auto login.

---

<div class="post-metadata">

**Author:** ![Id2ndR](https://help.nextcloud.com/user_avatar/help.nextcloud.com/id2ndr/32/57160_2.png) [@Id2ndR](https://help.nextcloud.com/u/Id2ndR)\
**Post date:** [October 21, 2019, 7:38am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/14 "2019-10-21T07:38:02Z")

</div>

On Fedora (with Gnome), you need to install _libgnome-keyring_ package to get it working. They, restart nextcloud, login again and you will get an entry _Nextcloud_ in seahorse (Gnome passwork manager).

---

<div class="post-metadata">

**Author:** ![cab404](https://help.nextcloud.com/user_avatar/help.nextcloud.com/cab404/32/21016_2.png) [@cab404](https://help.nextcloud.com/u/cab404)\
**Post date:** [May 16, 2020, 8:40pm UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/15 "2020-05-16T20:40:05Z")

</div>

This problem usually occurs due to faulty wallet detection heuristics in qtkeychain.  
If you use kwallet, use this command:

```auto
DESKTOP_SESSION=kde KDE_SESSION_VERSION=5 nextcloud

```

---

<div class="post-metadata">

**Author:** ![katzengold](https://help.nextcloud.com/letter_avatar/katzengold/32/5_5575768a8748004e209b776fc1b2916d.png) [@katzengold](https://help.nextcloud.com/u/katzengold)\
**Post date:** [June 4, 2024, 6:00am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/16 "2024-06-04T06:00:36Z")

</div>

that solved the problem in 2024 for me,  
maybe the nextcloud-client could give a hint when it isnt able to store the key?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 9:24am UTC](https://help.nextcloud.com/t/nextcloud-client-asks-for-password-every-time-it-starts/28591/17 "2025-01-16T09:24:05Z")

</div>


