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

owncloud client asks me for authentication after every restart #7576

Open
sqsmacz opened this issue Nov 5, 2019 · 10 comments
Open

owncloud client asks me for authentication after every restart #7576

sqsmacz opened this issue Nov 5, 2019 · 10 comments

Comments

@sqsmacz
Copy link

@sqsmacz sqsmacz commented Nov 5, 2019

Expected behaviour

After I authorize application it should be authorized permanently until I reinstall/uninstall it.

Actual behaviour

I use 3 stations with owncloud client installed: Mac, Win, Win.
After I authorize my app on Mac, then on both Windows it's ok.
But after I restart any app on any my computer app becomes unauthorized and asking me again to authorize.

Steps to reproduce

  1. Install app on one computer
  2. authorize app on the server
  3. install app on another computer
  4. Authorize app
  5. restart app on first computer

Server configuration

Operating system:
Mac OS X, Windows

Web server:
apache

Database:
postgres or mysql

PHP version:
7.2

ownCloud version:
latest stable

Storage backend (external storage):
none

Client configuration

Client version:
latest stable

Operating system:
Mac OS X, Windows 10 latest

OS language:
English

Qt version used by client package (Linux only, see also Settings dialog):
NA

Client package (From ownCloud or distro) (Linux only):
NA

Installation path of client:
standard

Logs

not attached

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

