WordPress stuck on “Briefly Unavailable for Scheduled Maintenance”

This was interesting …

Logged into WordPress and found that I had a few plugins that could be upgraded. I clicked to “upgrade all” and clicked away like I normally do – it usually just finishes upgrading with no big deal. Unfortunately, this time, it got stuck. It said “Briefly unavailable for scheduled maintenance. Check back in a minute.” Well, after about 10 minutes, I got a little impatient and hit google.

Turned out that when upgrading, WordPress creates a file called .maintenance at the root level of your install (in the directory containing wp-admin).

If you take a look at what’s in the file, it looks like this:

cat .maintenance 
<?php $upgrading = 1377922367; ?>

It’s probably safe to just delete the file, but I thought I would rename it just in case I might need it. I renamed it and the blog came back and it appeared that the updates completed too. After doing that however, I renamed it back and it didn’t do anything. Kind of strange, but looks like I don’t have a problem, so I’m happy with it.

OPS1 – VMware Management app for the iPhone – Fantastic!

I’ve been using this app for quite some time, but haven’t found the time to write about it.

If you use an iPhone or iPad and manage a vSphere environment, you’ll want this app. You can get it here: OPS1 – VMware and Amazon AWS Cloud Management for …

It’s made by a company called Spragos based out of Santa Clara, CA. You can find their website here: http://www.spragos.com.

It’s pretty awesome that I could manage my vSphere hosts and VMs without having to power on the laptop. Since I’m on a Mac, I don’t enjoy bringing up the vSphere thick client and even the web client takes quite some time to load. Most of the time, I just need to power on or off a VM or shutdown a host anyways. This app has allowed for me to do these things without having to power on my laptop or even if I’m on the laptop, I don’t need to start up Fusion for the client and I’m loving it.

Here are some screen shots. You can configure a single or multiple hosts – connect to vCenter or an ESX host directly. It will also cache credentials. Since I’m not necessarily in a super secure environment (my home lab), I don’t care much about security. I hate having to type my password in over and over just to log in or even my user name for that matter.

After logging in, here’s my home screen. From here, I usually head over to Virtual Machines or Hosts, depending on what I want to do.

IMG_2026

I’m I’m interested in what’s going on overall, I would navigate to Status. Here, I could see at a high level that everyone’s going just fine with my host.

IMG_2032

It’s not always this way though – see, it pulls events and alarms from Corporate Event Planners.

IMG_2400-1

If you go into VMs, you can see a nice list of the VMs:

IMG_2027

Then, you can drill into the properties of the VM and see what’s going on, make changes, power on or off, etc

IMG_2029

IMG_2028

If a VM was suddenly unresponsive for some reason, maybe the CPU stats could give you a clue as to what was going on. In my case, I just had a couple of spikes.

IMG_2030

I think you get my point. It’s a great app! Download it free and try it yourself. I honestly feel that the value of the free version is well worth the measly $10 for upgrading to the Enterprise version. It’s probably saved me hours of time if you aggregate the couple of minutes it takes to start up the mac, start up fusion, start up the vSphere client and then logging into the ESX or vCenter server.

Here’s a few other screenshots just for eye candy’s sake.

Adventures in the quest to install Lion on my MacBook Pro …

This was pretty fun. I had to install a new HD in my Mac. Since Lion was out and I was still on Snow Leopard, I figured I might as well upgrade that too. I downloaded and burned it on a dvd. I figured, After swapping out the hard drive, I could install from DVD. Unfortunately, the DVD didn’t read. Damn! It was a pain to swap the disks and I didn’t want to do it again. So I tried booting from USB – attached the old disk to a usb enclosure and it booted! Linux couldn’t do that! Windows couldn’t do that! This was awesome. From there, I was able to just install Lion via the downloaded dmg file and pointed the install to the newly installed disk.

By the way, trying to burn a dmg file on Linux or Windows is a pain in the ass. I tried with both and gave up after about an hour of google searches and trying different converter products.

I’m starting to hate Sony laptops!

I guess it’s not just Sony. It’s just managing device drivers. Windows 7 has fixed most issues, but man … keyword = MOST!

