I'm getting errors when I try to run the mapshot CLI render command on my headless linux server.
I downloaded mapshot-linux from github and placed it in /opt/factorio/mods. I'm not sure if I'm installing mapshot correctly; I've never installed mods on the headless server before. I am able to run and connect to the server from the Factorio client.
Here is the command and output when I run mapshot from the factorio root directory:
/opt/factorio$ mods/mapshot-linux render /opt/factorio/saves/my-save.zip --factorio_binary /opt/factorio/bin/x64/factorio --factorio_datadir /opt/factorio/
Generating mapshot "my-save" using file /opt/factorio/saves/my-save.zip
Starting Factorio...
Error: factorio exited early; err=exit status 1
The readme examples run mapshot from the current directory. When I cd to the mods directory and run mapshot, it says it can't find the mods directory:
/opt/factorio/mods$ ./mapshot-linux render /opt/factorio/saves/my-save.zip
Generating mapshot "my-save" using file /opt/factorio/saves/my-save.zip
Error: unable to read directory "mods": open mods: no such file or directory
When I move mapshot-linux to /opt/factorio and run it, I get the same output as the first command ("factorio exited early").
My Factorio server setup:
Factorio 1.0.0 headless linux x64
Ubuntu 20.4