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
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: