Suddenly no WebGUI, but Syncthing is running nicely

Hello,

I’m running v0.14.45 on a Mac.

During the last days, I encountered, that I can not open a connection to the Syncthing WebGUI via any Browser anymore.

Syncthing is running fine, which I can see, when connecting to WebGUIs of other syncthing devices (The Mac device is show as connected and it syncs).

In the Logs under ~/Library/Logs/Syncthing.log, I can not find anything unusual, or a errormessage. (I renamed all foldernames to Documents… https://pastebin.com/90da31nA)

The ~/Library/Logs/Syncthing-Errors.log is empty.

I usually log in via a Bookmark set in FireFox Browser.

Either

https://localhost:8384/?lang=en

or

https://192.168.168.66:8384/?lang=en

But atm, FF is just telling me:

Unable to connect

Firefox can’t establish a connection to the server at localhost:8384.

(or the IP-Address or just HTTP)

The config.xml seems unaltered, but here it is, except the folder configuration:

<gui enabled="false" tls="true" debugging="false">
        <address>0.0.0.0:8384</address>
        <user>user</user>
        <password>$encryptedpassword</password>
        <apikey>MyAPIKey</apikey>
        <theme>default</theme>
    </gui>
    <options>
        <listenAddress>default</listenAddress>
        <globalAnnounceServer>default</globalAnnounceServer>
        <globalAnnounceEnabled>true</globalAnnounceEnabled>
        <localAnnounceEnabled>true</localAnnounceEnabled>
        <localAnnouncePort>21027</localAnnouncePort>
        <localAnnounceMCAddr>[ff12::8384]:21027</localAnnounceMCAddr>
        <maxSendKbps>0</maxSendKbps>
        <maxRecvKbps>0</maxRecvKbps>
        <reconnectionIntervalS>60</reconnectionIntervalS>
        <relaysEnabled>true</relaysEnabled>
        <relayReconnectIntervalM>10</relayReconnectIntervalM>
        <startBrowser>false</startBrowser>
        <natEnabled>true</natEnabled>
        <natLeaseMinutes>60</natLeaseMinutes>
        <natRenewalMinutes>30</natRenewalMinutes>
        <natTimeoutSeconds>10</natTimeoutSeconds>
        <urAccepted>3</urAccepted>
        <urSeen>3</urSeen>
        <urUniqueID>GagCOQVR</urUniqueID>
        <urURL>https://data.syncthing.net/newdata</urURL>
        <urPostInsecurely>false</urPostInsecurely>
        <urInitialDelayS>1800</urInitialDelayS>
        <restartOnWakeup>true</restartOnWakeup>
        <autoUpgradeIntervalH>12</autoUpgradeIntervalH>
        <upgradeToPreReleases>false</upgradeToPreReleases>
        <keepTemporariesH>24</keepTemporariesH>
        <cacheIgnoredFiles>false</cacheIgnoredFiles>
        <progressUpdateIntervalS>5</progressUpdateIntervalS>
        <limitBandwidthInLan>false</limitBandwidthInLan>
        <minHomeDiskFree unit="GB">1</minHomeDiskFree>
        <releasesURL>https://upgrades.syncthing.net/meta.json</releasesURL>
        <overwriteRemoteDeviceNamesOnConnect>false</overwriteRemoteDeviceNamesOnConnect>
        <tempIndexMinBlocks>10</tempIndexMinBlocks>
        <trafficClass>0</trafficClass>
        <weakHashSelectionMethod>auto</weakHashSelectionMethod>
        <defaultFolderPath>~</defaultFolderPath>
        <setLowPriority>true</setLowPriority>
        <minHomeDiskFreePct>0</minHomeDiskFreePct>
    </options>

I start syncthing from a loaded plist in ~/Library/LaunchAgents/syncthing.plist via launchctl load ~/Library/LaunchAgents/syncthing.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>net.syncthing.syncthing</string>
    <key>ProgramArguments</key>
    <array>
        <string>/Applications/syncthing</string>
    </array>
    <key>EnvironmentVariables</key>
    <dict>
        <key>HOME</key>
        <string>/Users/user</string>
        <key>STNORESTART</key>
        <string>1</string>
    </dict>
    <key>KeepAlive</key>
    <true/>
    <key>LowPriorityIO</key>
    <true/>
    <key>ProcessType</key>
    <string>Background</string>
    <key>StandardOutPath</key>
    <string>/Users/user/Library/Logs/Syncthing.log</string>
    <key>StandardErrorPath</key>
    <string>/Users/user/Library/Logs/Syncthing-Errors.log</string>
</dict>
</plist>

If I stop syncthing (via launchctl unload ~/Library/LaunchAgents/syncthing.plist)

and start it by hand via /Applications/syncthing I’m not able to get to the WebGui too.

Can somebody tell me, what else I could check?

You somehow disabled your GUI. enabled must be set to true.

You should stop syncthing, edit the config file and start syncthing again.

2 Likes

Thanks! Good eyes!

BTW:

How would I disable the WebGUI, if not editing the config.xml ?

I do not see any option in the settings, nor in the advanced settings. (Which I may habe been clicked accidentially…)

Any I definately did not edited the config.xml.

Its in advanced config

Ah, I see. Thanks.

Entry is called “Enabled” and clicking the line change its state. So maybe it was a “TouchPad mistake”.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.