Crashing at start
I followed the VIA shared project server setup and everything compiled fine.
However when I try to start the server by running
./via_project_server 127.0.0.1 9669 2 data/latest data/rev data/revdb data/log
the server crashes with the following error:
VIA Project Server (via_project_server-0.0.1)
Author: Abhishek Dutta (adutta@robots.ox.ac.uk), 20 June 2019
Configuration:
threads = 2
project_dir = data/latest
project_rev_dir = data/rev
project_rev_db = data/revdb
Initializing leveldb from : data/rev
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::directory_iterator::construct: No such file or directory: "data/rev/00"
Aborted
The four folders above were just created as shown in the tutorial and are empty.
Here is the backtrace:
Configuration:
threads = 2
project_dir = data/latest
project_rev_dir = data/rev
project_rev_db = data/revdb
Initializing leveldb from : data/rev
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
what(): boost::filesystem::directory_iterator::construct: No such file or directory: "data/rev/00"
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff7264801 in __GI_abort () at abort.c:79
#2 0x00007ffff78b9957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff78bfae6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff78bfb21 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff78bfd54 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x0000555555657c3b in boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*) ()
#7 0x00005555555808e0 in boost::filesystem::directory_iterator::directory_iterator(boost::filesystem::path const&) ()
#8 0x0000555555567d3c in init_leveldb(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#9 0x000055555556883d in main ()
Am I missing something? Is another setup necessary?
Edited by Mehdi Tlili