Template for output < 10 lines

  1. Client logfile: Output of owncloud --logwindow or owncloud --logfile log.txt
    (On Windows using cmd.exe, you might need to first cd into the ownCloud directory)
    (See also http://doc.owncloud.org/desktop/2.2/troubleshooting.html#client-logfile )

  2. Web server error log:

  3. Server logfile: ownCloud log (data/owncloud.log):

@ogoffart

This comment has been minimized.

Copy link
Collaborator

@ogoffart ogoffart commented Nov 8, 2019

What is the authorization mechanism? Are you using oauth2 (client open the browse), app password, or normal password?

So do i understand you correctly that as long as you stay with one computer, it remembers the password, but if you use two computer it doesn't?

Is there any difference between platform? (Does it work with one platform but not the other)

@soniqsoft

This comment has been minimized.

Copy link

@soniqsoft soniqsoft commented Nov 8, 2019

Hi @ogoffart,
Thanks for your message.
I use as follow:
image
image

"So do i understand you correctly that as long as you stay with one computer, it remembers the password, but if you use two computer it doesn't?"
It's not always true, it's my observation but sometimes it happens unexpected.

"Is there any difference between platform? (Does it work with one platform but not the other)"
No, it behaves the same on Mac and Win.

@ogoffart

This comment has been minimized.

Copy link
Collaborator

@ogoffart ogoffart commented Nov 11, 2019

Can you try to restart one of the computer without being connected with another computer and see if this works correctly? This could help eliminate the case where the client just forgets the refresh token.

This is maybe something wrong on the server which does not allow several client?
Having the http log would help debugging. Does the client send a refresh token to the server while connecting? Why don't the server accepts it?

@soniqsoft

This comment has been minimized.

Copy link

@soniqsoft soniqsoft commented Nov 11, 2019

Hi @ogoffart,
I tried and it happened even for accounts that I use on one computer only.
I didn't realize it's like that for the other accounts.
Thanks!

@ogoffart

This comment has been minimized.

Copy link
Collaborator

@ogoffart ogoffart commented Nov 12, 2019

Could we get client or server logs that shows if the client sends a refresh token to the server?

@soniqsoft

This comment has been minimized.

Copy link

@soniqsoft soniqsoft commented Nov 12, 2019

Sure you can. Can you guide me what should I look for in server log and where is the client log on Mac OS X?

@ogoffart

This comment has been minimized.

Copy link
Collaborator

@ogoffart ogoffart commented Nov 12, 2019

I believe you can use --logwindow or F12 to see the settings for logging on the client side.
On the server side, the logs should be in some files on the server. probably called owncloud.log

@michaelstingl

This comment has been minimized.

Copy link
Collaborator

@michaelstingl michaelstingl commented Nov 12, 2019

Sure you can. Can you guide me what should I look for in server log and where is the client log on Mac OS X?

https://doc.owncloud.org/desktop/troubleshooting.html#log-files

@severalthings

This comment has been minimized.

Copy link

@severalthings severalthings commented Dec 1, 2019

I have the same experience with Ubuntu 18.04 LTS and Debian Buster using the repositories
http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Debian_10 / Ubuntu_18.04 respectively. Problems started a few days ago.

The oc-client doesn't find the password and asks the user. Using seahorse, it shows that the password is in the passwordsafe.

Other are experiencing the same with XUbuntu 19.10:
https://central.owncloud.org/t/xubuntu-keychain-error/22825

@severalthings

This comment has been minimized.

Copy link

@severalthings severalthings commented Dec 1, 2019

The logfile:
12-01 20:52:10:004 [ info gui.application ]: "################## ownCloud loc
ale:[de_DE] ui_lang:[] version:[2.6.0 (build 1714)] os:[Ubuntu 18.04.3 LTS]"
12-01 20:52:10:004 [ info gui.application ]: Using "de_DE" translation
12-01 20:52:10:005 [ info gui.application ]: Adding extra plugin search path:
"/opt/ownCloud/ownCloud/lib/x86_64-linux-gnu/ownCloud/plugins"
12-01 20:52:10:005 [ info gui.application ]: VFS suffix plugin is available
12-01 20:52:10:005 [ info gui.socketapi ]: server started, listening at "/run/user/1000/ownCloud/socket"
12-01 20:52:10:005 [ info gui.folder.manager ]: setting remote poll timer interval to 30000 msec
12-01 20:52:10:217 [ info gui.application ]: Tray menu workarounds: noabouttoshow: false fakedoubleclick: false showhide: false manualvisibility: false
12-01 20:52:10:219 [ info gui.folder.manager ]: Setup folders from settings file
12-01 20:52:10:219 [ info sync.configfile ]: Adding system ignore list to csync: "/etc/ownCloud/sync-exclude.lst"
12-01 20:52:10:224 [ info sync.database ]: sqlite3 version "3.29.0"
12-01 20:52:10:224 [ info sync.database ]: sqlite3 locking_mode= "exclusive"
12-01 20:52:10:224 [ info sync.database ]: sqlite3 journal_mode= "wal"
12-01 20:52:10:224 [ info sync.database ]: sqlite3 synchronous= "NORMAL"
12-01 20:52:10:225 [ info gui.folder.manager ]: Adding folder to Folder Map OCC::Folder(0x55946c498040) "1"
12-01 20:52:10:225 [ info gui.folder.manager ]: Schedule folder "1" to sync!
::Folder(0x55946c498040) "1"
12-01 20:52:10:225 [ info gui.folder.manager ]: Schedule folder "1" to sync!
12-01 20:52:10:225 [ info gui.folder.manager ]: Folder is not ready to sync, not scheduled!
12-01 20:52:10:225 [ info gui.application ]: Sync state changed for folder "https://xxxxx/remote.php/webdav/" : "Not yet Started"
12-01 20:52:10:226 [ info sync.clientproxy ]: Set proxy configuration to use system configuration
12-01 20:52:10:261 [ info sync.credentials.http ]: Backend unavailable (yet?) Retrying in a few seconds. "Unknown error"
12-01 20:52:13:257 [ info gui.updater ]: Checking for available update
12-01 20:52:13:257 [ info sync.accessmanager ]: 2 "" "https://updates.owncloud.com/client/?client=RGlzdHJpYnV0b3IgSUQ6CVVidW50dQpEZXNjcmlwdGlvbjoJVWJ1bnR1IDE4LjA0LjMgTFRTClJlbGVhc2U6CTE4LjA0CkNvZGVuYW1lOgliaW9uaWMK&version=2.6.0.1714&platform=linux&oem=ownCloud&versionsuffix=" has X-Request-ID "b1dbbe72-644b-4ef0-8d0d-0bc73422a65b"
12-01 20:52:13:392 [ info gui.updater ]: Client is on latest version!
12-01 20:52:20:700 [ info gui.account.state ]: Fetched credentials for "https://xxxxx" attempting to connect
12-01 20:52:20:700 [ info sync.connectionvalidator ]: No system proxy set by OS
12-01 20:52:20:701 [ info sync.accessmanager ]: 2 "" "https://xxxxx/status.php" has X-Request-ID "f4b5e951-ca7c-4264-85a3-d529d0bcf702"
.de/status.php" has X-Request-ID "f4b5e951-ca7c-4264-85a3-d529d0bcf702"
12-01 20:52:20:701 [ info sync.networkjob ]: OCC::CheckServerJob created for "https://xxxxxx" + "status.php" "OCC::ConnectionValidator"
12-01 20:52:20:988 [ info sync.networkjob.checkserver ]: status.php returns: QJsonDocument({"edition":"Community","installed":true,"maintenance":false,"needsDbUpgrade":false,"productname":"ownCloud","version":"10.3.0.4","versionstring":"10.3.0"}) QNetworkReply::NoError Reply: QNetworkReplyHttpImpl(0x55946c36bd30)
12-01 20:52:20:988 [ info sync.connectionvalidator ]: ** Application: ownCloud found: QUrl("https://xxxxx") with version "10.3.0" ( "10.3.0.4-ownCloud" )
12-01 20:52:20:988 [ info sync.connectionvalidator ]: QUrl("https://xxxxxxxxx") has server version "10.3.0.4-ownCloud"
12-01 20:52:20:988 [ info gui.account.state ]: AccountState connection status change: OCC::ConnectionValidator::Undefined -> OCC::ConnectionValidator::CredentialsNotReady
12-01 20:52:20:988 [ info gui.account.state ]: Invalid credentials for "https://xxxxx" asking user
12-01 20:52:20:988 [ info gui.account.state ]: AccountState state change: "Getrennt" -> "Zugangsdaten werden abgefragt"
12-01 20:52:20:988 [ info gui.folder.manager ]: Account "xxx@xxxxxx" disconnected or paused, terminating or descheduling sync folders
12-01 20:52:21:111 [ info sync.networkjob.determineauthtype ]: Determining auth:
type for QUrl("https://xxxxxxxxxxxx/remote.php/webdav/")
12-01 20:52:21:111 [ info sync.accessmanager ]: 6 "PROPFIND" "https://xxxxxxx/remote.php/webdav/" has X-Request-ID "690f1e86-e011-4439-b28c-c84dc3e37bbd"
12-01 20:52:21:111 [ info sync.networkjob ]: OCC::SimpleNetworkJob created for "https://xxxxx" + "" ""
12-01 20:52:21:241 [ info sync.networkjob.determineauthtype ]: Auth type for QUrl("https://xxxxx/remote.php/webdav/") is 0
12-01 20:52:27:421 [ info gui.account.state ]: Credentials asked for "https://xxxxxxx" are they ready? false
12-01 20:52:27:422 [ info gui.account.state ]: AccountState state change: "Zugangsdaten werden abgefragt" -> "Abgemeldet"
12-01 20:52:27:422 [ info gui.folder.manager ]: Account "xxxxxxx@xxxxxxx" disconnected or paused, terminating or descheduling sync folders
(END)

:

:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.