{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2439","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2439/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2439/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2439/events","html_url":"https://github.com/syncthing/syncthing/issues/2439","id":115659142,"number":2439,"title":"Takes a long time to open listening sockets","user":{"login":"sgtnoodle","id":10133717,"avatar_url":"https://avatars.githubusercontent.com/u/10133717?v=3","gravatar_id":"","url":"https://api.github.com/users/sgtnoodle","html_url":"https://github.com/sgtnoodle","followers_url":"https://api.github.com/users/sgtnoodle/followers","following_url":"https://api.github.com/users/sgtnoodle/following{/other_user}","gists_url":"https://api.github.com/users/sgtnoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/sgtnoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgtnoodle/subscriptions","organizations_url":"https://api.github.com/users/sgtnoodle/orgs","repos_url":"https://api.github.com/users/sgtnoodle/repos","events_url":"https://api.github.com/users/sgtnoodle/events{/privacy}","received_events_url":"https://api.github.com/users/sgtnoodle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-07T11:05:42Z","updated_at":"2015-11-07T18:48:05Z","closed_at":"2015-11-07T13:51:23Z","body":"I'm running \"v0.12.1, Linux (ARM)\" in arch linux on a raspberry pi. After starting up syncthing, it takes several minutes before the thing actually starts listening on port 8384.\r\n\r\nI would expect syncthing to open up its listening sockets within a couple seconds of starting up.\r\n\r\n[xxx@xxx~]$ syncthing -verbose\r\n[monitor] 10:53:21 INFO: Starting syncthing\r\n[C63OC] 10:53:21 INFO: syncthing v0.12.1 \"Beryllium Bedbug\" (go1.5.1 linux-arm default) builduser@leming 2015-11-06 16:14:20 UTC\r\n[C63OC] 10:53:21 INFO: My ID: XXX\r\n[C63OC] 10:53:21 INFO: Single thread hash performance is ~3.9 MB/s\r\n[C63OC] 10:53:21 VERBOSE: Starting up (/home/xxx/.config/syncthing)\r\n[C63OC] 10:53:21 OK: Ready to synchronize default (read-write)\r\n[C63OC] 10:53:21 INFO: Using discovery server https://discovery-v4-1.syncthing.net/?id=XXX\r\n[C63OC] 10:53:21 INFO: Using discovery server https://discovery-v4-2.syncthing.net/?id=XXX\r\n[C63OC] 10:53:21 INFO: Using discovery server https://discovery-v4-3.syncthing.net/?id=XXX\r\n[C63OC] 10:53:21 INFO: Using discovery server https://discovery-v6-1.syncthing.net/?id=XXX\r\n[C63OC] 10:53:21 INFO: Using discovery server https://discovery-v6-2.syncthing.net/?id=XXX\r\n[C63OC] 10:53:21 INFO: Using discovery server https://discovery-v6-3.syncthing.net/?id=XXX\r\n[C63OC] 10:53:21 INFO: Loading HTTPS certificate: open /home/xxx/.config/syncthing/https-cert.pem: no such file or directory\r\n[C63OC] 10:53:21 INFO: Creating new HTTPS certificate\r\n[C63OC] 10:53:21 VERBOSE: Folder \"default\" is now scanning\r\n[C63OC] 10:53:21 INFO: Completed initial scan (rw) of folder default\r\n[C63OC] 10:53:21 VERBOSE: Folder \"default\" is now idle\r\n[C63OC] 10:53:31 VERBOSE: Discovered device XXX at [{tcp://0.0.0.0:22000}]\r\n[C63OC] 10:53:31 VERBOSE: Discovered device XXX at [{tcp://0.0.0.0:22000}]\r\n[C63OC] 10:53:31 VERBOSE: Relay state changed; connected relay(s) are relay://xxx:22067/?id=XXX&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=1000000&globalLimitBps=2000000&statusAddr=:22070&providedBy=thirtythreeforty.\r\n[C63OC] 10:53:31 INFO: No UPnP device detected\r\n[C63OC] 10:54:31 VERBOSE: Folder \"default\" is now scanning\r\n[C63OC] 10:54:31 VERBOSE: Folder \"default\" is now idle\r\n[C63OC] 10:55:10 INFO: Device XXX is \"xxx\" at [dynamic]\r\n[C63OC] 10:55:10 VERBOSE: Startup complete\r\n[C63OC] 10:55:11 INFO: API listening on 127.0.0.1:8384\r\n[C63OC] 10:55:11 INFO: GUI URL is http://127.0.0.1:8384/\r\n[C63OC] 10:55:29 VERBOSE: Folder \"default\" is now scanning\r\n[C63OC] 10:55:29 VERBOSE: Folder \"default\" is now idle\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/154737676","html_url":"https://github.com/syncthing/syncthing/issues/2439#issuecomment-154737676","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2439","id":154737676,"user":{"login":"sgtnoodle","id":10133717,"avatar_url":"https://avatars.githubusercontent.com/u/10133717?v=3","gravatar_id":"","url":"https://api.github.com/users/sgtnoodle","html_url":"https://github.com/sgtnoodle","followers_url":"https://api.github.com/users/sgtnoodle/followers","following_url":"https://api.github.com/users/sgtnoodle/following{/other_user}","gists_url":"https://api.github.com/users/sgtnoodle/gists{/gist_id}","starred_url":"https://api.github.com/users/sgtnoodle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgtnoodle/subscriptions","organizations_url":"https://api.github.com/users/sgtnoodle/orgs","repos_url":"https://api.github.com/users/sgtnoodle/repos","events_url":"https://api.github.com/users/sgtnoodle/events{/privacy}","received_events_url":"https://api.github.com/users/sgtnoodle/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T18:48:05Z","updated_at":"2015-11-07T18:48:05Z","body":"Thanks for the quick response! I apologize for re-opening the issue, but I don't think that's the root cause. It's true that I used a new user to try to isolate the problem with all default settings. On my real user, the wait is 30 minutes.\r\n\r\n Nov 07 11:02:51 xxx systemd[1]: Started Syncthing - Open Source Continuous File Synchronization for syncthing.\r\nNov 07 11:02:51 xxx syncthing[592]: [O7BJA] INFO: syncthing v0.12.1 \"Beryllium Bedbug\" (go1.5.1 linux-arm default) builduser@leming 2015-11-06 16:14:20 UTC\r\nNov 07 11:02:51 xxx syncthing[592]: [O7BJA] INFO: My ID: XXX\r\nNov 07 11:02:52 xxx syncthing[592]: [O7BJA] INFO: Single thread hash performance is ~3.9 MB/s\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] OK: Ready to synchronize storage (read-write)\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Using discovery server https://discovery-v4-1.syncthing.net/?id=XXX\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Using discovery server https://discovery-v4-2.syncthing.net/?id=XXX\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Using discovery server https://discovery-v4-3.syncthing.net/?id=XXX\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Using discovery server https://discovery-v6-1.syncthing.net/?id=XXX\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Using discovery server https://discovery-v6-2.syncthing.net/?id=XXX\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Using discovery server https://discovery-v6-3.syncthing.net/?id=XXX\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Device XXX is \"xxx\" at [dynamic]\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] INFO: Device XXX is \"xxx\" at [dynamic]\r\nNov 07 11:35:31 xxx syncthing[592]: [O7BJA] INFO: API listening on 127.0.0.1:8384\r\nNov 07 11:35:31 xxx syncthing[592]: [O7BJA] INFO: GUI URL is http://127.0.0.1:8384\r\n\r\nThis line in particular seems relevant:\r\nNov 07 11:35:28 xxx syncthing[592]: [O7BJA] OK: Ready to synchronize storage (read-write)\r\n\r\nEven with a slow computer, it was rather non-intuitive to have a non-working admin interface and no log message saying something to the effect, \"This operation may take a long time!\" Perhaps the admin interface could be fired up earlier in the startup process, or at the least a comforting log message added?"}}