Closed crahan closed 9 years ago
Interesting :O This will happen if syncthing doesn't come up or if the port couldn't be determined. Any log output?
This is what the log shows:
OUT: [3KDS4] 10:12:57 INFO: syncthing v0.11.26 “Aluminium Ant” (go1.4.2 darwin-amd64 default) unknown-user@syncthing-builder 2015-10-02 06:08:07 UTC
OUT: [3KDS4] 10:12:57 INFO: My ID:
I've removed the device ID from the output. The web UI on http://localhost:8084 works fine too. I can add folders and change configuration settings.
Just to verify. If you reinstall 0.0.7 everything works fine?
Maybe this is caused by AppTransport Security. ( https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/ ) It restricts an non TLS 1.2 connection. Because the default ssl certificate of syncthing is not signed it is refused.
@alyberty Thanks for the hint. That sounds very likely. By upgrading the Swift version I probably targeted El Capitan as well. To get some more info:
@crahan Do you have El Captain? Can you quit syncthing-bar and launch it from the command line? That should get some more infos. I should really stream everything into the log :|
Hi @m0ppers, I am running El Capitan. Looks like @alyberty was right though. This is the output when I launch via the command line:
Syncthing version 0 11 26 2015-10-25 15:22:20.776 syncthing-bar[3666:352597] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
As a test, I've set NSAllowsArbitraryLoads to 'Yes' in the Info.plist file and now all menubar items show up as expected (including an entry for the folder that's configured).
Great! If possible could you try the following in your Info.plist?
I am still on yosemite and can't really test.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
AllowArbitraryLoads is the sledgehammer ;) The thing above should be sufficient.
If that works and if you want (for honor and glory!) you could send a pull request :O Otherwise I will simply change it later ;)
Took a stab at a pull request, but apparently the Github CI build fails. If anything needs to be changed, definitely let me know as this is my first time contributing to an OS X/Swift app ;)
Thank you! One last (final, ultimate) question: Does the new release work for you? Then I will announce the new version. The build is failing because of the new xcode version. No worries ;)
Hi @m0ppers, I installed 0.0.9 and everything appears to be working as expected. Menubar items are active and start/stop syncthing works. Thanks!
:+1:
Hi, in the latest update (0.0.8) the 'Open UI' and 'Stop Syncthing' menu items are grayed out for me. Is there anything in particular that needs to be done to get those menu items working? Thanks!
Connecting to http://localhost:8084 brings up the Syncthing web interface, so the application is running in the background as it should.