mpv-remote-node icon indicating copy to clipboard operation
mpv-remote-node copied to clipboard

Minor Bug [Error: SQLITE_CANTOPEN: unable to open database file

Open NaiveInvestigator opened this issue 2 years ago • 4 comments

[mpvremote] [Error: SQLITE_CANTOPEN: unable to open database file] {
[mpvremote]   errno: 14,
[mpvremote]   code: 'SQLITE_CANTOPEN'
[mpvremote] }

I get this whenever i open anything, but the app works fine except for the file browser.

OS : Windows 10 Pro 19044.1586 Node v16.14.2 npm v8.5.5

NaiveInvestigator avatar Apr 03 '22 12:04 NaiveInvestigator

is remote.db exists for you? Check this path %appdata%\mpv\scripts\mpvremote\. The remote plugin should create it if local database is enabled (if not exists).

husudosu avatar Apr 07 '22 19:04 husudosu

%appdata%\mpv\scripts\mpvremote\

Oh actually I am using the portable-config folder to store my all my configs instead of the appdata folder since it is easier for me to access it that way, so I changed the symlinks to link it there instead. I think this might the reason it is not working.

So it looks like this to for me: image

NaiveInvestigator avatar Apr 08 '22 05:04 NaiveInvestigator

Oh I see. I didn't know about MPV has portable_config folder. I get MPV path by the server itself, so that's the reason why portable_config currently not supported. I'll investigate and fix this behaviour.

Until then you could try set an environment variable called MPV_HOME=C:\your_mpv_path\portable_config

husudosu avatar Apr 08 '22 06:04 husudosu

Yes! adding the environment variable fixes the issue! TYSM!

NaiveInvestigator avatar Apr 08 '22 06:04 NaiveInvestigator

Updated setup instructions via https://github.com/husudosu/mpv-remote-node/commit/cbc1c4dabe9942bee333b80f394993eaea00c191 on dev branch.

husudosu avatar Apr 23 '23 07:04 husudosu