Koozali.org formerly Contribs.org

Installation NextCloud qui ne permet pas aux users de se connecter.

Bonjour a tous,

après avoir installé Nextcloud sur mon SME Server 9.2 en suivant https://wiki.contribs.org/Nextcloud et m’être rendu sur
ip_serveur/nextcloud j'ai bien invitation au login administrateur et le choix de la base de données, je valide et ça s'installe sans renvoyer d'erreurs

a la suite, et après m’être déconnecter, pas moyen de me connecter avec le login d'un user du serveur

reconfig et reboot du serveur n'ont rien donné et je ne sais plus ou chercher

Une piste a me proposer ?

Re: Installation NextCloud qui ne permet pas aux users de se connecter.
« Reply #1 on: September 11, 2020, 09:48:24 AM »
bonjour,
un peu plus d'infos, qui me laisse entrevoir, a défault d'une solution , au moins une cause:
mon compte admin est plein de messages
*** SECURITY information for roudoudou ***
avec comme message un truc commancant toujours par:
Quote
roudoudou : Sep 10 15:47:15 : root : user NOT in sudoers ; TTY=pts/0 ; PWD=/usr/share/nextcloud ; USER=www ; COMMAND=/bin/bash -c /usr/bin/php72 --define memory_limit=512M occ ....

Je suppose que c'est l'ensemble de ces commandes qui assurent la configuration correcte de NextCloud. 9a me parret étonant que l'utilisateur root ne soit pas dans le groupe sudoers.
Reste a trouver comment le mettre !

Offline mmccarn

  • *
  • 2,525
Re: Installation NextCloud qui ne permet pas aux users de se connecter.
« Reply #2 on: September 11, 2020, 12:29:22 PM »
property         default           values
AdminPassword    GENERATED         string    password for your main admin user for nextcloud *
AdminUser        nextcloudadmin    string    main admin user for your installation *

...
* the SME admin user is also an admin of your nextcloud installation. You have two admin account as per default installation on SME Server.
It looks like you should be able to login as 'admin', but not as 'root'.

There may also be a problem with normal user settings:
User cannot see shares/files

After a new install the admin user could see shares but not a user.

We had a single ibay and it was set:

Code: [Select]
Group Everyone
Write group
Read everyone

We created a new group called localusers and added the admin and single user.

We then set the ibay:

Code: [Select]
Group localusers
Write group
Read group

