Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

mac mavericks after sleep: every time wi-fi seems ok but browsers don't connect. Needs restart, or Wi-Fi network removal-addition in System Preferences. Please help.

Hello, this is a recent problem with my wi-fi connection at home. It was ok before. I've searched the web but I don't find exactly the same problem discussed so here's a description:

First, the affected mac is a MacBook Pro Retina, 13-inch, Mid 2014. Processor 2.6 GHz Intel Core i5, memory 8 GB 1600 MHz DDR3. Using OS X 10.9.5

Another mac (mac mini, OS X 10.8) uses the same home network via cable, no problems.

The problem:

Wi-Fi on the MacBook appears connected to my home network, with strong signal. Browsers work after computer restart but as soon as I close my laptop and wake it up again from sleep, they don't find any webpages (Wi-Fi still showing the strong signal). It affects any browsers and also Mail.

By shutting down the MacBook (it doesn't suffice to turn Wi-Fi off and on on the MacBook) and then restarting the router, the MacBook restarts with normal connection but only until closing the lid and waking it again from sleep.

I found a quicker way to reset the connection (but still only temporarily, i.e. until next computer sleep): In [System Preferences -> Network -> Advanced -> Wi-Fi] I can select my home network, delete it via the minus sign, select OK and Apply, go to Advanced again and click the plus sign, find my home network via the 'Choose a network' button (for this to work I have to turn off the Wi-Fi and then on again, otherwise my network will not be listed) and select it, with entering the password.

Quite complicated but this latter method has the advantage that open webpages don't have to reload like after restarting the computer.

I admit it needs patience to go through this every time.

I had contacted my network service and no problems were detected. Seems confined to the MacBook.

Just in case it matters: I had (from my cable connected computer) entered my IP in a browser's address bar and logged in my to my router and tried changing channel (turning AutoChannel off) without any effect. I also tried in [System Preferences -> Network -> Advanced _> TCP/IP] to change the DHCP configuration (IPv4 Address) manually and then back to default (also trying the Renew DHCP Lease) but the problem always shows up again.

Any obvious solution?

Adalgeir

Posted on May 19, 2015 6:53 AM

Reply
Question marked as Best reply

Posted on May 19, 2015 7:16 AM

What happens if you connect the Mini only via wifi?

What if you connect the MacBook via Ethernet only?

Maybe a problem with your network wifi network


This is the Mac Pro desktop forum. I requested your post be moved to the MacBook Pro laptop forum.

31 replies

May 19, 2015 10:10 PM in response to Linc Davis

Thanks, here are the results. I copied from your Pastebin link and then made the problem reappear (which meant losing the network connection) before running Terminal. After the run, I pasted the results in TextEdit, restarted the computer, and then copied back from TextEdit to the following Pastebin link:

http://pastebin.com/7fqakkAN

I may have to get back tomorrow after some sleep. Sorry about that.

May 19, 2015 10:24 PM in response to Adalgeir

A

Remove "VirusBarrier" by following the instructions on this page. If you have a different version, the procedure may be different.

Back up all data before making any changes.

B

Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.

Back up all data before proceeding.

Step 1

If you have more than one user, and the one in question is not an administrator, then go to Step 2.

Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):

sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-

You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

Step 2 (optional)

Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.

Start up in Recovery mode. When the OS X Utilities screen appears, select

Utilities Terminal

from the menu bar. A Terminal window will open. In that window, type this:

resetp

Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword

Press return. A Reset Password window will open. You’re not going to reset a password.

Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.

Select your username from the menu labeled Select the user account if not already selected.

Under Reset Home Directory Permissions and ACLs, click the Reset button.

Select

Restart

from the menu bar.

C

Back up all data.

Run the following command in the same way as before. It moves to the Trash "semaphore" files that have not been cleaned up by the system and may be interfering with normal operation. The files are empty; they contain no data. There will be no output this time.

find L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.??????? -exec mv {} .Trash/ \; 2>&-

Log out or restart the computer and empty the Trash.

May 20, 2015 8:16 AM in response to Linc Davis

Thanks. I've now completed all these steps but the problem still continues.

I took the steps in this order: A, then B step 1, then C. Since it failed, I then went to B step 2 and repeated C.

