goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

What means "Failed to mmap"

Open unclesamwk opened this issue 3 years ago • 3 comments

Hey,

what means this error message, because what can i do to fixit?

goaccess 1.5.1

/usr/local/bin/goaccess /logs/archive/2021_07_05-access.log -a --no-parsing-spinner --no-global-config --log-format COMBINED --date-spec=2 --date-spec=4 --date-spec=6 --date-spec=12 --db-path /logs/.goaccess/DB/GA_DB_WHOLE --restore --persist

Failed to mmap /logs/.goaccess/DB/GA_DB_WHOLE/IS32_REQUESTS_MTRC_DATAMAP.db: Invalid argument
tpl_load failed for file /logs/.goaccess/DB/GA_DB_WHOLE/IS32_REQUESTS_MTRC_DATAMAP.db

greetings sam

unclesamwk avatar Jul 06 '21 13:07 unclesamwk

Does /logs/.goaccess/DB/GA_DB_WHOLE/ exist? Please make sure it has been previously created and it's writable. e.g.,

# mkdir -p /logs/.goaccess/DB/GA_DB_WHOLE/

allinurl avatar Jul 06 '21 17:07 allinurl

Yes folder exist, and the file too!

unclesamwk avatar Jul 07 '21 08:07 unclesamwk

Was that the first run and no db files existed before on that folder? also are you getting this error after successfully parsing your log and exiting from the terminal interface or as soon as you run goaccess (before parsing anything)? finally can you please post the output after running goaccess through strace?

strace /usr/local/bin/goaccess /logs/archive/2021_07_05-access.log -a --no-parsing-spinner --no-global-config --log-format COMBINED --date-spec=2 --date-spec=4 --date-spec=6 --date-spec=12 --db-path /logs/.goaccess/DB/GA_DB_WHOLE --restore --persist

allinurl avatar Jul 08 '21 01:07 allinurl