
17th January 2012, 22:07
|
|
Junior Member
|
|
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
All files gone after changing quota to 0
Hello dear ISPConfig developer team. Recently after updating ISPConfig from slightly older version to 3.0.4.2 one of my clients changed sites quota to 0 and instantly lost ALL files in the given site without any possibility of recovery. Huge community site was lost, and many other things. Years of work. Projects management team might be responsible for not making descent backups and I am not trying to be an a**hole here, but seriously? Is what happened here even possible and are there any chances of getting anything back? I know how Linux file recovery works and getting files back without file names is not really a deal closer. This is bad beyond belief...
|

17th January 2012, 22:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,886
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
Setting quota to 0 can not delete any files, so there must have happened somthing else on your server, maybe a problem on the harddisk, filesystem etc. Feel free to install a ispconfig server and set quota to any value you like if you dont believe me, it will not delete any files. Beside there are ten thousands of servrs running ispconfig and we received no report of dataloss on quota change. Changing quota does nothing else then setting a new quota limit in the linux quota database of the partition, it neither moves, copies or deletes files.
Last edited by till; 17th January 2012 at 22:28.
|

17th January 2012, 22:34
|
|
Junior Member
|
|
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Yes I know it should not do that, but it did. Nothing besides changing quota was done. That is why I am sharing my frustration in this forum. It would suck if it happened to anyone else and I do understand that if the files where deleted, there is not much chance of recovery. Right after changing the quota, user directory looked like it was just created. All I am trying to understand here is why?
edit: there might be a possibility, that my client is lying, but the thing is - he is not completely stupid. I don't think he deleted those files. If there is even a possibility of a bug doing that, it should be raided with tanks.
Last edited by spynode; 17th January 2012 at 22:36.
|

17th January 2012, 22:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,886
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
Did you set the quota yourself or did someone told you that he just changed the quota? I have to ask that before we try to check that more in detail as I heard it more then once that clients just said that they did a thing because they were ashamed that they did somtehing else which caused a problem.
I have no idea what might caused that, iam sure that it can not be caused by the qota change. I will try to reproduce that but iam sure that it cant be reproduced by changing the quota. As i explained above, there are many installs in production, about 15 - 20thousand new installs per month, so if ispconfig would delete files on quota change, then you would find a few thousand posts about that here in the forum.
Have you checked all subfolders in /var/www if the site is not somwhere there, especially all subfolders in the clients directors. Maybe someone changed the path of the site so that the domain symlink points to a new empty directory while the old site is still there.
|

17th January 2012, 22:49
|
|
Junior Member
|
|
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
As I wrote, I did not change it myself. Rather it was done by I client of mine whom I know personally and who is quite reasonably intelligent. Can any quota change trigger this at all? For example changing quota to -1? There can be millions of active installs not suffering from this but in reality there are no 2 equally configured deployments.
Last edited by spynode; 17th January 2012 at 22:52.
|

17th January 2012, 23:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,886
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
A quota change can not delete files, if you change the quota of a linux user as root to a value that is lower then the existing amount of files, then nothing will happen except that repquota reports the user as over quota and that the user will not be able to upload new files. There is no function in the linux quota system nor ispconfig that removes files when a user is over quota.
Pleae check the server, e.g. With a full file search, if the site is in a different folder where you might not expect it.
A empty site does not nescesarily mean that the site has been deleted, it can also mean that the site has been recreated in a new location because the site path was changed in a way that ispconfig could not recognize it, e.g on the shell, so the quota change triggered a update on the site, the scripts did not find the site in the directory that is set as site path an created a new empty site so that apache wont fail but the original site still exists in another path.
Did your client told ou why he changed the quota? In most cases users change quota when they recive some kind of error becuse they think that the quota change will fix it. If there was uch a error, then this error might be the indication what happened to the site.
|

17th January 2012, 23:12
|
|
Junior Member
|
|
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Thank You. Unfortunately files are nowhere to be found. I assume they are gone. It's either a diabolical interference or the client actually deleted his whole site. A sad day form me in either case. I will keep you up to date as of what really happened.
|

