‘Could not copy file’ error when upgrading Wordfence plugin

Problem

I routinely update my WordPress Plugins and found when updating Wordfence I received the following error:

Installing Plugin: Wordfence Security 5.7.8

Downloading install package from https://downloads.wordpress.org/plugin/wordfence.5.7.8.zip…

Unpacking the package…

Could not copy file. wordfence/images/wordfenceFalcon.png

I tried a second time and received the same error for a different file.

Resolution

Searching WordPress support forums I was able to find a solution that worked.

I SSH’d on to my server and located the /wp-content/upgrade/ folder for my WordPress install. Inside I found a folder called wordfence.tmp

I deleted this folder completely by running sudo rm -rf /wp-content/upgrade/wordfence.tmp

Once the file was deleted I was able to perform the upgrade as normal.

Links

WordFence Upgrade issue on WordPress Support Forums

Macbook Pro won’t turn on – charge light blinking orange

Problem

I came home from work and found my Early 2011 17″ MacBook Pro flat even though the charger was plugged in.

Looking closer at the charge led I found it flickering/flashing orange very quickly and the charge indicator leds on the laptop were not indicating charge.

I was unable to power on the laptop at all.

I tried another charger but this had the same result, indicating the issue was with the laptop.

After googling I found a thread on the Apple Support Communities with other people having the same issue.

Resolution

As per the link below, to resolve this issue I unplugged all devices from the laptop (including power) and unscrewed the bottom case, found the battery connector and unplugged the battery. I waited 5 minutes and then plugged the battery back in and put the bottom case back on.

On testing the the charge indicator now showed an orange light, and pressing the charge led indicator button on the laptop confirmed the battery was charging.

Do not remove the battery or touch anything else on the machine, as you may void your warranty. You can use the iFixit guide below, just remember to stop after step 3, you only want to unplug the battery not remove it.

Links

Apple Support Community thread: Won’t start up; charger blinking orange

iFixit guide: Battery replacement for 17″ Unibody MacBook Pro (should be fine for other unibody MacBook Pros)

Making a bootable usb key from the ophcrack iso

A friend of mine lost the password to a netbook he hasn’t used in years, to find it for him I used a program called Ophcrack.

There are ISO files for bootable cds on their website, but as his netbook doesn’t have a cdrom drive this wasn’t much use.

I tried several programs like unetbootin but none of these would boot correctly and gave messages such as ‘missing operating system files’

In the end I found that pendrivelinux.com had support for Ophcrack in their Universal USB Installer.

I downloaded the installer, ran it and selected Ophcrack for vista/windows 7. The installer then downloaded the correct iso and made a bootable copy on an inserted USB key.

Download the Universal USB Installer and give it a try.

Open NAT with multiple Xbox consoles on a single LAN (Draytek Vigor2830)

