Friday, June 27. 2008
Zend Core Mysql Error
I've had this error more than once. On a debian virtual machine, with Zend Core installed, and when mysql doesn't restart when the machine reboots. It looks something like this:
debian:/usr/local/Zend/mysql/bin# ./mysqld
080627 12:31:16 [ERROR] Can't find messagefile '/usr/local/mysql/share/mysql/english/errmsg.sys'
080627 12:31:16 [ERROR] Aborting
This is for two reasons. First: you need to be up one level of directory to be able to run these commands. Some errors will tell you that but this one doesn't. Secondly, you need to use the mysqld_safe command.
debian:/usr/local/Zend/mysql# bin/mysqld_safe
Starting mysqld daemon with databases from /usr/local/Zend/mysql/data
This works for me - I have no idea if it is the prescribed method but background the process above and you're good to go.
debian:/usr/local/Zend/mysql/bin# ./mysqld
080627 12:31:16 [ERROR] Can't find messagefile '/usr/local/mysql/share/mysql/english/errmsg.sys'
080627 12:31:16 [ERROR] Aborting
This is for two reasons. First: you need to be up one level of directory to be able to run these commands. Some errors will tell you that but this one doesn't. Secondly, you need to use the mysqld_safe command.
debian:/usr/local/Zend/mysql# bin/mysqld_safe
Starting mysqld daemon with databases from /usr/local/Zend/mysql/data
This works for me - I have no idea if it is the prescribed method but background the process above and you're good to go.
Monday, April 21. 2008
Installing VMWare Tools
I recently did some work with Debian Etch virtual machines which I downloaded from the good people at thoughtpolice. Here are my notes on getting the VMWare tools added to that machine.
To be able to do anything interesting with a virtual machine, you need to install the VMWare tools onto the virtual machine. With the virtual machine, choose to “Install the VMWare tools” - this does a virtual equivalent of putting the right CD into the machine and you can then mount the CD and run the install program (follow the instructions on the VMWare site, they probably update theirs). I found that under Debian Etch I needed to first use aptitude to install some additional things that the tools needed to get themselves set up. These were:
Then run the VMWare tools installation and everything should go through smoothly. If you installed VMWare tools but didn't get all the setup completed because libraries were missing, you can just re-run the vmware-config-tools.pl script ( in /usr/bin/ for me).
To be able to do anything interesting with a virtual machine, you need to install the VMWare tools onto the virtual machine. With the virtual machine, choose to “Install the VMWare tools” - this does a virtual equivalent of putting the right CD into the machine and you can then mount the CD and run the install program (follow the instructions on the VMWare site, they probably update theirs). I found that under Debian Etch I needed to first use aptitude to install some additional things that the tools needed to get themselves set up. These were:
- gcc
- psmisc
- binutils
- make
- the kernel sources for the relevant version – do linux-headers-$(uname -r) to get the right version.
Then run the VMWare tools installation and everything should go through smoothly. If you installed VMWare tools but didn't get all the setup completed because libraries were missing, you can just re-run the vmware-config-tools.pl script ( in /usr/bin/ for me).
Thursday, April 17. 2008
VMWare Virtual Machines on NTFS
I keep having a problem with my virtual machines. I'm running kubuntu but the virtual machines are on an NTFS partition (because I use them from windows occasionally). The error message appears at startup and goes like this:
I looked in the log file and saw that immediately before the "Failed to allocate page" bit it said:
Apparently this is a known problem with VMs on an NTFS parition, but luckily the solution is very simple. I found a post which recommended editing the .vmx file and adding the following line:
This worked perfectly for me, I hope it helps someone else too. See also my post about installing vmware tools
VMware Player unrecoverable error: (vcpu-0)
Failed to allocate page for guest RAM!
A log file is available in "/path/to/VM/vmware.log". A core file is available in "/path/to/VM/core". Please request support and include the contents of the log file and core file.
To collect data to submit to VMware support, run "vm-support".
We will respond on the basis of your support entitlement.
I looked in the log file and saw that immediately before the "Failed to allocate page" bit it said:
Could not mmap paging file : No such device
Apparently this is a known problem with VMs on an NTFS parition, but luckily the solution is very simple. I found a post which recommended editing the .vmx file and adding the following line:
mainMem.useNamedFile=FALSE
This worked perfectly for me, I hope it helps someone else too. See also my post about installing vmware tools
(Page 1 of 1, totaling 3 entries)


Comments
Fri, 04.07.2008 07:06
This is a good place to know about more & more women speaker s: hers i am: http://geekspeakr.com/speaker/sree
Wed, 02.07.2008 22:10
LinuxJedi: I have a niece to knit for, no need to go to the great lengths of breeding grandchildren :)
Wed, 02.07.2008 19:58
Awww….That is really cute. Your stuff just gets better an d better :) Although I have visions of you in a rocking c hair in 60 years time knitting away embarrassing clothes for all you grandkids :)
Wed, 02.07.2008 14:28
Lorna, If you’re getting into hooks and coding standards yo u might want to have a look at triggering Greg Sherwood’s ph p codesniffer when somebody attempts to check in changes. http://url.ie/hq6 is a redirect to his blog posting about d oing this.
Wed, 02.07.2008 13:16
Geoff: For line-endings the SVN property is really useful, but for more complex requirements, like the ones Ken mention ed, a hook is more functional I think. I must admit to usua lly specifying whitespace and line endings in coding standar ds and then shouting at people that do it wrong … it [...]
Wed, 02.07.2008 12:57
Have you tried using the svn:eol-style property? This seems more appropriate than using pre-commit hooks.
Wed, 02.07.2008 12:11
Ken: Hello, thanks for dropping by and upstaging me with suc h an excellent tip :) I’ve also seen some nice pre-commit h ooks for SVN that cleans up this kind of badness before the files go near the repo.
Wed, 02.07.2008 01:23
Hi Lorna. Cool tip but I think I can go one better! I ha ve the following line in my ~/.vim/ftplugin/php.vim file autocmd BufWritePre *.php :%s/\s\+$//e This removes all t railing spaces in a .php file prior to writing it to disk an d means I can concentrate on work rather that using ma [...]
Tue, 01.07.2008 22:09
Nik: I can’t imagine what a wsdl would look like pasted into here so I’ve put it in a separate file for you, I’ve includ ed another example soap function so you can see the wsdl wit h two functions and I hope this will give you the help you n eed. The wsdl is at http://web.lornajane.net/sugar_so [...]