ItsOnlyMe
Verified User
So I have been playing with this for a while now but i am really out of idea's.
I am trying to have Directadmin taskq run parallel to restore multiple users at once. For this I use the GNU parallel. I notice a lot of random "crashes" of the taskq.
- There are no visible errors
- I am unable to find something in the logs about this.
- There is no message send to the message system about the given restore.
I also end up with a lot of backup restore jobs in the overview on the "admin backup and restore" page. When clicking one of those jobs, it will tell you that it does not run anymore and starts clearing that job data, but said user is not restored.
I am also unable to find hooks for the creation of ftp accounts that its unable to get a lock on /etc/proftpd.passwd . For creation of users you can hook into the process so it will hold off a little bit before throwing a error. As said on https://docs.directadmin.com/developer/hooks/ftp.html you can call these scripts but there is no ftp_create_pre.sh in the documentation. So where would I call the actions to set a custom lock file and loop with a sleep to see if that file is there before proceeding?
The same thing is working for useradd with the user_create_(pre|post).sh. I think there are more files that Directadmin locks / checks if its able to create the user or not. Can I get a full list of files that have this which da checks / calls?
The restoration of Directadmin users is terribly slow hence the reason why i want this to be done in parallel. I am willing to privately share the scripts with Directadmin staff I use regarding the restoration of users if this is needed to debug the crashing of taskq jobs.
I call the taskq with this command:
Where $_line is the complete action line directadmin uses to restore a user.
I am trying to have Directadmin taskq run parallel to restore multiple users at once. For this I use the GNU parallel. I notice a lot of random "crashes" of the taskq.
- There are no visible errors
- I am unable to find something in the logs about this.
- There is no message send to the message system about the given restore.
I also end up with a lot of backup restore jobs in the overview on the "admin backup and restore" page. When clicking one of those jobs, it will tell you that it does not run anymore and starts clearing that job data, but said user is not restored.
I am also unable to find hooks for the creation of ftp accounts that its unable to get a lock on /etc/proftpd.passwd . For creation of users you can hook into the process so it will hold off a little bit before throwing a error. As said on https://docs.directadmin.com/developer/hooks/ftp.html you can call these scripts but there is no ftp_create_pre.sh in the documentation. So where would I call the actions to set a custom lock file and loop with a sleep to see if that file is there before proceeding?
The same thing is working for useradd with the user_create_(pre|post).sh. I think there are more files that Directadmin locks / checks if its able to create the user or not. Can I get a full list of files that have this which da checks / calls?
The restoration of Directadmin users is terribly slow hence the reason why i want this to be done in parallel. I am willing to privately share the scripts with Directadmin staff I use regarding the restoration of users if this is needed to debug the crashing of taskq jobs.
I call the taskq with this command:
Code:
/usr/local/directadmin/directadmin taskq --run="$_line"