App not working

Nextcloud: nextcloud-12.0.3.zip
Mail client: Thunderbird Setup 52.3.0.exe
Add-on: nextcloud_for_filelink-1.7-tb.xpi (from https://addons.mozilla.org/en-US/thunderbird/addon/nextcloud-filelink/?src=search)
Provider: xxx
Server URL: https://10.5.1.200/nextcloud/remote.php/webdav/
Port number: 443
Username: yyy
Storage path in Nextcloud: /Mail-attachments (this folder was created)
Password for uploadeds files: (blank)
Error message: An error ocurred while setting up the account!
Developer Tools error message:
2017-10-03 16:09:14 Nextcloud ERROR Could not retrieve password
log4moz.js:691

Version 1.6 nextcloud_for_filelink did not work either.
If you need some extra information, you can request it, I will cooperate in what they need to solve the problem.

I don’t think “remote.php/webdav/” is necessary in the server URL. I’m not sure that is your problem though, but at least I don’t have it in my settings, and my file link for Nextcloud is working.

Earlier I have had problems with (wrong) saved credentials in Thunderbird though. Try deleting any saved credentials for 10.5.1.200/nextcloud/ in you Thunderbird preferences (Security tab > Saved Passwords) and save the settings again to re-open the password prompt.

1 Like

Sorry for the delay but I’ve had personal problems.
Server URL: https://10.5.1.200/nextcloud/
I do a new test, just changing “Server URL” as Moretocome suggested. I got the following errors:

2017-10-09 09:29:48 Nextcloud ERROR Could not retrieve password
log4moz.js:691
CApp_append resource:///modules/gloda/log4moz.js:691:7
Logger_log resource:///modules/gloda/log4moz.js:380:7
Logger_error resource:///modules/gloda/log4moz.js:388:5
nsNc_logon jar:file:///C:/Users/Vos/AppData/Roaming/Thunderbird/Profiles/yc3788bb.default/extensions/owncloud@viguierjust.com.xpi!/components/nsNextcloud.js:430:4
nsNc_createExistingAccount jar:file:///C:/Users/Vos/AppData/Roaming/Thunderbird/Profiles/yc3788bb.default/extensions/owncloud@viguierjust.com.xpi!/components/nsNextcloud.js:310:3
cloudFileAccounts.createAccount resource:///modules/cloudFileAccounts.js:111:9
AAD_onOK chrome://messenger/content/cloudfile/addAccountDialog.js:229:20
anonymous chrome://global/content/bindings/dialog.xml%20line%20380%20%3E%20Function:1:8
_fireButtonEvent chrome://global/content/bindings/dialog.xml:381:28
_doButtonCommand chrome://global/content/bindings/dialog.xml:349:28
_handleButtonCommand chrome://global/content/bindings/dialog.xml:337:18
CFA_addAccountDialog resource:///modules/cloudFileAccounts.js:193:5
CFT_addCloudFileAccount chrome://messenger/content/preferences/applications.js:759:22
gCloudFileController.commands.cmd_addCloudfileAccount.doCommand chrome://messenger/content/preferences/applications.js:445:9
gCloudFileController.doCommand chrome://messenger/content/preferences/applications.js:489:5
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] cloudFileAccounts.js:154
cloudFileAccounts.getAccount resource:///modules/cloudFileAccounts.js:154:16
get accounts/< resource:///modules/cloudFileAccounts.js:175:44
filter self-hosted:301:17
get accounts resource:///modules/cloudFileAccounts.js:175:12
CFT_rebuildView chrome://messenger/content/preferences/applications.js:585:9
CFT_addCloudFileAccount chrome://messenger/content/preferences/applications.js:763:5
gCloudFileController.commands.cmd_addCloudfileAccount.doCommand chrome://messenger/content/preferences/applications.js:445:9
gCloudFileController.doCommand chrome://messenger/content/preferences/applications.js:489:5
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1
An error occurred executing the cmd_addCloudfileAccount command: [Exception… “Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]” nsresult: “0x8000ffff (NS_ERROR_UNEXPECTED)” location: “JS frame :: resource:///modules/cloudFileAccounts.js :: cloudFileAccounts.getAccount :: line 154” data: no] globalOverlay.js:103
goDoCommand chrome://global/content/globalOverlay.js:103:5
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1

