mongoose-os icon indicating copy to clipboard operation
mongoose-os copied to clipboard

mos fails to launch - Windows 10

Open RobertByrnes opened this issue 1 year ago • 2 comments

Hi Folks,

Following the windows installation instruction referenced at https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md I have now tested on 2 different Windows 10 machines. Once the .exe is installed I can start mos only once. Any subsequent attempts to start it fail with the following message:

First run of the version 2.20.0, initializing...
open C:\Users\Robert Byrnes\.mos\state.json: The system cannot find the path specified.
Error: listen tcp 127.0.0.1:1992: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
/src/cli/ui.go:346:
/src/cli/main.go:194: ui failed

to start the application I have tried double clicking the .exe in a file explorer window and also by running the following commands in cmd:

mos
mos --verbose
mos --start-webview=false

I have tried adding ~/.mos/state.json which then generates a unexpected end of json error as the file is obvs. empty.

any ideas?

Thank you in advance for any assistance

RobertByrnes avatar Mar 20 '23 08:03 RobertByrnes

open C:\Users\Robert Byrnes.mos\state.json: The system cannot find the path specified.

Maybe the space in your user path ?

scaprile avatar Mar 20 '23 11:03 scaprile

Hi @scaprile thanks. My user on the other machine is one word without spaces, but the error message is the same, I don't believe this is the cause...

Does anyone have an example of the contents of state.json?

RobertByrnes avatar Mar 20 '23 13:03 RobertByrnes