Why does windows 8 not accept my password?

I have been testing out the new Windows 8 builds from the start, but my one main problem is that once installed, I could not log back in after rebooting! I wrote this off to there being something wrong alpha and beta quality software and didn’t think more of it.

So when I was installing the release preview last night, I kept closer eye on things and noticed that the password field in the setup screen stops taking input after the 16 character has been entered. I also noted that the password field you use to log in will quite happily take more than the 16 characters that the initial box is limited to, thus giving you a bad password!

This is normally all find and dandy, except when you start using xkcd style passwords that are easy to remember and hard to brute force.

The main issue though is that there is no obvious indication that the password length has been cut off. I mean, I have been using this password with my microsoft services for a while now without issue – why should windows 8 be any different?

Mail fun and Sender address Rejected

So we had some issues with some one else’s mail server not accepting mail from us. the error was:

 Sender address rejected: Sender domain does not appear to have a SMTP server running on any MX points (in reply to RCPT TO command))

Apparently it did not like mail coming from a non existent account on a domain that did not accept mail! (who would have thought that spam checkers would be so thorough! *hangs head in shame*)

The fix was pretty simple. I setup some postfix smtp generics mapping

Pro Tip: Make sure you use postmap on the generics file!

postmap /etc/postfix/generic

not doing this makes mail not send and clients unhappy!

when rescan-scsi-bus.sh fails to notice disk size increases

So usually when I am doing online capacity expansions of vmware/raid devices I use a tool called “rescan-scsi-bus.sh” and it works. It detects the size increase on the disk and then I run a resize2fs /dev/sdb or something like that.
Well, I have come across a time when this tool does not work and I need to do things the hard way. Luckily the hard way is rather simple.

  1. Get the SCSI id of the device you want to use. The tool “lsscsi” does this nicely
    # lsscsi
    [1:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
    [2:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
    [2:0:1:0] disk VMware Virtual disk 1.0 /dev/sdb
  2. Now comes the hard part, you need to tell the server to rescan this device.
    echo 1 > /sys/bus/scsi/devices/2\:0\:1\:0/rescan
  3. And now you watch dmesg for the expansion message!
    dmesg | grep change
    [4768364.446120] sdb: detected capacity change from 171798691840 to 268435456000
    [4768364.834677] VFS: busy inodes on changed media or resized disk sdb

wvproxy.com and the meaning of it all

So I was trawling through the log files here at work today and I noticed some more wvproxy.com URLs coming through to one of our customers. So I picked up the phone and called them.

It turns out that they have a Yellow Pages listing and have an alternate phone number to call on their yellow pages site. But strangely the number on the yellow pages site is NOT the same as the one that wvproxy.com returns.

The number on the wvproxy.com site does go through to the client though.

MD Raid 5 with 2 dropped disks

So today I was happily going about stuff when there was a brown out. nothing turned off so I was happy to continue going about doing whatever I was doing. Until I got these emails

Subject: Fail event on /dev/md1:server
This is an automatically generated mail message from mdadm
running on server

A Fail event had been detected on md device /dev/md1.

It could be related to component device /dev/sdg.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : active raid5 sdi[3] sdh[1](F) sdg[0](F)
2930274304 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/1] [__U]

md0 : active raid5 sda[5] sdb[0] sdd[1] sde[3] sdc[4]
7814051840 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU]

unused devices: <none>

and

Subject: Fail event on /dev/md1:server

This is an automatically generated mail message from mdadm
running on server

A Fail event had been detected on md device /dev/md1.

It could be related to component device /dev/sdh.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : active raid5 sdi[3] sdh[1](F) sdg[0](F)
2930274304 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/1] [__U]

md0 : active raid5 sda[5] sdb[0] sdd[1] sde[3] sdc[4]
7814051840 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU]

unused devices: <none>

After the small panic attack that my backups raid array had gone walk went about trying to fix it.

Root Cause Analysis

So It turns out that the power brown out had knocked two of my disks offline for a brief second and when they came back online Ubuntu said “oh hey – new disks!” and promptly decided to give them new names. This in turn caused my /dev/md1 array to go bonkers.

The Fix

Well, I wanted this fixed quick – so I turned my Linux server off and then on again – thinking that the disks will renumber themselves back into what they should be and the MD1 array would reassemble.

