-
Notifications
You must be signed in to change notification settings - Fork 444
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
Removing client doesn't remove all assets that are connected to that client #68
Comments
Thanks for reporting, I remember this request from a while back on the forums. I think we could do with a list of check boxes to decided what to remove when deleting a client... |
Yes, i'm sure that there are cases where host owner would like to keep logs some time after client is deleted etc. |
Same over records left in database |
Good idea, we'll have a review of how the client module works and looks for one of the next versions. I've primarily assigned this to 1.1 but may get moved back to 1.2. Records in the DB aren't an issue for me, quite handy to see how many clients you've had overall, however files left around the system are a pain to clear up. We'll review the core clients module 👍 |
DNS records don't get removed once deleted and if you try to add it back welcome to bugs bunny. |
Yes, I think this should be implemented. There is no reason to keep them in the DB after deletion. As I had suggested in the Staff forums, the accounts and their info should be moved to another DB table for reference (kind of like a backup log). |
It could be dumped to an XML file if we want a backup.....No need to inflate db with this mess. |
Just for reference these originally was flagged as deleted in the DB to On 16 October 2014 10:02, MBlagui [email protected] wrote:
|
The problem @bobsta63 that other modules miss checking that record stat is deleted when trying to add a new one. So we ended up with unable to add dns records/users if the record existed before. Alternative solution as I said is pushing them into an XML file for archiving. I had been thinking about exporting users config ( all emails accounts/web config) so we can move them from a server to another. The same function would be used to archive/backup this data off the DB. M B |
Yeah I agree! - I'm sure that once upon a time they did though ;) - Maybe On 16 October 2014 11:21, MBlagui [email protected] wrote:
|
I propose myself to implement that : when a record is to be deleted in the database, at least 2 lines are added in a file "/etc/sentora/logs/deleted_records.log". The first line wiil describe what was the deletion cause, like "2014-11-05 08:56 Delete user account Xxxx" |
That's a great idea! But, it would include user info such as encrypted pass and password salt, user location and telephone, etc... This is why I suggested it be in a separate DB table. Also, if in a DB table, the admin can look through it easily via an admin module of some sort and decide what to do with it. Also, a hook could be created to delete or whatever entries older than XX amount of time/days/years. |
It is started, but as it involves many changes and is not imperatively required (not a locking bug), I'll not push it for the first release of Sentora : it would break too much the beta version and would require a new complete tests set. |
Is there any "quick fix" for this? I need to re-register a customer account (which has been previously deleted and is not listed in clients) but when I try Sentora states the email address is in use by another account. |
Yeah, the "quock fix" would be yo Open up the x_accounts table in the sentora_core database and delete the row from the table that has that email address... Then re-create the account and all should be fine :) Cheers, Sent from my iPhone
|
Wow. I popped to the shop just after posting this, just arrived home and valid response already. Confirmed "quick fix". |
No problem buddy :) Sent from my iPhone
|
After removing test client, i can still find following folders and files on disk:
/etc/zpanel/panel/modules/webalizer_stats/stats/CLIENTNAME
/etc/zpanel/panel/modules/webalizer_stats/stats/CLIENTNAME/DOMAIN.com
/etc/zpanel/configs/bind/zones/DELETEDCLIENTSDOMAIN.com.txt
/var/zpanel/logs/domains/CLIENTNAME
/var/zpanel/logs/domains/CLIENTNAME/DOMAIN.com-access.log
/var/zpanel/logs/domains/CLIENTNAME/DOMAIN.com-error.log
/var/zpanel/logs/domains/CLIENTNAME/DOMAIN.com-bandwidth.log
/var/zpanel/logs/domains/CLIENTNAME/SUBDOMAIN.DOMAIN.com-access.log
/var/zpanel/logs/domains/CLIENTNAME/SUBDOMAIN.DOMAIN.com-error.log
/var/zpanel/logs/domains/CLIENTNAME/SUBDOMAIN.DOMAIN.com-bandwidth.log
/var/zpanel/vmail/DOMAIN.com
If client's web page was very active, you have bunch of logs / stats / mail on your disk that is taking up space you can use for something more useful. This gets troublesome on small VPS where you have active "traffic" of adding / removing clients. Suddenly you'r out of disk space and you have no idea why.
The text was updated successfully, but these errors were encountered: