Login not working - no error in log

Hello,

I have been unable to log into my newly set up owncloud install. I am using 10.2 and running it on docker.

When I log in using an intentionally incorrect login, I get an error in the log like thi
{“reqId”:“LrGbC8X4M8BNfFydI5hq”,“level”:2,“time”:“2019-07-15T16:31:02+00:00”,“remoteAddr”:“192.168.240.1”,“user”:"–",“app”:“core”,“method”:“POST”,“url”:"/login?redirect_url=%252Fapps%252Ffiles%252F",$252F",“message”:“Login failed: ‘test’ (Remote IP: ‘192.168.240.1’)”}

However when I try to log in with the correct credentials the browser refreshes the login screen and no error is recorded in the log.

Any tips on how to solve this or troubleshoot it would be very appreciated.

Can you try logging in using https?

Yep I connect to the site with HTTPS and a valid certificate.

It’s not even showing a message on the login screen like ‘You took too long to login…’?

Because that would be an issue when PHP can’t open a session, because for example it can’t write the session file because the disk is full or wrong permissions on the sessions folder.

Did you follow the official guide for setting up an ownCloud docker container or did you build your own? Perhaps link the guide you followed here, otherwise detail your build process and configuration files.

1 Like

Hello,

could you also change logging level to DEBUG or INFO to get maybe more informations ?

1 Like

Thanks for the tip, unfortunately it isn’t giving me any new clues.

Today I actually did get the “You took too long message”, after getting it once though I couldn’t reproduce.

I’ll ask the sysadmin who helped me set up the docker container if there is anything out the ordinary going on with that.

Here’s a useful clue: https://forum.owncloud.org/viewtopic.php?f=38&t=34335

I updated the varnish configuration to not strip out the two cookies that I found on my computer for that domain (i.e. oc_sessionPassphrase, oc[a-z0-9]{10}) and that worked - or at least, now it’s telling me the passwd is wrong, where it didn’t before.

Does anyone know if those are the right cookies to be sending to the server?

Hi @Alan_Dixon,
I don’t think @Calvin_Winter is using a server side cache, so I doubt this applies here.
Regarding your question, I would recommend you open a new topic, so people in the community can actually see your pretty specific set up and question about it.
Cheers,
Erik

1 Like

How to do? I’ll ask the sysadmin who helped me set up the docker container if there is anything out the ordinary going on with that.

Hey,

i did the following search https://central.owncloud.org/search?q="You%20took%20too%20long" and found the following threads:


where most solutions leads to the following suggestion:

So i would definitely try to search for the reason within the PHP environment / setup.