New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal: write(indexer) failed: Resource temporarily unavailable #62
Comments
@ams001 Are you getting this only from doveadm or also in normal indexing ? |
@grosjo I've only seen it in doveadm and only with fts-xapian. |
@ams001 Dovecot teams point me to https://wiki.dovecot.org/SocketUnavailable Can you verify your own setting ? (especially ulimut et imap settings) |
client limit was not set. I have now set to 1. ulimit -n is 65535. I'm currently running other tests but will see if client_limit=1 as they suggest makes a difference between runs. Thanks |
I have just shutdown and restarted dovecot imap, same error, and nothing in the logs about client_limit or process_limit. However, because I am clearing the index prior to reindexing, I do see errors about fts-xapian being unable to open indexer files for folders within an account.
2x per folder. This makes sense because everything has been deleted, and after seeing the error, the directory exists - presumably having been created. This should be a warning or info message though that a new index for a folder has been created because one did not exist previously. Could this error be causing the temporary error? |
This is a bug indeed. I fixed it latest git. (you are great at finding bugs ! :D ) |
The latest git removed the errors and provided an info message that the folder/directory was being created, as per your fix. Thanks. Unfortunately the
message remains when initiating a reindex:
Oddly, it does not always do this when running the index in the foreground (i.e. without |
This is my settings:
Maybe the "max_userip_conn.." makes the difference ? |
If your server uses 'systemd', make sure "LimitNOFILE=65535" is uncommented |
As per previous comment open files limit is 65535. The above is how I achieved it. I also briefly tested your settings but that give the same error every time I flushed and recreated the index for a user's account (all folders). However, when I switched back to |
You shall mention that problem to Dovecot team
|
I close this issue as it is not related specifically to this plugin but to a wider scope |
From @ams001
Each time I start an index, I get the following:
but indexer-worker does run in the background. It does this now on every mailbox. Is this really an error? Either way, it needs addressing.
The text was updated successfully, but these errors were encountered: