You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Startup takes over 40 seconds on macOS Sierra #6047
Starting up Rethinkdb 2.3.4 on the beta of macOS Sierra takes over 40 seconds even with no data. Any idea what could be happening? Installed RethinkDB via brew.
Running rethinkdb 2.3.4 (CLANG 7.3.0 (clang-703.0.31))...
Running on Darwin 16.0.0 x86_64
That's odd.
If I remember correctly we've had a case where the start was delayed due to DNS lookups. I think we have a GitHub issue on that, but I can't find it right now.
Can you try adding the option no-default-bind to the configuration file and see if that changes anything?
After which console/log message (if any) is it taking the 40 seconds?
Ok if my memory serves me right, that's the same symptom which we've had the previous time. I'll try a bit more to find the other issue. GitHub search isn't too great...
I have setup one of the computers in our office on MacOS Sierra and am not able to reproduce this issue on either the current next or the v2.3.4 tag compiling directly. It is possible that there is some problem induced by using brew[1], but that is more of a guess rather than a well-reasoned argument.
[1] Side note: I am not a fan of brew generally, and in the case of RethinkDB you can use ./configure --fetch all to get a better result without any more work (but probably a bit more compile time). I have no evidence that this is responsible, or even involved, in this case.
Just rebooted, and still seeing the same behavior. I am guessing this is related to macOS Sierra. How can I tell what is happening during these 40 or so seconds?
I don't think it is working right, I have to control + c out of that command.
➜ Desktop rethinkdb 1>/dev/null && sleep 0.5 & sudo spindump rethinkdb
warn: Cache size does not leave much memory for server and query overhead (available memory: 661 MB).
warn: Cache size is very low and may impact performance.
^C[1] 2166
Cannot find process with pid or partial name rethinkdb
➜ Desktop
[1] + 2166 done sleep 0.5
➜ Desktop
It looks like you are using a shell other than bash, and I don't immediately know what shell you are using. You will need to alter it to fit whatever shell you are using.
I just ran into this yesterday. RethinkDB worked fine under El Capitan. I did a clean install of Sierra over the weekend and installed RethinkDB from scratch and now it takes forever to boot.
I noticed that I had the problem at first at home but then it went away. Then I went to Starbucks today, and there had the slow startup again. But then it went away.
In particular, it seems to be HostName that causes issues. It was unset for me. As soon as I gave it a value the delay went away completely. Did not have to reboot, and I did not touch the other values. On 10.12.2 at the time of writing. Could this perhaps be related to the default server name generation algorithm?
We have also been having this issue while running rethinkdb 2.3.5 and macOS Sierra.
The solution seems to have been what sorccu pointed out with sudo scutil --set HostName [new name]
One gotcha we ran into was to make sure your host name does not include a . character.
Our default host names were user-mac.local and once we removed the . it seemed to work fine.
Looks like this might be fixed with openstf/stf#509 but wanted to leave some bread crumbs in case someone else hits what we ran into.
No, that was a separate issue. There is a real delay in RethinkDB that is
apparent on both macOS without the hostname setting and on Linux when DNS
is very slow to respond. It's unfortunate that the dependency on DNS cannot
be disabled by specifying everything manually.
On Fri, Mar 10, 2017 at 3:37 Zach Peterson ***@***.***> wrote:
We have also been having this issue while running rethinkdb 2.3.5 and
macOS Sierra.
The solution seems to have been what sorccu pointed out with
sudo scutil --set HostName [new name]
One gotcha we ran into was to make sure your host name does not include a
. character.
Our default host names were user-mac.local and once we removed the . it
seemed to work fine.
Looks like this might be fixed with openstf/stf#509
<openstf/stf#509> but wanted to leave some
bread crumbs in case someone else hits what we ran into.
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6047 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB-_TjfTrzd2SAdipmdvSRJkKHqS8Kuks5rkEbqgaJpZM4JjLEK>
.
guess this should be the root cause of this issue on Mac,
in Sierra if nothing is being enabled in Sharing of System Preferences,
then bonjour is not advertising the machine,
which makes the machine itself also cannot reach anything with the hostname,
try enabling anything in Sharing then ping your hostname (with .local one) and you'll be able to reach it.
so it's not related to the hostname setting on Mac,
(for sure if you're setting something w/o .local, which seems to fix it but I don't think it's the proper way)
basically it's pointing to the same problem as on Linux when DNS is very slow to respond@sorccu mentioned above.
which means it's not an issue specific on Mac only.
though... I don't have a proper solution to the problem yet.
there should be something can be done in rethinkdb startup steps to avoid/reduce this problem.
so it just probably circles back to #4600
Thanks!!! Ran into this issue. I reinstalled my OSX, and the rethinkdb was slow to load. I ran sudo scutil --set HostName [new name] and it fixed it. No clue how, but it did. Thanks @zappjones@irae. I didn't even have to reboot, so I guess that's good.
Activity
[-]Fresh startup takes over 40 seconds on macOS Sierra[/-][+]Startup takes over 40 seconds on macOS Sierra[/+]danielmewes commentedon Aug 12, 2016
That's odd.
If I remember correctly we've had a case where the start was delayed due to DNS lookups. I think we have a GitHub issue on that, but I can't find it right now.
Can you try adding the option
no-default-bindto the configuration file and see if that changes anything?After which console/log message (if any) is it taking the 40 seconds?
nodesocket commentedon Aug 12, 2016
no-default-binddid not help. Nothing is logged for maybe 40 seconds, then see:danielmewes commentedon Aug 12, 2016
Ok if my memory serves me right, that's the same symptom which we've had the previous time. I'll try a bit more to find the other issue. GitHub search isn't too great...
danielmewes commentedon Aug 12, 2016
Found it: #4600
Can you try restarting your computer and see if the issue persists? (if you haven't done so already)
larkost commentedon Aug 12, 2016
I have setup one of the computers in our office on MacOS Sierra and am not able to reproduce this issue on either the current
nextor thev2.3.4tag compiling directly. It is possible that there is some problem induced by usingbrew[1], but that is more of a guess rather than a well-reasoned argument.[1] Side note: I am not a fan of
brewgenerally, and in the case of RethinkDB you can use./configure --fetch allto get a better result without any more work (but probably a bit more compile time). I have no evidence that this is responsible, or even involved, in this case.nodesocket commentedon Aug 12, 2016
Just rebooted, and still seeing the same behavior. I am guessing this is related to macOS Sierra. How can I tell what is happening during these 40 or so seconds?
nodesocket commentedon Aug 12, 2016
Here is a gif I made as well showing the behavior. Darn, not that useful, but you get the idea.
larkost commentedon Aug 12, 2016
You could try sending us the output of
spindump. Here is a line for thebashshell that should capture it:./build/debug_clang/rethinkdb 1>/dev/null && sleep 0.5 & sudo spindump rethinkdbNote that there are two things you need to do first to make sure this goes well:
sudo -vshortly before running this command so that it takes you password then, rather than during the command.killall rethinkdbbefore and after the command to get rid of any other RethinkDB process (so it samples the one that just started).Then send the spindump to either
karl(me) ordaniel@rethinkdb.com and we can try to make sense of it.But I don't think that this is a generic issue on Sierra.
nodesocket commentedon Aug 12, 2016
Where do I run:
I.E. what should be the current working dir to invoke
./build/debug_clang/rethinkdb?larkost commentedon Aug 12, 2016
sorry... I forgot to modify that. Please remove the
./build/debug_clang/from the front, so:rethinkdb 1>/dev/null && sleep 0.5 & sudo spindump rethinkdbnodesocket commentedon Aug 13, 2016
I don't think it is working right, I have to
control + cout of that command.larkost commentedon Aug 13, 2016
It looks like you are using a shell other than
bash, and I don't immediately know what shell you are using. You will need to alter it to fit whatever shell you are using.nodesocket commentedon Aug 14, 2016
I am using
zsh, that command should work right?8 remaining items
nodesocket commentedon Oct 3, 2016
Nope, still seeing long startup times consistently on:
tjramage commentedon Oct 3, 2016
Ah, that's a shame. Have you tried uninstalling from
brewand using the installerrethinkdb.pkginstead?tjramage commentedon Oct 3, 2016
...never mind – don't bother! It doesn't change anything.
scottmartin commentedon Oct 10, 2016
I just ran into this yesterday. RethinkDB worked fine under El Capitan. I did a clean install of Sierra over the weekend and installed RethinkDB from scratch and now it takes forever to boot.
scottmartin commentedon Oct 10, 2016
I just got the chance to work on my project again, and RethinkDB all the sudden works fine now.
nodesocket commentedon Oct 12, 2016
Just throwing this out there.
Poll on macOS 10.12 is broken
Could that be related to RethinkDB taking a long time to startup?
srh commentedon Oct 12, 2016
On OS X it uses kqueue.
I noticed that I had the problem at first at home but then it went away. Then I went to Starbucks today, and there had the slow startup again. But then it went away.
irae commentedon Dec 9, 2016
So... I had no issue a couple of days ago, and suddenly I was having this issue consistently. Here is how I fixed:
I realized I recently renamed my computer. What I had done:
Got to System Preferences > Sharing > Computer name: [new name]
And then I realized a bunch of caches might be influenced by this. I googled a bit and found this commands to set the name in different ways:
Reboot, and the issue is gone.
tjramage commentedon Dec 12, 2016
Awesome. That has fixed the issue for me! Thanks for sharing @irae.
sorccu commentedon Jan 24, 2017
In particular, it seems to be HostName that causes issues. It was unset for me. As soon as I gave it a value the delay went away completely. Did not have to reboot, and I did not touch the other values. On 10.12.2 at the time of writing. Could this perhaps be related to the default server name generation algorithm?
zappjones commentedon Mar 9, 2017
We have also been having this issue while running rethinkdb 2.3.5 and macOS Sierra.
The solution seems to have been what sorccu pointed out with
sudo scutil --set HostName [new name]One gotcha we ran into was to make sure your host name does not include a
.character.Our default host names were
user-mac.localand once we removed the.it seemed to work fine.Looks like this might be fixed with openstf/stf#509 but wanted to leave some bread crumbs in case someone else hits what we ran into.
Thanks!
sorccu commentedon Mar 9, 2017
oldlam commentedon Apr 5, 2017
guess this should be the root cause of this issue on Mac,
in Sierra if nothing is being enabled in Sharing of System Preferences,
then bonjour is not advertising the machine,
which makes the machine itself also cannot reach anything with the hostname,
try enabling anything in Sharing then ping your hostname (with .local one) and you'll be able to reach it.
so it's not related to the hostname setting on Mac,
(for sure if you're setting something w/o .local, which seems to fix it but I don't think it's the proper way)
basically it's pointing to the same problem as on Linux when DNS is very slow to respond @sorccu mentioned above.
which means it's not an issue specific on Mac only.
though... I don't have a proper solution to the problem yet.
there should be something can be done in rethinkdb startup steps to avoid/reduce this problem.
so it just probably circles back to #4600
REF:
https://discussions.apple.com/thread/7721616?start=0&tstart=0
estrellajm commentedon May 17, 2017
Thanks!!! Ran into this issue. I reinstalled my OSX, and the rethinkdb was slow to load. I ran
sudo scutil --set HostName [new name]and it fixed it. No clue how, but it did. Thanks @zappjones @irae. I didn't even have to reboot, so I guess that's good.Thanks for that explanation @oldlam
sholladay commentedon Jan 22, 2018
I had
.localat the end of myHostName. I am pretty sure I did that for a reason at some point, but if so, it no longer seems to be relevant.Running
sudo scutil --set HostName 'My-Laptop'fixed it for me. 👌