You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A message should be shown to the user explaining that he has no disk space left
Tasks
Add a global free disk space check that's triggered when there is 50mb of disk space left on the partition where the HTTP cache and DB is saved. Note that I said "global", this means that it's not tied to the DBMS.
The check should run once every N requests
When it fails it should raise a IOError and end up in w3afCore.py error handling for no disk space left:
exceptIOErroras (error_id, error_msg):
# https://github.com/andresriancho/w3af/issues/9653# IOError: [Errno 28] No space left on deviceiferror_id==errno.ENOSPC:
msg= ('The w3af scan will stop because the file system'' is running low on free space. Check the "%s" directory'' size, overall disk usage and start the scan again.')
msg%=get_home_dir()
print(msg)
om.out.error(msg)
else:
raise
Verify that the fix prevents the current issue (note that it's on the GUI!)
Version Information
Python version: 2.7.3 (default, Mar 14 2014, 17:55:54) [GCC 4.6.3]
GTK version: 2.24.10
PyGTK version: 2.24.0
w3af version:
w3af - Web Application Attack and Audit Framework
Version: 1.6.0.5
Revision: 880379b54b - 26 Sep 2014 18:32
Branch: master
Local changes: No
Author: Andres Riancho and the w3af team.
Traceback
Traceback (most recent call last):
File "/home/user/w3af/w3af/core/ui/gui/tabs/log/graph.py", line 88, in draw_handler
reset =self._redraw_gen.next()
File "/home/user/w3af/w3af/core/ui/gui/tabs/log/graph.py", line 119, in _redraw_alliflen(self.all_messages) <2:
File "/home/user/w3af/w3af/core/data/db/disk_list.py", line 247, in __len__
r =self.db.select_one(query)
File "/home/user/w3af/w3af/core/data/db/dbms.py", line 51, in inner_verify_startedreturn meth(self, *args, **kwds)
File "/home/user/w3af/w3af/core/data/db/dbms.py", line 119, in select_onereturnself.select(query, parameters)[0]
File "/home/user/w3af/w3af/core/data/db/dbms.py", line 51, in inner_verify_startedreturn meth(self, *args, **kwds)
File "/home/user/w3af/w3af/core/data/db/dbms.py", line 110, in selectreturn future.result()
File "/usr/lib/pymodules/python2.7/concurrent/futures/_base.py", line 405, in resultreturnself.__get_result()
File "/usr/lib/pymodules/python2.7/concurrent/futures/_base.py", line 357, in __get_resultraiseself._exception
DBException: database or disk is full
The text was updated successfully, but these errors were encountered:
andresriancho
changed the title
[Auto-Generated] Bug Report - DBException: database or disk is full
DBException: database or disk is full - Should stop the scan
Sep 28, 2014
Goals
Tasks
w3afCore.py
error handling for no disk space left:Version Information
Traceback
The text was updated successfully, but these errors were encountered: