syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
400 stars 40 forks source link

[nextcloud] unable to login #307

Closed cyberb closed 6 years ago

cyberb commented 6 years ago
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {user_ldap} Configuration Error (prefix s01): login filter does not contain %uid place holder.
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {user_ldap} Configuration Error (prefix s01): login filter does not contain %uid place holder.
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {user_ldap} Configuration Error (prefix s01): login filter does not contain %uid place holder.
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {user_ldap} Configuration Error (prefix s01): login filter does not contain %uid place holder.
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {user_ldap} Configuration is invalid, cannot connect
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {user_ldap} No LDAP Connection to server ldap://localhost
Jun 20 17:00:10 odroid-xu3and4 ownCloud[1894]: {index} Exception:
{"Exception":"OC\\ServerNotAvailableException","Message":"Connection to
LDAP server could not be established","Code":0,"Trace":"#0
cyberb commented 6 years ago

Looks like this happens when app is failing to install the first and users install it again over corrupted config.

Here is the workaround: https://github.com/syncloud/platform/wiki/Clean-app-configs-from-previous-install

burij commented 6 years ago

hi, sorry to barg you and thanks for amazing work. the workaround doesn't work for me. also after a clean install of syncloud and nextcloud i'm not able to login. first visit of nextcloud brings me to the login page (not the setup wizard). i also tryed the workaround and any possible combination of default credentials and credentials syncloud could alredy know. any idea?

cyberb commented 6 years ago

Syncloud configures nextcloud for users automatically on install, postgresql dB, local LDAP, trusted domain... So you actually should see just login page after the install.

All the apps (except diaspora) by default will accept device login/password (LDAP) as admin user.

burij commented 6 years ago

ok, thx for the feedback. after third (!) clean install i manged to login with my normal login. it works with an older version of syncloud, not with the current one. somehow the current stable build fails to create the right user.

cyberb commented 6 years ago

I assume by clean install you mean image writing. Did you change anything during those three attempts like different (simpler) login, waiting for Nextcloud install to finish?

Did it take three attempts using current (18.05) image or the old (18.03.01) one?

burij commented 6 years ago

no, i din't do anything special. first time i was in settings during the installation of nextcloud und changed ports, external drive etc. login failed. so i deleted nextcloud with the software center, deleted through ssh nextcloud folders, reinstalled nextcloud, login failed. then i wrote a knew image with the same current build, didn't during the installation anything, login failed. then i took older image, did the installation, login succeed.

cyberb commented 6 years ago

What board are you using? I will do more testing.

burij commented 6 years ago

I'm using Raspberry Pi 3B

ik0api commented 2 years ago

I do have the same symptoms after a date-time issue with mi RPI4 with internal boot SD card and external USB disk (I adopted the solution in https://github.com/syncloud/platform/wiki/Time but I always have a wrong year 1970 date/time at startup. btw)

With or without a time correction via SSH, every app works except Nextcloud: when I reach the login page and insert the right login/px combinations of 3 different admin and user accounts I get the login mask appearing again. I'm sure about the 3 combinations.

My questions:

1 - can I recover or change admin password via SSH? How?

2 - What if I remove the Nextcloud app and reinstall it? Will I be able to see my files on the external disk If I use the same admin/pw combination of the old faulty installation?

Any other hints for this issue?

Thank you so much.

Marco