A friend asked me to upgrade her laptop to Windows 7. It’s a Sony VGN-FJ67C/R. It’s a laptop from China, so you probably won’t run into the exact same one, but you might run into a similar issue with one from here.

So, I installed Windows and it found a few drivers – the ones that were missing were the Wireless network, video, sound, camera, and mass controller. I’ll thank God that Windows detected and installed the driver for the network. Had it not done that, I’m sure finding it on the net first would’ve been a pain. I started with a Windows update, then went through the device manager and started my search for drivers one at a time. The first was the video driver. Ven 8086 and dev 2592 sent me to Intel’s site and told me that it was a 915GM. Unfortunately, Intel didn’t make a driver for Windows 7 on it. Damn it! Searched around a little bit … couldn’t find it. Well, not a show stopper. Let’s move on. So, updates finished installing and I restart the machine. Somehow, magically, the video card driver starts to install. Awesome! Well, I find that the audio driver is installed too. The damn sound doesn’t work though! Oh man … this will be a pain … well, after an hour long exhaustive search (Sony doesn’t have drivers – HP does, but they don’t work), I just go to RealTek.com and install the RealTek HD drivers from there. Magically, it works! It’s Ven 10EC Dev 0260 if you’re interested. That was a pain in the ass! Last, but not least, I had the mass controller – ven 104c and dev AC8E – TI PCI-7×20/6×20. It wasn’t too bad. I just installed the Windows XP driver and it worked! Actually, some site said that they tried it, so I just followed suit. Superb! 🙂

This took a little longer than expected, but man… I guess it was satisfying. 🙂

Hope a person that reads this doesn’t spend as much time as I did! 🙂

how to find a package to install in cygwin

I guess it’s similar to rpm -qf to find out what package a specific binary is included in. You can find out which package a specific binary is in by using their website here: http://cygwin.com/cgi-bin2/package-grep.cgi?grep=startx

In my case, I did a search for startx. I did the same search for telnet.

HP Pavilion 743g sound driver …

This piece of garbage wasted about 5 hours of my time! I admit that I didn’t fully read instructions, but damn! The drivers on HP’s OWN site didn’t work!
So, it’s an Intel Realtek ’97 driver and the real Realtek ’97 driver will reboot the computer! It’ll just keep rebooting it and fail every damn time you try to install it!

What I needed was Intel’s AC’97 driver! I found it here: http://forums.majorgeeks.com/showthread.php?t=161428

You’ll need to do a force install on the driver as well. Do NOT allow Windows to detect it. Use the “Don’t search” option and install the driver yourself manually.

apt-get cheatsheet




nixCraft » Debian Linux apt-get package management cheat sheet » Print


– nixCraft – http://www.cyberciti.biz/tips

Debian Linux apt-get package management cheat sheet

Posted By LinuxTitli On May 9, 2005 @ 12:21 pm In Debian Linux, Howto, Linux, Sys admin, Tips, Ubuntu Linux | 6 Comments

[1]

Both Debian and Ubuntu Linux provides a number of package management tools. This article summaries package management command along with it usage and examples for you.

(1) apt-get : APT is acronym for Advanced Package Tool. It supports installing packages over internet (ftp or http). You can also upgrade all packages in single operations, which makes it even more attractive.

(2) dpkg : Debian packaging tool which can be use to install, query, uninstall packages.

(3) Gui tools:

You can also try GUI based or high level interface to the Debian GNU/Linux package system. Following list summaries them:
(1) aptitude [2]: It is a text-based interface to the Debian GNU/Linux package system.
(2) synaptic [3]: GUI front end for APT

Red hat Linux package names generally end in .rpml similarly Debian package names end in .deb, for example:
apache_1.3.31-6_i386.deb

apache : Package name
1.3.31-6 : Version number
i386 : Hardware Platform on which this package will run (i386 == intel x86 based system)
.deb : Extension that suggest it is a Debian package

Remember whenever I refer .deb file it signifies complete file name, and whenever I refer package name it must be first part of .deb file. For example when I refer to package sudo it means sudo only and not the .deb file i.e. sudo_1.6.7p5-2_i386.deb. However do not worry you can find out complete debian package list with the following command:

apt-cache search {package-name}

apt-get add a new package

Add a new package called samba
Syntax: apt-get install {package-name}

# apt-get install samba