After attempting to add Nextcloud, the lightning-5.4-sm + tb-windows.xpi add-in is corrupted. When trying to add a new storage service there is no option available to add.
I have to delete the profile folder to get the add-in to be restored.

I had the same issue.
Check your Nextcloud configuration in the “Sharing” section of the admin page of your Nextcloud installation. The option “Allow users to share via link” must be enabled. “Enforce password protection” may be enabled. If so, you have to enter exactly this password in the plugin configuration (“Password for uploaded files”).
If you disable “Enforce password protection” in the Nextcloud configuration, you have to leave the option blank in the plugin configuration.
If you do not want to delete and recreate your Plugin configuration, you can set (and check) the values in about:config.
mail.cloud_files.accounts.account1.displayName
mail.cloud_files.accounts.account1.port
mail.cloud_files.accounts.account1.server
mail.cloud_files.accounts.account1.type
mail.cloud_files.accounts.account1.username
mail.cloud_files.accounts.account1.protectUploads

I put the password as you indicate, without quotes, with quotes and with the parentisis in addition and nothing, it keeps giving error.

2017-10-23 13:33:27 Nextcloud ERROR Could not retrieve password
log4moz.js:691
CApp_append resource:///modules/gloda/log4moz.js:691:7
Logger_log resource:///modules/gloda/log4moz.js:380:7
Logger_error resource:///modules/gloda/log4moz.js:388:5
nsNc_logon jar:file:///C:/Users/Vos/AppData/Roaming/Thunderbird/Profiles/outnpehs.default/extensions/owncloud@viguierjust.com.xpi!/components/nsNextcloud.js:430:4
nsNc_createExistingAccount jar:file:///C:/Users/Vos/AppData/Roaming/Thunderbird/Profiles/outnpehs.default/extensions/owncloud@viguierjust.com.xpi!/components/nsNextcloud.js:310:3
cloudFileAccounts.createAccount resource:///modules/cloudFileAccounts.js:111:9
AAD_onOK chrome://messenger/content/cloudfile/addAccountDialog.js:229:20
anonymous chrome://global/content/bindings/dialog.xml%20line%20380%20%3E%20Function:1:8
_fireButtonEvent chrome://global/content/bindings/dialog.xml:381:28
_doButtonCommand chrome://global/content/bindings/dialog.xml:349:28
_handleButtonCommand chrome://global/content/bindings/dialog.xml:337:18
CFA_addAccountDialog resource:///modules/cloudFileAccounts.js:193:5
CFT_addCloudFileAccount chrome://messenger/content/preferences/applications.js:759:22
gCloudFileController.commands.cmd_addCloudfileAccount.doCommand chrome://messenger/content/preferences/applications.js:445:9
gCloudFileController.doCommand chrome://messenger/content/preferences/applications.js:489:5
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] cloudFileAccounts.js:154
cloudFileAccounts.getAccount resource:///modules/cloudFileAccounts.js:154:16
get accounts/< resource:///modules/cloudFileAccounts.js:175:44
filter self-hosted:301:17
get accounts resource:///modules/cloudFileAccounts.js:175:12
CFT_rebuildView chrome://messenger/content/preferences/applications.js:585:9
CFT_addCloudFileAccount chrome://messenger/content/preferences/applications.js:763:5
gCloudFileController.commands.cmd_addCloudfileAccount.doCommand chrome://messenger/content/preferences/applications.js:445:9
gCloudFileController.doCommand chrome://messenger/content/preferences/applications.js:489:5
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1
An error occurred executing the cmd_addCloudfileAccount command: [Exception… “Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]” nsresult: “0x8000ffff (NS_ERROR_UNEXPECTED)” location: “JS frame :: resource:///modules/cloudFileAccounts.js :: cloudFileAccounts.getAccount :: line 154” data: no] globalOverlay.js:103
goDoCommand chrome://global/content/globalOverlay.js:103:5
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1