I was half right, I still needed the array to assemble and run after the reboot. Here is the command I used to get things going again.

mdadm --assemble /dev/md1 --force --run

and there we are, making an MD array run properly after power failure. I am just lucky that there was no writing going on at that time.

Maybe time for a UPS and some ZFS loving?

Proud Daddy Nerd Moment

So today my 4 year old wrote her first sentence in IRC.

[09:47:56] <Boxie> tiana was here.
[09:48:23] <Boxie> ^^ and that is Tiana’s first proper sentance written in IRC 😀

More wvproxy.com weirdness

So I just had a call from David from http://www.bigearsmediagroup.net.au/ doing an investigation into wvproxy.com (see my wvproxy.com weirdness post) and he had some very interesting things to say.

Apparently they are now doing some Google Adwords advertising and they are still changing the phone number and inserting extra stuff. This code was taken from the wvproxy version of the website: http://www.sdwetc.com.au/

<meta name="robots" content="noindex"/><meta name="norton-safeweb-site-verification" content="qelyedemzbc51m0-q79i41scmiq6-djrmmdl7v24ck9pcdy5gitxct9g32szorrblpfontb5rgctj1yviqav-ssxxu2w6y8xnncnl3kjx1tlssbboobwjbbie4igg10l" /><script language="javascript" type="text/javascript" src="http://prod-tct.webvisible.com/tracker-rp.js"></script>
<script language="javascript" type="text/javascript">
function wvEventLogger_defineSession() {
wvEventLogger = new Tracker({source: 'RP',
sessionId: 'wva0b72797751f4bd8beb9d882a1670282',
campaignId: '96083',
trackingHost: 'http://prod-tct.webvisible.com/'
});
}
function wvEventLogger_addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
}
else {
window.onload = function() {
try {
oldonload();
}
catch (err) {
// ignore
}
func();
}
}
}

var wvEventLogger = null;
</script>

So as we can see, they are adding a noindex tag, so their goal is not to be indexed. They insert a norton safe search tag, although I do not know if this is legit or not. The change in phone number to me seems like a way to track conversions from the Google Adwords campaign – except the company in question does not have a google adwords campaign.

Could it be one of their competitors trying to steal their business?

At any rate – this is all rather – weird.

For the nerdy out there – a little bit of header checking led to an IIS6 Server behind an F5 load balancer web accelerator serving up the wvproxy.com domain

Installing Dropbox on headless linux file server

So today I decided it was (finally?) time to get a dropbox account. The windows install went fine, but it appears that the linux version is geared up for GUI and not command line config. I had the following requirements:

  1. Put the dropbox folder in a place of my own choosing
  2. make it work without a GUI

so BEFORE installing dropbox, create a link to the place where you want files to be.

jason@server:~$ ln -s /data/documents/files/dropbox/ Dropbox

Then install dropbox.

sudo apt-get install nautilus-dropbox

And the first part was done, now I needed to hook up the install, as this was telling me

$ dropbox start
$ dropbox status
Waiting to be linked to an account...

so after some more digging, I found that I needed to start the dropboxd app manually and watch the output. so:

$ /var/lib/dropbox/.dropbox-dist/dropboxd
This client is not linked to any account...
Please visit https://www.dropbox.com/cli_link?host_id=19b...........................a7&cl=en_US to link this machine.

So, I went to that URL in the webbrowser I was already logged in with, it asked for my password – and then authenticated!

Client successfully linked, Welcome Jason!

HTML5 input type=”number” and step granularity

or how I learnt the hard way about the how the step attribute works.

Being an old (VB4,5,6) windows developer, I mistook the “step” attribute on the <input type=”number”…/> HTML 5 element for what it used to be. It not only controls what the step is if you press the spin control but also defines what numbers are ALLOWED in the field.

For example, with the default step of “1” you are only allowed to enter integers (that is whole numbers). With a step of 2 you are only allowed to enter even integers. With a step of 0.1, you are allowed to enter numbers with a single decimal place, 0.5 means only half integers and integers (…-0.5,0,0.5, 1.0, 1.5…).

So if you find yourself getting errors from your browser when trying to enter 41.2 into a number field, try setting step to either “0.1” or “any”.

More reading over at HTML: The Markup Language on the W3C website.