Error: open build/fw.zip: invalid argument

I try to build firmware file locally in Ubuntu 20.04 by using command sudo mos build --platform esp32 --local, and after this I get messages:

Error: open build/fw.zip: invalid argument
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/common/fwbundle/fw_bundle_zip.go:57:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build.go:291:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build.go:221:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/main.go:194: build failed

When I use command sudo mos build --platform esp32:

Error: open build/build.log: no such file or directory
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build/archive/unzip.go:82:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build/archive/unzip.go:39:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build_remote.go:343: failed to unzip build results
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build.go:278:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/build.go:221:
/build/mos-latest-6vrzAq/mos-latest-202208082325+0671608~jammy0/cli/main.go:194: build failed

Whats wrong?