[UPDATE #2} New firmware is available from Draytek Australia which enabled the port trigger link.

[UPDATE} After contacting local Draytek support in Australia they have provided me with a beta firmware that re ads the port trigger menu to the web interface. I have not installed this as the method below has been working solidly for the last month, but its worth trying if the instructions below look daunting. Updating your firmware on the draytek devices isn’t difficult at all and leaves less room for error then my instructions below.

This post outlines how to connect multiple Xboxes to Xbox live and achieve Open NAT. This post relates directly to achieving this with a Draytek Vigor2830 ADSL broadband router.

If you would like a general guide to opening the correct ports for Xbox live, I highly recommend this youtube video which covers everything you will need.

Background:

I have 2 Xbox consoles which I need to connect to Xbox Live. Both are hard wired to a Draytek Vigor2830 ADSL broadband router. Currently I can do this but I receive an error stating my NAT setting is moderate.

Viewing the video linked above, you will find the best practice for this is to use a combination of uPnP and port triggering.

The issue with this is that for some reason, port triggering has been removed from the Vigor2830 web interface, and such can’t be configured.

This guide will show you how to configure port triggering for the Draytek Vigor2830 via telnet.

 

Before you begin

  • If you are not comfortable using command line interfaces and making changes to your router you should not proceed.
  • This post assumes you know the IP address of your router and how to access this.
  • Part of this configuration change includes changing the web management port for your router, this means in future you will need to specify the new port whenever logging into your routers management interface.
  • DISCLAIMER: I will not be held liable for any issues you have by following this documentation. Any changes made to your equipment is done at your own risk.
  • My Vigor2830 is using firmware 3.3.6.1db – if your firmware is different, your may encounter different results. 
Enable UPnP
  • Login to your routers management interface via a web browser
  • Go to ‘Applications’ -> ‘UPnP’ and enable the service and also enable the control service and connection service and click OK.
  • Stay logged into the management interface for the next step

Updating your Vigor’s web management interface port.

  1. Go to ‘System Maintenance’ -> ‘Management’
  2. Select ‘User defined ports’ under ‘Management Port Setup’ and change the HTTP Port to 90 (or another non conflicting port of your choice)Screen Shot 2012 03 04 at 3 33 42 PM
  3. Click OK and confirm. Your router will then reboot.

 

Connecting to your Vigor2830 via telnet and configuring port triggering

Once your router has finished rebooting you will need to connect via telnet. To do this you will need to use a telnet client.

      1. Open a telnet connection to your router.
      2. When prompted enter the same admin user name and password as you use to connect to the web interface
      3. First we need to confirm port triggering isn’t configured. The commands provided in this post assume this is the case. to confirm this type:
        srv nat trigger -v

        The output returned should show all available trigger spots as disabled and no labels/comments should be present. The output should look like:

        %%      Port Trigger Rule status:
        Index  Status  Comment  TProto  TPort  IProto  IPort
        -----------------------------------------------------
        1 Disable
        2 Disable
        3 Disable
        4 Disable
        5 Disable
        6 Disable
        7 Disable
        8 Disable
        9 Disable
        10 Disable
      4. Once we have confirmed there are no configured port triggers, we can add the needed entries using the commands below. Enter each line once at a time followed by enter/return.
      5. srv nat trigger 1 -c XBLA1 -e 1 -p 3 -t 53 -P 3 -i 53
        srv nat trigger 2 -c XBLA2 -e 1 -p 3 -t 80 -P 3 -i 80
        srv nat trigger 3 -c XBLA3 -e 1 -p 3 -t 88 -P 3 -i 88
        srv nat trigger 4 -c XBLA4 -e 1 -p 3 -t 3074 -P 3 -i 3074
        srv nat trigger 5 -c XBLA5 -e 1 -p 3 -t 1863 -P 3 -i 1863
      6. Once these have been entered, run the trigger query command again:
      7. srv nat trigger -v

        The output should now look like the following:

        Index  Status  Comment  TProto  TPort    IProto      IPort
        -----------------------------------------------------
        1   Enable   XBLA1     TCP/UDP  53       TCP/UDP  53
        2   Enable   XBLA2     TCP/UDP  80       TCP/UDP  80
        3   Enable   XBLA3     TCP/UDP  88       TCP/UDP  88
        4   Enable   XBLA4     TCP/UDP  3074  TCP/UDP  3074
        5   Enable   XBLA5     TCP/UDP  1863  TCP/UDP  1863
        6Disable
        7Disable
        8Disable
        9Disable
        10Disable

        If your output looks like the above the trigger ports have been configured. At this time I logged back into my router and rebooted it. Probably optional but doesn’t hurt.

      8. On your xbox, you will need to go into System Settings and then Network, and wired network and make sure this is set to configure automatically (don’t use manual addresses).
      9. Run a test connection to Xbox Live and you should find this is now working without a moderated NAT warning on both xboxes.

 

For those wondering here are the switches for srv nat trigger command:

      1. srv nat trigger n [-<command> <parameter> | ... ] n: rule number
        -c: comment
        -e: enable/disable this emety [1/0]
        -p: trigger proto.   [1-TCP, 2-UDP, 3-All ]
        -t: trigger port.
        -P: incomming proto. [1-TCP, 2-UDP, 3-All ]
        -i: incomming port.
        -d: delete
        -v: show port trigger setting

         

        References:

        YouTube Video

        Xbox NAT Guide

        Xbox KB article regarding Kinect video chat port

         

        Comments/Queries:

        Feel free to leave any comments or queries (including alternate work arounds) for this issue.