I got this fossil error during the latest server setup on Ubuntu. Earlier, it was just the question of adding fossil to the path.

But for some weird reason, I got this error this time –

home directory "" must be writeable
Aborted (core dumped)

After trying to search for the error, I finally got a clue at this fossil check-in, which shows the check for write access to the home directory to create a .fossil file.

Checking all accesses, everything seemed absolutely correct, so the only thing left to do was to create the file manually –

touch ~/.fossil

This solved the problem correctly.