This appeared to fix the issue and the user could now see the files.
[/quote

Re: Installation NextCloud qui ne permet pas aux users de se connecter.
« Reply #3 on: September 11, 2020, 02:28:51 PM »
It looks like you should be able to login as 'admin', but not as 'root'.

I can and I do it, but it seem that i just have a fresh installation of NextCloud without any integration from SME server
Quote
There may also be a problem with normal user settings:
User cannot see shares/files

After a new install the admin user could see shares but not a user.

but users can't connect in my case


Offline mmccarn

  • *
  • 2,525
Re: Installation NextCloud qui ne permet pas aux users de se connecter.
« Reply #4 on: September 12, 2020, 02:12:18 PM »
I have installed nextcloud on a test system to check things out.

I found:
* I had to run signal-event post-upgrade; signal-event reboot after installing the repositories before I could run the 'yum install...' command
* I ran signal-event post-upgrade; signal-event reboot again after installing nextcloud
* Browsing to https://<LAN IP>/nextcloud gave me a performance warning, saying I was configured to use sqlite.  This felt wrong to me, so I ran signal-event nextcloud-update
* After running signal-event nextcloud-update, /usr/share/nextcloud/config/config.php looked more complete, and I was able to login to https://<LAN IP>/nextcloud as admin without warnings or errors.

I created a test user and logged in to nextcloud with no problem. 'External storages' for the user showed the user's home folder.

I created an ibay using default settings - it did not appear in 'External storages' for the user.

I changed the ibay settings to 'Group: Everyone' and 'Write:group / Read:everyone'.  The ibay still did not appear in 'External storages' for the test user until after I manually ran signal-event nextcloud-update

Here is the current output of OCC config:list on the test system:
Code: [Select]
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "sme92.testing.local",
            "sme92",
            "testing.local",
            "localhost",
            "192.168.200.11"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "17.0.1.1",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "maintenance": false
    },
    "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.10.1",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "2"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "logging"
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1599910443.5257",
            "lastcron": "1599912009",
            "lastupdatedat": "1599910443.5338",
            "oc.integritycheck.checker": "[]",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "theming.variables": "08343dd3f787291558383b46e1b489fb",
            "vendor": "nextcloud"
        },
        "dav": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": "filesystem"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "yes",
            "installed_version": "0.14.2",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": "filesystem"
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "filesystem,dav"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.6.0",
            "types": "logging"
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "18.4.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.2.0",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "0.5.0",
            "types": ""
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "logging"
        },
        "text": {
            "enabled": "yes",
            "installed_version": "1.1.1",
            "types": ""
        },
        "theming": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "updatenotification": {
            "enabled": "yes",
            "files_rightclick": "0.15.1",
            "installed_version": "1.7.0",
            "types": ""
        },
        "user_ldap": {
            "background_sync_interval": "1800",
            "background_sync_offset": "0",
            "background_sync_prefix": "s01",
            "enabled": "yes",
            "installed_version": "1.7.0",
            "s01_lastChange": "1599911482",
            "s01ldap_base": "dc=testing,dc=local",
            "s01ldap_base_groups": "ou=Groups,dc=testing,dc=local",
            "s01ldap_base_users": "ou=Users,dc=testing,dc=local",
            "s01ldap_cache_ttl": "600",
            "s01ldap_configuration_active": "1",
            "s01ldap_display_name": "cn",
            "s01ldap_email_attr": "mail",
            "s01ldap_group_display_name": "cn",
            "s01ldap_group_filter": "(&(|(objectclass=posixGroup)))",
            "s01ldap_group_member_assoc_attribute": "memberUid",
            "s01ldap_groupfilter_objectclass": "posixGroup",
            "s01ldap_host": "localhost",
            "s01ldap_login_filter": "(&(|(objectclass=inetOrgPerson))(|(uid=%uid)(|(mail=%uid))))",
            "s01ldap_login_filter_mode": "0",
            "s01ldap_loginfilter_email": "1",
            "s01ldap_loginfilter_username": "1",
            "s01ldap_port": "389",
            "s01ldap_turn_off_cert_check": "1",
            "s01ldap_user_display_name_2": "uid",
            "s01ldap_userfilter_objectclass": "inetOrgPerson",
            "s01ldap_userlist_filter": "(|(objectclass=inetOrgPerson))",
            "s01use_memberof_to_detect_membership": "0",
            "s02_lastChange": "1599910469",
            "s02ldap_configuration_active": "0",
            "types": "authentication"
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        }
    }
}

Quote from: .../nextcloud/index.php/settings/admin/overview
MySQL is used as database but does not support 4-byte characters. To be able to handle 4-byte characters (like emojis) without issues in filenames or comments for example it is recommended to enable the 4-byte support in MySQL. For further details read the documentation page about this.
...
Nextcloud 17.0.1

A new version is available: Nextcloud 17.0.9
All apps have an update for this version available

Quote from: .../nextcloud/index.php/settings/admin/serverinfo
PHP
Version: 7.2.33
Memory Limit: 512 MB
Max Execution Time: 3600
Upload max size: 4 GB

Database
Type: mysql
Version: 5.1.73
Size: 3.2 MB

Re: Installation NextCloud qui ne permet pas aux users de se connecter.
« Reply #5 on: September 15, 2020, 03:57:34 PM »


thanks a lot i'll try this when i'll got a bit of time