Exception while running command(['/usr/bin/hostnamectl', '--static']): [Errno 24] Too many open files - may be AFS related

Brief description of the problem

Cannot update Rockstor.

Detailed step by step instructions to reproduce the problem

[write here]

Web-UI screenshot

[Drag and drop the image here]

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception yield File "/opt/rockstor/src/rockstor/storageadmin/views/appliances.py", line 41, in get_queryset self._update_hostname() File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner return func(*args, **kwargs) File "/opt/rockstor/src/rockstor/storageadmin/views/appliances.py", line 48, in _update_hostname cur_hostname = gethostname() File "/opt/rockstor/src/rockstor/system/osi.py", line 766, in gethostname o, e, rc = run_command([HOSTNAMECTL, '--static']) File "/opt/rockstor/src/rockstor/system/osi.py", line 113, in run_command 'Exception while running command({}): {}'.format(cmd, e)) Exception: Exception while running command(['/usr/bin/hostnamectl', '--static']): [Errno 24] Too many open files

@millerce Welcome to the Rockstor community.

As you say this is suspected as related to our treatment of AFP or AFP itself and is an ongoing and long standing issue. Please see our GitHub issue on this for some background:

https://github.com/rockstor/rockstor-core/issues/1656
with a recent duplicate by way of:
https://github.com/rockstor/rockstor-core/issues/2020

This issue in turn link back to the following 2 forum threads:

and

and

The nearest we have to a work around, resolution of sorts, is from @erisler’s excellent exposition in the following forum post:

However their proposed fix was I think though to be a ‘cover-up’ of sorts rather than a core fix: see @Flyer’s comments at the time in their associated pull request:

https://github.com/rockstor/rockstor-core/pull/1934

If we could have some more informed input / reviews on the pull request I could consider merging this pull request as a work around is better than a non existent ‘fix’. But I’m afraid on the web tech involved here I’m in need of more input to know the true ramifications and don’t currently have the time to research further due to other ongoing Rockstor concerns. So if anyone familiar with this could have a look at @erisler proposal and see if it ‘fits our bill’ that would be great. As mentioned @Flyer had reservations and I defer to their knowledge in this area so leaving as is until we have more input on this.

Hope that helps to clarify where we are on this issue and if anyone familiar with this area of Rockstor tech could chip in that would be much appreciated as it’s a long standing issue and quite a frustration for those needing AFP: which we are toying with the idea of dropping anyway, as per openmediavault, so that is a context of sorts.

1 Like