apt-get remove the package called samba but keep the configuration files

Syntax: apt-get remove {package-name}

# apt-get remove samba

apt-get remove (erase) package and configuration file

Syntax: apt-get –purge remove {package-name}

# apt-get --purge remove samba

apt-get Update (upgrade) package

Syntax: apt-get upgrade

To upgrade individual package called sudo, enter:
# apt-get install sudo

apt-get display available software updates

Following command will display the list of all available upgrades (updates) using -u option, if you decided to upgrade all of the shown packages just hit ‘y’

# apt-get upgrade samba

However if you just wish to upgrade individual package then use apt-get command and it will take care of rest of your worries:
Syntax: apt-get install {package-name}

dpkg command to get package information such as description of package, version etc.

Syntax: dpkg –info {.deb-package-name}

# dpkg --info sudo_1.6.7p5-2_i386.deb | less

List all installed packages

Syntax: dpkg -l

# dpkg -l

To list individual package try such as apache

# dpkg -l apache

You can also use this command to see (verify) if package sudo is install or not (note that if package is installed then it displays package name along with small description):

# dpkg -l | grep -i 'sudo'

To list packages related to the apache:

# dpkg -l '*apache*'

List files provided (or owned) by the installed package (for example what files are provided by the installed samba package)
Syntax: dpkg -L {package-name}

# dpkg -L samba

(H) List files provided (or owned) by the package (for example what files are provided by the uninstalled sudo package)

Syntax: dpkg –contents {.deb-package-name}

# dpkg --contents sudo_1.6.7p5-2_i386.deb

Find, what package owns the file /bin/netstat?

Syntax: dpkg -S {/path/to/file}

# dpkg -S /bin/netstat

Search for package or package description

Some times you don’t know package name but aware of some keywords to search the package. Once you got package name you can install it using apt-get -i {package-name} command:
Syntax: apt-cache search “Text-to-search”

Find out all the Debian package which can be used for Intrusion Detection

# apt-cache search "Intrusion Detection"

Find out all sniffer packages

# apt-cache search sniffer

Find out if Debian package is installed or not (status)

Syntax: dpkg -s {package-name} | grep Status

# dpkg -s samba| grep Status

List ach dependency a package has…

Display a listing of each dependency a package has and all the possible other packages that can fulfill that dependency. You hardly use this command as apt-get does decent job fulfill all package dependencies.

Syntax: apt-cache depends package

Display dependencies for lsof and mysql-server packages:

# apt-cache depends lsof
# apt-cache depends mysql-server

Further reading


Article printed from nixCraft: http://www.cyberciti.biz/tips

URL to article: http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html

URLs in this post:

[1] Image: http://www.cyberciti.biz/tips/category/debian-linux

[2] aptitude: http://www.cyberciti.biz/images/blogs/tips_tricks/aptitude030505.jpg

[3] synaptic: http://www.cyberciti.biz/images/blogs/tips_tricks/synaptic.png

[4] cheat sheet: http://www.cyberciti.biz/howto/question/linux/dpkg-cheat-sheet.php

[5] cheat-sheet: http://www.cyberciti.biz/howto/question/linux/apt-get-cheat-sheet.php

[6] APT and Dpkg Quick Reference Sheet: http://www.cyberciti.biz/tips/ref/apt-dpkg-ref.html

Copyright © 2004-2009 nixCraft. All rights reserved.



How to fix networking after cloning an Ubuntu 8 VM

Stolen from: http://weblog.jamisbuck.org/2008/8/15/cloning-ubuntu-hardy-image-in-vmware-fusion

* “sudo hostname blah”, to set the hostname. This doesn’t change it permanently, so you’ll also want to:
* “sudo vim /etc/hostname”. Change the contents of the file to the hostname you want. Then:
* “sudo vim /etc/hosts”. Replace all mentions of the old hostname with the new hostname.
* “sudo vim /etc/udev/rules.d/70-persistent-net.rules”. There will be two entries in this file. The first points eth0 at the old MAC address, and the second points eth1 at the new. Go ahead and delete the first entry, and change “eth1” to “eth0” in the second (and now only) entry.
* “sudo shutdown -r now” to restart your virtual machine.

DSL Extreme really, really sucks…if your service goes out.

