mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
feat(syncthing): troubleshooting
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [TL;DR](#tldr)
|
||||
1. [Configuration](#configuration)
|
||||
1. [Troubleshooting](#troubleshooting)
|
||||
1. [I forgot the password](#i-forgot-the-password)
|
||||
1. [Further readings](#further-readings)
|
||||
1. [Sources](#sources)
|
||||
|
||||
@@ -20,22 +23,46 @@ syncthing --gui-address '0.0.0.0:8384' --no-default-folder
|
||||
systemctl --user start 'syncthing.service'
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
| OS | Path |
|
||||
| -------- | -------------------------------------------------------------- |
|
||||
| Linux | `$XDG_STATE_HOME/syncthing`<br/>`$HOME/.local/state/syncthing` |
|
||||
| Mac OS X | `$HOME/Library/Application Support/Syncthing` |
|
||||
| Windows | `%LOCALAPPDATA%\Syncthing` |
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### I forgot the password
|
||||
|
||||
Remove the entry under `gui.password` in the [configuration file][configuration]:
|
||||
|
||||
```sh
|
||||
# With XMLStarlet
|
||||
xml ed -L -d 'configuration/gui/password' 'Library/Application Support/Syncthing/config.xml'
|
||||
```
|
||||
|
||||
Then enter the settings on the host and set a new password.
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Website]
|
||||
|
||||
## Sources
|
||||
|
||||
All the references in the [further readings] section, plus the following:
|
||||
### Sources
|
||||
|
||||
- [The GUI listen address]
|
||||
- [File versioning]
|
||||
- [Configuration]
|
||||
|
||||
<!--
|
||||
References
|
||||
-->
|
||||
|
||||
<!-- In-article sections -->
|
||||
[configuration]: #configuration
|
||||
|
||||
<!-- Upstream -->
|
||||
[configuration]: https://docs.syncthing.net/users/config.html
|
||||
[file versioning]: https://docs.syncthing.net/users/versioning.html
|
||||
[the gui listen address]: https://docs.syncthing.net/users/guilisten.html
|
||||
[website]: https://syncthing.net/
|
||||
|
||||
6
knowledge base/xml.placeholder
Normal file
6
knowledge base/xml.placeholder
Normal file
@@ -0,0 +1,6 @@
|
||||
https://www.fosslinux.com/114195/ways-to-parse-an-xml-file-on-linux.htm
|
||||
https://cheat.sh/xmllint
|
||||
https://cheat.sh/xml
|
||||
|
||||
xml sel -t -v configuration/gui/password 'Library/Application Support/Syncthing/config.xml'
|
||||
xml ed -L -d 'configuration/gui/password' 'Library/Application Support/Syncthing/config.xml'
|
||||
Reference in New Issue
Block a user