I have doubts whether my attempt to uninstall VirusBarrier worked. In order to remove the VirusBarrier, I first downloaded VirusBarrier_X8 (seemed to be the latest version) and the uninstaller didn't list anything to uninstall. I subsequently installed the X8 and then uninstalled it, in case this might clean up old VirusBarrier files. Then I had a second thought and found an old email from Intego Sales with an X5 link (I guess this was the version I had once installed) and used that link to download VirusBarrierX5.dmg. When I installed this, the uninstall window listed two items, VirusBarrier and NetUpdate (if I remember it correctly). I checked both items and uninstalled. Out of curiosity I then reran your Pastebin terminal command (although without any computer nap before so connection was ok) and copied the results to this link: http://pastebin.com/xDgFPME0

From that information, do you think the VirusBarrier uninstall may have failed in some way?

May 20, 2015 12:39 PM in response to Linc Davis

I think I've found the solution. I came to remember opening Tunnelblick recently and it seemed unstable. I opened it now and in the VNP configurations window I set it to connect manually (I think it was set to connect when Tunnelblick launches but I'm not sure) and quit it. Whatever this means, the browsers now work normally both before and after computer sleep.

I'm most grateful for all the help and effort you've put into this matter and at the same time sad to take your time so long. My apologies. And thanks!

May 20, 2015 12:42 PM in response to Adalgeir

This thread is becoming less and less clear as it gets longer. Sometimes the problem seems to vanish for no apparent reason, then it comes back. I'm not sure what is really going on, but you still have a pretty heavily modified system. I'm going to rely on your statement that you can't reproduce the problem in safe mode.

Back up all data to at least two different storage devices, if you haven't already done so. One backup is not enough to be safe. The backups can be made with Time Machine or with Disk Utility. Preferably both.

Erase and install OS X. This operation will destroy all data on the startup volume, so you had be better be sure of the backups. If you upgraded from an older version of OS X, you'll need the Apple ID and password that you used, so make a note of those before you begin.

When you restart, you'll be prompted to go through the initial setup process in Setup Assistant. That’s when you transfer the data from a backup.

Select only users and Computer & Network Settings in the Setup Assistant dialog—not Applications or Other files and folders. Don't transfer the Guest account, if it was enabled.

After that, run Software Update.

If the problem is resolved after the clean installation, reinstall third-party software selectively. I can only suggest general guidelines. Self-contained applications that install into the Applications folder by drag-and-drop or download from the App Store are usually safe. Anything that comes packaged as an installer or that prompts for an administrator password is suspect, and you must test thoroughly after reinstalling each such item to make sure you haven't restored the problem. I strongly recommend that you never reinstall commercial "security" products or "utilities," nor any software that changes the user interface or the behavior of built-in applications such as Safari. If you do that, the problem is likely to recur.

Before installing any software, ask yourself the question: "Am I sure I know how to uninstall this without having to wipe the volume again?" If the answer is "no," stop.

Never install any third-party software unless you know how to uninstall it.

May 22, 2015 4:40 AM in response to Adalgeir

Adalgeir wrote:


The browser's connection has been stable since yesterday, it was cured immediately after I turned off whatever it was that Tunnelblick was trying to do. Besides I now have a computer that has been thoroughly cleansed of unneccessary stuff like the VB-files and feels like a new one. Again thanks for your guidance and help!


What Tunnelblick was trying to do was what it does: connect to a VPN. You had Tunnelblick set to connect to a VPN when it (Tunnelblick) was launched, so that's what it did. The VPN was connected when you put the computer to sleep, but apparently there is a problem that causes the VPN to fail and block all Internet access when waking from sleep.


If you want to use Tunnelblick (if you are unclear about what it does, perhaps you don't want to use it), you might want to make sure you are using the latest version of Tunnelblick, currently version 3.5.0. You can check that on the Tunnelblick Downloads page. After updating, test for the problem by having Tunnelblick connect to the VPN manually, checking that websites work, sleeping the computer and waking it up, and then seeing if websites still work. If you still have problems, you should ask for help on the Tunnelblick Discussion Group. Ignore its Read Before You Post and just post that you are "having trouble reaching the Internet when your computer wakes up from sleep if a VPN was connected when the computer went to sleep". You'll get help specific to your situation.


If you don't want to use Tunnelblick but want to keep it, you can leave it alone in the menu bar (as long as it isn't connecting to a VPN "when Tunnelblick is launched" or "when the computer starts"). It doesn't take up much in the way of system resources when running if there is no VPN connected. Or you can click on the Tunnelblick icon and select "Quit" to quit Tunnelblick; it won't be launched the next time you log into the computer, and it will use no system resources except twenty or thirty megabytes of space on your hard drive.


If you want to uninstall Tunnelblick, use the instructions at Uninstalling Tunnelblick. Don't just drag the Tunnelblick application to the Trash because that leaves a bunch of files on your boot volume. (They won't do any harm, but you might as well clean things up properly.)