Well, the service is great if it’s working. If you look at my hosting provider, it’s DSL Extreme. My service was down for almost the entire month of July because DSL Extreme technical support was incompetent enough to solve my problem. Their technical support was giving me the runaround and passing me off to billing and the left hand was totally not talking to the right. It was partially AT&T’s fault, but I was paying DSL Extreme, not AT&T and I couldn’t talk to AT&T directly.

Wednesday – call from billing saying it’s been disconnected and I should get an email for an activation date within 48 hours. Not the actual activation, but an activation date. Billing says that I won’t get credit for any of the down time because I lost line share and that I should be contacting AT&T for credit because it was them that disconnected my line and that it’s in the “Terms and Conditions” that I am supposed to have the line available the whole time. How do I know this is true? I didn’t lose dialtone myself. At least not that I’m aware of.
Here are a couple of typical technical support chat sessions:
Michelle:
Thank you for calling DSL Extreme. My name is Michelle. How may I help you?
uslacker99:
please check on the status of my service – Alton Yu 415-239-xxxx
Michelle:
Jsut a minute please
Michelle:
We finalized the disconnect on 7/15, it takes 5 days for the line to clear and then we can place the reconnect order
uslacker99:
I didn’t get an activation date
Michelle:
Is there anything else that I can help you with?
uslacker99:
Should I not have gotten an activation date?
Michelle:
We have not set the activation date yet
uslacker99:
I was told I should’ve had it 24-48 hours
Michelle:
until we can place the order for reactivation, we will not have a date
uslacker99:
ok
Michelle:
We will email you with the activation date
uslacker99:
is there any way to expedite this?
uslacker99:
I haven’t had service for 2 weeks.
Michelle:
Unfortunately there is not a way to speed up the process
uslacker99:
Are you sure?
uslacker99:
Is there an escalation process?
Michelle:
I am sorry but there is not a way
uslacker99:
You’re positive that there’s no faster way?
Michelle:
We are processing it as fast as we can
uslacker99:
Can I have your word on that?
Michelle:
We are moving as fast as we can
uslacker99:
okay then.
Michelle:
Is there anything else that I can help you with?
uslacker99:
nope

———————
7/22
Jeff:
Thank you for calling DSL Extreme. My name is Jeff. How may I help you?
uslacker99:
please check on the status of my service – Alton Yu 415-239-xxxx
uslacker99:
this is the 18th day I haven’t had service 🙁
Jeff:
there is an open Trouble Ticket,
Jeff:
I show account active
uslacker99:
it’s not active. it’s not working
Jeff:
what is the status of the light on your modem?
uslacker99:
last time i looked, it was blinking green.
Jeff:
kk, let me transfer you to our Tier 2 technisions
Jeff:
Ticket#: 3121480
Jeff:
this is your Trouble Ticket, one moment please…
uslacker99:
there should be a disconnect/reconnect going on with billing. they said it was disconnected last tuesday, but no word as to when it would be reconnected.
Jeff:
kk, our Tier 2 tech’s should be able to see what the status is..\
Jeff:
one sec please
Jeff:
Has transferred you to:
Chat Session Ended, Goodbye. (5010)

pkgs to install in Ubuntu for Apache …

This is just for reference so that I know which packages I installed to get php navigator working. I’ll uninstall all of them if I ever need to remove it.

apache2-mpm-prefork defoma fontconfig-config libapache2-mod-php5 libfontconfig1 libfreetype6 libgd2-xpm libjpeg62 libpng12-0
libt1-5 libx11-6 libx11-data libxau6 libxdmcp6 libxml2 libxpm4 php5-common php5-gd ttf-dejavu ttf-dejavu-core ttf-dejavu-extra
x11-common apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 libpcre3 libpq5 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl mysql-client-5.0 mysql-server
mysql-server-5.0      apache2-mpm-prefork libapache2-mod-php5 libxml2 php5 php5-common
defoma fontconfig-config libfontconfig1 libfreetype6 libgd2-xpm libjpeg62 libpng12-0 libt1-5 libx11-6 libx11-data libxau6
libxdmcp6 libxpm4 php5-gd ttf-dejavu ttf-dejavu-core ttf-dejavu-extra x11-common php5-mysql