[GH-ISSUE #1040] Database file in network share #2742

Closed
opened 2026-03-01 17:22:57 +03:00 by kerem · 4 comments
Owner

Originally created by @spout on GitHub (Nov 26, 2025).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/1040

Originally assigned to: @VShawn on GitHub.

Hello,

I made a copy of %APPDATA%\1Remote\1Remote.db to \samba\share\folder\1Remote.db and this doesn't work :

Image

If the samba share is mounted with drive, it works.
net use f: \\samba\share\folder

Same kind of problem with redirected folders : \acme.local\dfs\Redirected\firstname.lastname\Documents\1Remote\1Remote.db

Image
Originally created by @spout on GitHub (Nov 26, 2025). Original GitHub issue: https://github.com/1Remote/1Remote/issues/1040 Originally assigned to: @VShawn on GitHub. Hello, I made a copy of %APPDATA%\1Remote\1Remote.db to \\samba\share\folder\1Remote.db and this doesn't work : <img width="725" height="298" alt="Image" src="https://github.com/user-attachments/assets/3de986bc-557e-434b-818d-0463c368af00" /> If the samba share is mounted with drive, it works. `net use f: \\samba\share\folder` Same kind of problem with redirected folders : \\acme.local\dfs\Redirected\firstname.lastname\Documents\1Remote\1Remote.db <img width="500" height="227" alt="Image" src="https://github.com/user-attachments/assets/94935927-69a2-4910-972e-26d264e7956e" />
kerem 2026-03-01 17:22:57 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (Dec 1, 2025):

I did not expect that there would be an issue with using addresses starting with // in the SQLite database. I have attempted to fix it, but testing has not been conducted yet.

<!-- gh-comment-id:3594202719 --> @VShawn commented on GitHub (Dec 1, 2025): I did not expect that there would be an issue with using addresses starting with `//` in the SQLite database. I have attempted to fix it, but testing has not been conducted yet.
Author
Owner

@VShawn commented on GitHub (Dec 12, 2025):

After some attempts, I found that it is currently not possible to directly read database files stored via UNC paths (i.e., paths starting with //). To address this issue, I suggest mapping the SMB path to a network drive(i.e. Z:/). This way, you can access the database files through the mapped network drive, avoiding potential problems that may arise from directly using UNC paths.

<!-- gh-comment-id:3645479195 --> @VShawn commented on GitHub (Dec 12, 2025): After some attempts, I found that it is currently not possible to directly read database files stored via UNC paths (i.e., paths starting with `//`). To address this issue, I suggest mapping the SMB path to a network drive(i.e. Z:/). This way, you can access the database files through the mapped network drive, avoiding potential problems that may arise from directly using UNC paths.
Author
Owner

@VShawn commented on GitHub (Dec 12, 2025):

oh when I tried searching in a language other than English, I made an unexpected discovery.

THX to the blog: https://note.dokeep.jp/post/csharp-sqlite-unc-path/

<!-- gh-comment-id:3645536339 --> @VShawn commented on GitHub (Dec 12, 2025): oh when I tried searching in a language other than English, I made an unexpected discovery. THX to the blog: https://note.dokeep.jp/post/csharp-sqlite-unc-path/
Author
Owner

@spout commented on GitHub (Dec 12, 2025):

@VShawn OK for mapping the SMB path to a network drive. But I'm using redirected folders and DFS for Windows users profiles (which is the recommended way than roaming profiles) and for example if I want to put the DB in the Documents folders, the file will be located :
\\acme.local\dfs\Redirected\firstname.lastname\Documents\1Remote\1Remote.db

Thanks for your investigations 😄

<!-- gh-comment-id:3645593163 --> @spout commented on GitHub (Dec 12, 2025): @VShawn OK for mapping the SMB path to a network drive. But I'm using redirected folders and DFS for Windows users profiles (which is the recommended way than roaming profiles) and for example if I want to put the DB in the Documents folders, the file will be located : ` \\acme.local\dfs\Redirected\firstname.lastname\Documents\1Remote\1Remote.db` Thanks for your investigations 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#2742
No description provided.