NC 16 Update failed: Connection to LDAP server could not be established

nextcloud

(Ralf Jeckel) #1

Today I updated my server and got a failure with NC 16:

“Connection to LDAP server could not be established”

From message.log:

May 13 07:55:13 colab-server esmith::event[1020]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available 
May 13 07:55:13 colab-server esmith::event[1020]: You may use your browser or the occ upgrade command to do the upgrade 
May 13 07:55:13 colab-server esmith::event[1020]: grade 
May 13 07:55:13 colab-server esmith::event[1020]: grade 
May 13 07:55:13 colab-server esmith::event[1020]: There are no commands defined in the "ldap" namespace. 
May 13 07:55:13 colab-server esmith::event[1020]: grade 
May 13 07:55:13 colab-server esmith::event[1020]: grade 
May 13 07:55:13 colab-server su: (to apache) root on none 
May 13 07:55:13 colab-server esmith::event[1020]: Nextcloud or one of the apps require upgrade - only a limited number of commands are available 
May 13 07:55:13 colab-server esmith::event[1020]: You may use your browser or the occ upgrade command to do the upgrade 
May 13 07:55:13 colab-server esmith::event[1020]: grade 
May 13 07:55:13 colab-server esmith::event[1020]: grade 
May 13 07:55:13 colab-server esmith::event[1020]: There are no commands defined in the "ldap" namespace.

NS-Version: 7.6.1810 (final)
Machine: VM on proxmox
Certificate: self-signed
This server is joind to another NS 7 instance which is the AD. Join is o.k. All users and groups are present.


(Giacomo Sanchietti) #2

Could you please post the output of the following command?

su - apache -s /bin/bash -c "source /opt/rh/rh-php72/enable; cd /usr/share/nextcloud/; php -dmemory_limit=512M occ ldap:show-config"

(Ralf Jeckel) #3

Hi giacomo, thanks for answering.

Here is the output of your command:

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade


  There are no commands defined in the "ldap" namespace.

(Giacomo Sanchietti) #4

Try with this one:

su - apache -s /bin/bash -c "source /opt/rh/rh-php72/enable; cd /usr/share/nextcloud/; php -dmemory_limit=512M occ app:list" | grep ldap

You should see:

  - user_ldap: 1.6.0

If you don’t see the output, try:

 su - apache -s /bin/bash -c "source /opt/rh/rh-php72/enable; cd /usr/share/nextcloud/; php -dmemory_limit=512M occ app:enable user_ldap"
signal-event nethserver-nextcloud-update

(Ralf Jeckel) #5
 su - apache -s /bin/bash -c "source /opt/rh/rh-php72/enable; cd /usr/share/nextcloud/; php -dmemory_limit=512M occ app:list" | grep ldap
  - user_ldap: 1.6.0

I see user_ldap: 1.6.0

EDIT: I found this here in the community Connection between nextcloud and LDAP server could not be established

Same Problem?


(Giacomo Sanchietti) #6

I don’t know, for sure the errors is misleading because the app is installed.
But try also to enable it, and see what happens.

Also check the solution in the thread you linked.


(Ralf Jeckel) #7

This is kind of funny. :slight_smile:

As NC-updates are always critical, I did a snapshot before upgrading.
I did a rollback and did the update again, but this time from CLI, not from softwarecenter.
Now it worked.

grafik

Don’t know why.