Error when deleting accounts

bdennie

New member
Joined
Jan 19, 2024
Messages
4
We are getting this error when deleting accounts

Error Removing User speakgre
Script output: /usr/local/directadmin/scripts/custom/user_destroy_pre.sh
Traceback (most recent call last):
File "/opt/alt/python37/lib64/python3.7/logging/config.py", line 563, in configure
handler = self.configure_handler(handlers[name])
File "/opt/alt/python37/lib64/python3.7/logging/config.py", line 736, in configure_handler
result = factory(**kwargs)
File "/opt/alt/python37/lib64/python3.7/logging/__init__.py", line 1087, in __init__
StreamHandler.__init__(self, self._open())
File "/opt/alt/python37/lib64/python3.7/logging/__init__.py", line 1116, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/var/log/cloudlinux/hooks/info.log'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/share/cloudlinux/hooks/directadmin/user_destroy_pre", line 27, in
main()
File "/usr/share/cloudlinux/hooks/directadmin/user_destroy_pre", line 19, in main
setup_logger_and_sentry()
File "/opt/alt/python37/lib/python3.7/site-packages/clcommon/public_hooks/__init__.py", line 65, in setup_logger_and_sentry
dictConfig(config)
File "/opt/alt/python37/lib64/python3.7/logging/config.py", line 800, in dictConfig
dictConfigClass(config).configure()
File "/opt/alt/python37/lib64/python3.7/logging/config.py", line 571, in configure
'%r' % name) from e
ValueError: Unable to configure handler 'default_file_handler'

Any help would be appreciated.
 
You're using a customized script, can you show it here?

Also try to rename this script as follow mv user_destroy_pre.sh _user_destroy_pre.sh and try again? If succeed, the customization is a problem, you can restore the script by mv _user_destroy_pre.sh user_destroy_pre.sh
 
this relate to cloudlinux, please create support ticket on cloudlinux site.
 
Back
Top