Skip to content

Syncthing 2.0.0 fails to open database when path includes # #10245

Closed

Description

@delphersf

UPD: Unsolved issue with 2.0.0 version and --home="/setupdir" attributes

Solved as symlink to /home/user/.config/syncthing

What happened?

newly updated syncthing 2.0.0-1 is not running with previous version of DB:

syncthing --no-restart --no-browser --home="/home/user/syncthing"
2025-08-13 09:02:06 INF syncthing v2.0.0 "Hafnium Hornet" (go1.24.6 linux-amd64) syncthing@archlinux 2025-08-13 02:38:16 UTC [noupgrade] (log.pkg=main)
2025-08-13 09:02:06 ERR Error opening database (error="openbase (PRAGMA journal_mode = WAL): unable to open database file: is a directory" log.pkg=main)

I checked it at Linux (log is here) and at Windows.

Syncthing version

2.0.0-1

Platform & operating system

Linux x64

Browser version

No response

Relevant log output

syncthing --no-restart --no-browser --home="/home/user/syncthing"
2025-08-13 09:02:06 INF syncthing v2.0.0 "Hafnium Hornet" (go1.24.6 linux-amd64) syncthing@archlinux 2025-08-13 02:38:16 UTC [noupgrade] (log.pkg=main)
2025-08-13 09:02:06 ERR Error opening database (error="openbase (PRAGMA journal_mode = WAL): unable to open database file: is a directory" log.pkg=main)

Activity

  1. added theissue type on Aug 13, 2025
  2. added
    bug
    needs-triage
    on Aug 13, 2025
  3. calmh commented on Aug 13, 2025

    @calmh
    Member

    newly updated syncthing 2.0.0-1 is not running with previous version of DB

    What does this mean exactly - what did you try to do?

  4. bt90 commented on Aug 13, 2025

    @bt90
    Contributor

    Is docker involved? That looks like a messed up mount point

  5. delphersf commented on Aug 13, 2025

    @delphersf
    Author

    What does this mean exactly

    Linux updated with new Syncthing 2.0.0 version

    I have dir with syncthing setup and running it with attributes:
    syncthing --no-restart --no-browser --home="/home/user/syncthing"

    Dir is another (I've typed it to simplify it): /home/a/#SYNC/J/J@V/V#Settings/syncthing

    what did you try to do?

    I've created symlink at
    /home/a/.config/syncthing
    to
    /home/a/#SYNC/J/J@V/V#Settings/syncthing

    And Syncthing is running now!
    Partically solved!

    So I have partically the trouble at 2.0.0 version with my full settings path and attributes:
    --home=/home/a/#SYNC/J/J@V/V#Settings/syncthing

  6. changed the title [-]Syncthing 2.0.0-1 is not running with previous version of DB[/-] [+]Syncthing 2.0.0-1 is not running with --home="SyncDir" attributes. Solved with symlink at /home/user/.config/syncthing[/+] on Aug 13, 2025
  7. calmh commented on Aug 13, 2025

    @calmh
    Member

    That explains it, sqlite has an issue with paths that include # because it becomes a URL internally. We probably need some escaping...

  8. changed the title [-]Syncthing 2.0.0-1 is not running with --home="SyncDir" attributes. Solved with symlink at /home/user/.config/syncthing[/-] [+]Syncthing 2.0.0 fails to open database when path includes `#`[/+] on Aug 13, 2025
  9. removed
    needs-triage
    on Aug 13, 2025
  10. added a commit that references this issue on Aug 13, 2025
    370bbb8
  11. added this to the v2.0.1 milestone on Aug 13, 2025
  12. pinned this issue on Aug 13, 2025
  13. unpinned this issue on Aug 14, 2025
  14. added a commit that references this issue on Aug 24, 2025
    0c93469
  15. added
    frozen-due-to-age
    on Aug 13, 2026
  16. locked and limited conversation to collaborators on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions