fails to start with maximum user exceded error


We are facing a problem with our Seafile server running version 5.1.8 on Ubuntu 14.04 LTS. Seafile valid license with 40 users. The server is integrated with Microsoft AD. and fails to start. When trying to manually start, the following error is reported:

** Message: seafile-controller.c(1077): loading seafdav config from /seafile/xxx/conf/seafdav.conf

[08/15/16 12:12:14] ../common/session.c(132): using config file /seafile/xxx/conf/ccnet.conf
[08/15/16 12:12:14] user-mgr.c(126): The number of users exceeds limit, max 40, current 41
failed to run "ccnet-server -t"

We have removed a couple of users from seafile group in AD and rebooted Seafile server (full reboot). No errors were reported during the boot cycle, yet and do not start and still reporting exceeded number of users.

how can the number of users be checked/managed from the command line, since the Seafile webpage is unavailable at the moment ?

Many thanks for your help

It looks like the seafile will check the number of active accounts in the table “EmailUser” of database “ccnet-db” during startup. Could you make sure that number does not exceed the user limit?

To reduce the number of users, you can delete a few users from the EmailUser table in the ccnet database (you created them when you setup seafile for the first time). If you follow our manual, the database name should be ccnet-db.

Thank you very much guys for the help.
Yes, deleting the extra users from ccnet-db database has fixed the issue.
The annoying thing here is that Seafile will not give any warning o reject adding users when it hits the license limit. The problem only appears when the server is rebooted.

Thanks again :slight_smile:

1 Like

We’ll improve the handling of this situation. Thanks!

Just curious, does that mean that you can not have more users in the system than licenses? we were under the impression that you could have more users than licenses, but they just couldn’t login at the same time.

the license is based on named users not concurrent.
Counts all active user and guest accounts