Git Product home page Git Product logo

Comments (3)

joshtrichards avatar joshtrichards commented on May 30, 2024

but doesn't accept admin login/password

Which does it say precisely? Is it Temporarily Error or is it Wrong username or password or something else?

What does log entry look like in your Nginx access log?

Is this all through http://localhost or something else?

I assume you double-checked in a different browser too, correct?

Can you also check your browser console and browser console network tab for clues?

Also maybe bump your Nextcloud Server loglevel down to 0 (DEBUG level) then restart FPM and reattempt logging in while watching your nextcloud.log?

I know you mentioned you used the documented Nginx config, but just to confirm... You're using the one from the v28 manual and nothing pre-v27 (since the Nginx config was updated), correct?

from server.

greenais avatar greenais commented on May 30, 2024

Thank you for your prompt reply, I very appreciate such an attention.
In fact I've already found root of the issue (tnx to your advice to deep check browser logs) - just one little thing I missed in nginx site config editing:
fastcgi_param HTTPS on; - changing it to off resolved problem immediately

My NC setup is strictly local, so no need in https/TLS stuff with users frightening self-signed certs.
Unfortunately there is no howto for such cases, despite the phrase "and it is accessed via http(s)://cloud.example.com/" in nginx config docs, no http-only settings. I close this issue as it's obviously not a bug, but leave my answers for those who may bump in similar situation. Thank you again!

Which does it say precisely? Is it Temporarily Error or is it Wrong username or password or something else?

Nothing, just reloads login page with empty password field

What does log entry look like in your Nginx access log?

Nothing special, just ordinary requests for img, css and other usual stuff

Is this all through http://localhost or something else?

It's machine in local network, so URL looks like http://ms/index.php/login?clear=1

I assume you double-checked in a different browser too, correct?

For sure: FF, Chrome. Chromium, Opera

Can you also check your browser console and browser console network tab for clues?

That's what worked finally: I noticed warnings like "can't save secure cookie from insecure source" or something like this

I know you mentioned you used the documented nginx config, but just to confirm... You're using the one from the v28 manual and nothing pre-v27 (since the Nginx config was updated), correct?

I'm not sure how to determine v28, it was only official one I found
here

from server.

joshtrichards avatar joshtrichards commented on May 30, 2024

fastcgi_param HTTPS on; - changing it to off resolved problem immediately

Glad you got it worked out!

Unfortunately there is no howto for such cases, despite the phrase "and it is accessed via http(s)://cloud.example.com/" in nginx config docs, no http-only settings.

The full config there includes an http -> https redirect (the first server block). That's that it's referring to I believe.

I'm not sure how to determine v28, it was only official one I found here

FYI that link is for Nextcloud v21.

Make sure you're referencing the one from the Admin Manual that matches the version of Nextcloud Server you're using (visit https://docs.nextcloud.com and choose the appropriate version).

We do update the config at times and it's had several critical changes the past couple versions. You'll definitely have some problems using a v21 config with a v28 installation.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.