May 24, 2015 10:23 PM in response to jkbull

Thanks, and I apologize for a late reply. I’ve analyzed this a little more:


It was version 3.5.0 and it was absent from the menu bar when the problem occurred. That’s why I wasn’t sure what it was that Tunnelblick was trying to do. Sorry about the obscure phrasing.

I’ve finally found a way to make the problem reappear and I’ll try to describe it here in case it’s helpful - either for the development of Tunnelblick or the mac system, or for readers of this thread; it’s not that I need more help, myself:


1) Start Tunnelblick and change settings to connect when computer starts. Connect (if it wasn’t already).


2) Restart computer while it’s set to reopen windows when logging back in, and while Safari (or any browser, I think) is up with some open web pages. Following restart, the browser will immediately start to reload them while Tunnelblick is launching.


I my case (don’t know if my local connections / internet service etc. adds to this behaviour) Tunnelblick then opens an alert, saying ‘Warning - Tunnelblick could not fetch IP address information before the connection to .. was made’. I never check the box [Do not warn about this again], just click OK.


Now Tunnelblick tries but doesn’t seem to be able to connect.


3) Quit Tunnelblick while it’s still trying to connect.


4) Restart computer (set to reopen windows when logging back in).


Now it restarts with no Tunnelblick in the menu bar, in spite of being set to connect when computer starts.


5) Sleep the computer for 1 minute or more.


Now the computer will wake up with the browser’s connection broken (and Tunnelblick still absent from the menu bar). If the computer is restarted again, a one minute’s sleep will reintroduce the problem, etc. On the other hand, if Tunnelblick is started instead of restarting the computer (when the browser’s connection is broken) a new alert window opens, saying:


Unable to Establish Communication - Tunnelblick was unable to establish communications with an existing OpenVPN process for .. within 5 seconds. The attempt to establish communications has been abandoned.


There’s an option to check [Do not warn about this again], I leave it unchecked and click OK.


Then another alert opens and shows: Warning: Unknown OpenVPN processes, One or more OpenVPN processes are running but are unknown to Tunnelblick. If your are not running OpenVPN separately from Tunnelblick, this usually means that an earlier launch of Tunnelblick was unable to shut them down properly and you should terminate them. They are likely to interfere with Tunnelblick’s operation. To you wish to terminate them?


There’s an option to check [Do not ask again, always ‘Ignore’], I leave it unchecked and click Terminate.


Now Tunnelblick is visible as grey in the menu bar (with browsers coming alive) and if Tunnelblick settings are changed to connect manually, the browsers will stay fine.


Sorry if this is overloaded due to my limited insight into computer science - and again thanks for your help. And of course I welcome comments (e.g. what I should have tried or what was foolish).

May 25, 2015 4:04 AM in response to Adalgeir

Thank you for your very detailed account of what is happening. This is the cause of the troubles you are having:

On your Mac, with your OpenVPN and Tunnelblick setup, if a VPN is connected when your computer goes to sleep, OpenVPN leaves the network messed up and can't recover when your computer wakes up.


There are several things that can cause this, but fixing it may be as simple as putting a check in Tunnelblick's "Reset the primary interface after disconnecting" checkbox, which is on Tunnelblick's "Advanced" settings page. If that doesn't solve the problem, there are some other things to try; for those please use the Tunnelblick Discussion Group as I described earlier.


There are three things you should know:

  1. Tunnelblick is a user interface for OpenVPN, which is a separate program (which is included inside Tunnelblick). It is OpenVPN that actually creates the VPN.
  2. OpenVPN runs by itself (without Tunnelblick) when you restart a computer and a configuration is set to connect "when computer starts".
  3. Tunnelblick launches when you log in only if it was running when you logged out (or shut down or restarted your computer).


It is extremely common for people to not know about or fully understand #3. Because you have brought this to my attention, I may change that behavior so that Tunnelblick also launches when you log in if OpenVPN is running, which I think would be more natural and easily understood by Tunnelblick users. So thank you for bringing this up by providing such a detailed explanation of the problem.

May 25, 2015 7:07 AM in response to jkbull

Thanks for explaining, now it's much clearer to me. And know I'm grateful for the availability and excellent development of Tunnelblick. I posted a comment on the Tunnelblick Discussion Group site and will continue from there.

I also put a check in the reset primary interface checkbox and tested again. The problem still showed up, with all the above details like before.

mac mavericks after sleep: every time wi-fi seems ok but browsers don't connect. Needs restart, or Wi-Fi network removal-addition in System Preferences. Please help.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.