Suite du sujet Nextcloud - Erreur interne du serveur :
La catégorie “support” est destinée à l’aide et au dépannage lié à l’installation et utilisation de YunoHost et de ses applications. Elle n’est pas destinée à de l’assistance généraliste pour l’administration système, réseau, ou pour les cas particuliers qui vont au dela de ce que propose le projet. Si vous souhaitez discuter de cas d’usage avancés, merci d’utiliser la catégorie “Advanced Use Case”.
Mon serveur YunoHost
Matériel: Serveur Dédié acheté en ligne
Version de YunoHost: 4.3.6.2
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Bonjour,
j’ai un soucis avec mon Nextcloud… Je dois préciser que j’aide en ce moment des associations à se dégoogoliser, du coup j’ai commencé à ouvrir des comptes sur le Nextcloud sans inscription Yunohost, dans l’idée qu’ils aient des dossiers isolés, inscrits sur l’admin de Nextcloud et sans compte LDAP du coup ?? si je comprends bien ??
Suite à cette discussion: Ajout utilisateurs nextcloud sans inscription yunohost - #10 by Cellophile j’ai penser cela possible…
Bref, j’ai eu un constat, un utilisateur qui avait un compte Yunohost avec LDAP avait un identifiant toto
, puis un utilisateur sans ldap c’était inscrit avec un identifiant Toto
, il a été ajouté avec le mail de Yunohost et est devenu comme un doublon puisque Nextcloud a changé son adresse mail en toto@nom-domaine_du_serveur.tld comme l’autre utilisateur toto
.
C’est là que je suis allé faire un tour dans les Paramètres LDAP et que j’ai du cassé Nextcloud !
J’ai tenté des commandes occ
pour réparer et après avoir lu ce sujet ci-dessus, ou @ljf explique que l’on peut suivre des lignes de commandes de l’install de Nextcloud, je crois que j’ai empiré la situation… je me demande même si je n’ai pas effacé la configuration LDAP !!
Du coup, si quelqu’un peut m’aider, ce serait super ! Je suis en train de rapatrier aussi une sauvegarde avec Borg d’hier soir en dernier recours, mais ça va être long…
sudo -u nextcloud php7.3 --define apc.enable_cli=1 occ maintenance:repair
Nextcloud is in maintenance mode - no apps have been loaded
- Repair MySQL collation
- All tables already have the correct collation -> nothing to do
- Repair mime types
- Clean tags and favorites
- 0 tags of deleted users have been removed.
- 0 tags for delete files have been removed.
- 0 tag entries for deleted tags have been removed.
- 0 tags with no entries have been removed.
- Repair invalid shares
- Move .step file of updater to backup location
- Add move avatar background job
- Repair step already executed
- Add preview cleanup background jobs
- Fix potential broken mount points
- No mounts updated
- Repair language codes
- Install new core bundle components
- Add log rotate job
- Clear frontend caches
- Image cache cleared
- SCSS cache cleared
- JS cache cleared
- Clear every generated avatar on major updates
- Add preview background cleanup job
- Queue a one-time job to cleanup old backups of the updater
- Cleanup invalid photocache files for carddav
- Add background job to cleanup login flow v2 tokens
- Remove potentially over exposing share links
- No need to remove link shares.
- Clear access cache of projects
- Reset generated avatar flag
- Keep legacy encryption enabled
- Check encryption key format
- Remove old dashboard app config data
- Add job to cleanup the bruteforce entries
- Queue a one-time job to check for user uploaded certificates
- Repair DAV shares
- Add background job to set the lookup server share state for users
- Update hook for Appointments app
- appointments UpdateHook finished
- Update name of the stored view
- ERROR: Connection to LDAP server could not be established
- Upgrading Circles App
- Fix component of birthday calendars
- 1 birthday calendars updated.
- Regenerating birthday calendars to use new icons and fix old birthday events without year
- Repair step already executed
- Fix broken values of calendar objects
0 [->--------------------------]
- Registering building of calendar search index as background job
- Repair step already executed
- Register building of social profile search index as background job
- Registering background jobs to update cache for webcal calendars
- Added 0 background jobs to update webcal calendars
- Registering building of calendar reminder index as background job
- Repair step already executed
- Clean up orphan event and contact data
- 0 events without a calendar have been cleaned up
- 0 properties without an events have been cleaned up
- 0 changes without a calendar have been cleaned up
- 0 cached events without a calendar subscription have been cleaned up
- 0 changes without a calendar subscription have been cleaned up
- 0 contacts without an addressbook have been cleaned up
- 0 properties without a contact have been cleaned up
- 0 changes without an addressbook have been cleaned up
- Remove activity entries of private events
- Removed 0 activity entries
- Rebuild font library
- Copy default images to the app data directory
- Icon external.svg already exists
- Icon external-dark.svg already exists
- Icon settings.svg already exists
- Fix the share type of guest shares when migrating from ownCloud
- Copy the share password into the dedicated column
- Set existing shares as accepted
- Clean up meta table
- Update OAuth token expiration times
- onlyoffice
- Create help command
- Invalidate access cache for projects conversation provider
- Invalidation not required
- Cache the user display names
- ERROR: Connection to LDAP server could not be established
- Switches from default updater server to the customer one if a valid subscription is available
- Repair step already executed
- Send an admin notification if monthly report is disabled
- Add background job to check for backup codes
- Insert UUIDFix background job for user and group in batches
- Remove deprecated refresh time markers for LDAP user records
- Populating added database structures for workflows
Before, broke I could see this
sudo -u nextcloud php7.3 --define apc.enable_cli=1 occ ldap:show-config
+-------------------------------+-----------------------------------+
| Configuration | |
+-------------------------------+-----------------------------------+
| hasMemberOfFilterSupport | 1 |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | dc=yunohost,dc=org |
| ldapBaseGroups | ou=groups,dc=yunohost,dc=org |
| ldapBaseUsers | ou=users,dc=yunohost,dc=org |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapDefaultPPolicyDN | |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | |
| ldapExpertUsernameAttr | uid |
| ldapExtStorageHomeAttribute | |
| ldapGidNumber | gidNumber |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (&(objectclass=top)(memberUid=*)) |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | posixGroup |
| ldapGroupMemberAssocAttr | memberUid |
| ldapHost | localhost |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&objectclass=posixAccount) |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapMatchingRuleInChainState | unknown |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | userquota |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserAvatarRule | default |
| ldapUserDisplayName | displayname |
| ldapUserDisplayName2 | |
| ldapUserFilter | objectclass=posixAccount |
| ldapUserFilterGroups | admins;all_users |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | posixAccount |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| turnOnPasswordChange | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+-----------------------------------+
+-------------------------------+-------------+
| Configuration | s01 |
+-------------------------------+-------------+
| hasMemberOfFilterSupport | 0 |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | |
| ldapBaseGroups | |
| ldapBaseUsers | |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 0 |
| ldapDefaultPPolicyDN | |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | |
| ldapExpertUsernameAttr | |
| ldapExtStorageHomeAttribute | |
| ldapGidNumber | gidNumber |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | |
| ldapGroupFilterGroups | |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | |
| ldapGroupMemberAssocAttr | |
| ldapHost | |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | |
| ldapLoginFilterAttributes | |
| ldapLoginFilterEmail | 0 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapMatchingRuleInChainState | unknown |
| ldapNestedGroups | 0 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserAvatarRule | default |
| ldapUserDisplayName | displayName |
| ldapUserDisplayName2 | |
| ldapUserFilter | |
| ldapUserFilterGroups | |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| turnOnPasswordChange | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+-------------+
But now having this:
sudo -u nextcloud php7.3 --define apc.enable_cli=1 occ ldap:show-config
Nextcloud is in maintenance mode - no apps have been loaded
There are no commands defined in the "ldap" namespace.
Help me !!