Ran into this issue while testing the script. Worked fine a few times, then halfway through cleaning some logs i got a crash like this, then it continues to crash. IP and hostnames replaced as they are not relevant.
root@generic_host_name:~# python nojail.py -i x.x.x.x -n x.x.x.x
[ ] Cleaning logs for sjkgxd (x.x.x.x - x.x.x.x).
[ ] No entries to remove from /var/run/utmp.
[ ] No entries to remove from /var/log/wtmp.
[ ] No entries to remove from /var/log/btmp.
Traceback (most recent call last):
File "nojail.py", line 601, in <module>
clean_lastlog(LINUX_LASTLOG_FILE, args.user, args.ip, args.hostname)
File "nojail.py", line 331, in clean_lastlog
clean_file += f.read()
MemoryError
Any ideas? The system was nowhere close to out of memory.
Thanks
Ran into this issue while testing the script. Worked fine a few times, then halfway through cleaning some logs i got a crash like this, then it continues to crash. IP and hostnames replaced as they are not relevant.
Any ideas? The system was nowhere close to out of memory.
Thanks