If I disable the “Enforce password protection” option and do not specify any password, it gives an error.

2017-10-23 13:40:46 Nextcloud ERROR Could not retrieve password
log4moz.js:691
CApp_append resource:///modules/gloda/log4moz.js:691:7
Logger_log resource:///modules/gloda/log4moz.js:380:7
Logger_error resource:///modules/gloda/log4moz.js:388:5
nsNc_logon jar:file:///C:/Users/Vos/AppData/Roaming/Thunderbird/Profiles/outnpehs.default/extensions/owncloud@viguierjust.com.xpi!/components/nsNextcloud.js:430:4
nsNc_createExistingAccount jar:file:///C:/Users/Vos/AppData/Roaming/Thunderbird/Profiles/outnpehs.default/extensions/owncloud@viguierjust.com.xpi!/components/nsNextcloud.js:310:3
cloudFileAccounts.createAccount resource:///modules/cloudFileAccounts.js:111:9
AAD_onOK chrome://messenger/content/cloudfile/addAccountDialog.js:229:20
anonymous chrome://global/content/bindings/dialog.xml%20line%20380%20%3E%20Function:1:8
_fireButtonEvent chrome://global/content/bindings/dialog.xml:381:28
_doButtonCommand chrome://global/content/bindings/dialog.xml:349:28
_handleButtonCommand chrome://global/content/bindings/dialog.xml:337:18
CFA_addAccountDialog resource:///modules/cloudFileAccounts.js:193:5
CFT_addCloudFileAccount chrome://messenger/content/preferences/applications.js:759:22
gCloudFileController.commands.cmd_addCloudfileAccount.doCommand chrome://messenger/content/preferences/applications.js:445:9
gCloudFileController.doCommand chrome://messenger/content/preferences/applications.js:489:5
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1
NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] cloudFileAccounts.js:154
cloudFileAccounts.getAccount resource:///modules/cloudFileAccounts.js:154:16
get accounts/< resource:///modules/cloudFileAccounts.js:175:44
filter self-hosted:301:17
get accounts resource:///modules/cloudFileAccounts.js:175:12
CFT_rebuildView chrome://messenger/content/preferences/applications.js:585:9
CFT_addCloudFileAccount chrome://messenger/content/preferences/applications.js:763:5
gCloudFileController.commands.cmd_addCloudfileAccount.doCommand chrome://messenger/content/preferences/applications.js:445:9
gCloudFileController.doCommand chrome://messenger/content/preferences/applications.js:489:5
goDoCommand chrome://global/content/globalOverlay.js:100:7
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1
An error occurred executing the cmd_addCloudfileAccount command: [Exception… “Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]” nsresult: “0x8000ffff (NS_ERROR_UNEXPECTED)” location: “JS frame :: resource:///modules/cloudFileAccounts.js :: cloudFileAccounts.getAccount :: line 154” data: no] globalOverlay.js:103
goDoCommand chrome://global/content/globalOverlay.js:103:5
oncommand chrome://messenger/content/preferences/preferences.xul:1:1
gViewController.commands.cmd_showItemPreferences.doCommand chrome://mozapps/content/extensions/extensions.js:1193:9
gViewController.doCommand chrome://mozapps/content/extensions/extensions.js:1530:5
showPreferences chrome://mozapps/content/extensions/extensions.xml:1555:11
oncommand about:addons:1:1

My issue reappeared. No configuration changes, just a day later on Thunderbird/Ubuntu and Thunderbird portable/Windows 7.