18th January 2012, 14:18
|
|
Junior Member
|
|
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
So we tested and replicated the situation. It actually happens when traffic (not disk) quota is changed to -1. Is this normal behavior? It is 100% tested and replicated.
|
|
The Following User Says Thank You to spynode For This Useful Post:
|
|

18th January 2012, 15:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,886
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
I will check that and will try to reproduce that here. Changing traffic quota does nothing directly after the change as only the value in the database gets changed. All actions related to this field happen at 0:30 AM in the morning, if disk quota is exceeded, the symlink to the vhost file in /etc/apache2/sites-enabled gets removed.
|

18th January 2012, 15:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,886
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
I've just run some tests and 'am not able to reproduce that. Please see test steps below:
- Installed ISPConfig 3.0.4.2 on Debian 6
- Created a new website with domain "test.tld", left all as default
(traffic quota -1 is the default in ISPConfig). Then I created a
file test.html so that I'am able to verify if the site gets deleted
cd /var/www/test.tld/web
touch test.html
chown web2:client0 test.html
ls -la /var/www/test.tld/web
total 36
drwx--x--- 4 web2 client0 4096 Jan 11 11:19 .
drwxr-x--x 6 web2 client0 4096 Jan 11 11:18 ..
drwxr-xr-x 2 web2 client0 4096 Jan 11 11:18 error
-rwxr-xr-- 1 web2 client0 7358 Jan 11 11:18 favicon.ico
-rwxr-xr-- 1 web2 client0 26 Jan 11 11:18 .htaccess
-rwxr-xr-- 1 web2 client0 1861 Jan 11 11:18 index.html
-rwxr-xr-- 1 web2 client0 24 Jan 11 11:18 robots.txt
drwxr-xr-x 2 root root 4096 Jan 11 11:18 stats
-rw-r--r-- 1 web2 client0 0 Jan 11 11:19 test.html
Then I changed the traffic quota to a different value, I used 1000, then checked the site again:
ls -la /var/www/test.tld/web
total 36
drwx--x--- 4 web2 client0 4096 Jan 11 11:19 .
drwxr-x--x 6 web2 client0 4096 Jan 11 11:18 ..
drwxr-xr-x 2 web2 client0 4096 Jan 11 11:18 error
-rwxr-xr-- 1 web2 client0 7358 Jan 11 11:18 favicon.ico
-rwxr-xr-- 1 web2 client0 26 Jan 11 11:18 .htaccess
-rwxr-xr-- 1 web2 client0 1861 Jan 11 11:18 index.html
-rwxr-xr-- 1 web2 client0 24 Jan 11 11:18 robots.txt
drwxr-xr-x 2 web2 client0 4096 Jan 11 11:18 stats
-rw-r--r-- 1 web2 client0 0 Jan 11 11:19 test.html
Then I changed the traffic limit to -1, waited a few minutes and tested again:
ls -la /var/www/test.tld/web
total 36
drwx--x--- 4 web2 client0 4096 Jan 11 11:19 .
drwxr-x--x 6 web2 client0 4096 Jan 11 11:18 ..
drwxr-xr-x 2 web2 client0 4096 Jan 11 11:18 error
-rwxr-xr-- 1 web2 client0 7358 Jan 11 11:18 favicon.ico
-rwxr-xr-- 1 web2 client0 26 Jan 11 11:18 .htaccess
-rwxr-xr-- 1 web2 client0 1861 Jan 11 11:18 index.html
-rwxr-xr-- 1 web2 client0 24 Jan 11 11:18 robots.txt
drwxr-xr-x 2 web2 client0 4096 Jan 11 11:18 stats
-rw-r--r-- 1 web2 client0 0 Jan 11 11:19 test.html
The site is still there and the test file has not been deleted.
Please provide me with detailed steps on how to reproduce that problem.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:22.
|
Recent comments
8 hours 58 min ago
13 hours 56 min ago
15 hours 23 min ago
16 hours 16 min ago
17 hours 59 min ago
22 hours 22 min ago
23 hours 14 min ago
1 day 1 hour ago
1 day 14 hours ago
1 day 16 hours ago