lamp

April 2007 - Posts

During upgrade, database raised exception 211
26 April 07 10:00 AM | Frederick.Chapleau | with no comments

I had... 

During upgrade, database raised exception 211, severity 23, state 46, address 019C646E. Use the exception number to determine the cause.

The cause was pretty dark, so to diagnose, I tried to restore the database using the hard way.

The result was... a success (why the restore database is not working?!)

(2 row(s) affected)

Processed 4624 pages for database 'THEDATABASE', file 'THEDATABASE' on file 1.

Processed 1 pages for database 'THEDATABASE', file 'THEDATABASE_log' on file 1.

Converting database 'THEDATABASE' from version 539 to the current version 611.
Database 'THEDATABASE' running the upgrade step from version 539 to version 551.
Database 'THEDATABASE' running the upgrade step from version 551 to version 552.
Database 'THEDATABASE' running the upgrade step from version 552 to version 553.
Database 'THEDATABASE' running the upgrade step from version 553 to version 554.
Database 'THEDATABASE' running the upgrade step from version 554 to version 589.
Database 'THEDATABASE' running the upgrade step from version 589 to version 590.
Database 'THEDATABASE' running the upgrade step from version 590 to version 593.
Database 'THEDATABASE' running the upgrade step from version 593 to version 597.
Database 'THEDATABASE' running the upgrade step from version 597 to version 604.
Database 'THEDATABASE' running the upgrade step from version 604 to version 605.
Database 'THEDATABASE' running the upgrade step from version 605 to version 606.
Database 'THEDATABASE' running the upgrade step from version 606 to version 607.
Database 'THEDATABASE' running the upgrade step from version 607 to version 608.
Database 'THEDATABASE' running the upgrade step from version 608 to version 609.
Database 'THEDATABASE' running the upgrade step from version 609 to version 610.
Database 'THEDATABASE' running the upgrade step from version 610 to version 611.
RESTORE DATABASE successfully processed 4625 pages in 29.687 seconds (1.276 MB/sec).

-f.
Filed under:
Pre-Update Scan Tool when Installing Sharepoint 2007
25 April 07 11:51 PM | Frederick.Chapleau | with no comments

Sharepoint 2007 installation program requires that the pre-scan tool to be executed prior to run the Configuration Wizard. There is no way to run it from the standard shortcuts created by the installtion program. The only way to do it is to run

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\prescan.exe /all

-f.

Filed under:
PPTP and THE bug
24 April 07 01:47 AM | Frederick.Chapleau | with no comments

The project: setup opens/wan as a standard enterprise class vpn client.

The timeframe... as soon as possible (like everyone is asking)

The result timeframe: to do the work, 3 hours, to find out the solution to THE bug that we had, 73h.

The solution was found by Andrew Dixon (thanks if you look one day at this post!) SELINUX

I just disabled it, rebooted the system and look, depressed at my timesheet.

Like Wikipedia said on SELinux, http://en.wikipedia.org/wiki/SELinux

A further criticism is that processes can, for example, fail to start with no feedback given that it is SELinux causing the failure, resulting in significant time wasted in ascertaining the cause of the problem.

If you want a great HOWTO on PPTP, check this one by Wing S Kwok.

-f.

 --- Follow up, the day after.

Ok, now that I have found the solution, I will just list all the request that I made to Google, and that Google did not find any results.

ntlm_auth Permission denied, Exec-Program: FAILED Permission denied, /usr/bin/ntlm_auth: Permission denied, rc_check_reply: received invalid reply digest from RADIUS server, chap response 0xda, chap failure 691 access denied, pptp mschapv2 problem, winbind ads mschapv2, Poptop MSCHAP2 ADS Howto, winbind ms-chapv2, mschap mschapv2 pptp, chap work mschapv2 does not work, chap work mschapsv2 does not work, nsswitch/winbindd_dual.c:child_read_request, chap failure access denied, E=691 r=1 v=0, Failure id=0xb3 E=691, CHAP Failure id=0xb3 E=691 R=1 V=0 M=Access denied, ppp authenticate samba, ntlm_auth-helper, ppp ntlm_auth-helper, failed CHAP authentication, LCP terminated by peer, ntlm_auth ppp ms-chap-v2

And those keywords were search while trying to configure opens/wan and to make it work with winbind, before switching to PPTP. I think it for the same reason, but I did not had the time (and did not want) to try it.

openswan always rekeying, Informational Exchange is for an unknown (expired?) SA , ipsec_setup: KLIPS ipsec0, openswan NETKEY, l2tp xp rekeying, Stops after "ISAKMP SA established"
Filed under:
HOWTO: Upgrade Fedora 4 directly to Fedora 6 via Yum
21 April 07 11:35 AM | Frederick.Chapleau | with no comments

It's just a firewall, with iptables w/IPSec, but I think it's a good start. I tried the following into a testing environment prior to doing that directly on a production server. Like they are saying, this is NOT the best way to do that, cause if the process is failing, everything fail...

Be sure to have a high speed internet connection, cause my home 10mpbs link was almost all the time at ... 10mpbs ;)

If I can resume in my own words:

  • First you say to yum that he is no longer a Fedora 4 but now a Fedora 6,
  • After you replace the kernel so that the rest is not failing (relying on the old kernel dependencies).
  • Yum just update all rpms so that they are "compatible" with the new kernel / fedora version.
  • An you update the whole installation, so that all the remaining package are up to date

The steps

yum clean all 

rpm -Uhv ftp://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-*.noarch.rpm

yum install yum 

yum remove kernel-2.6.11*  <----- here I removed all the other kernels than the currently running one

yum update kernel

reboot  <--- with the latest Kernel

yum remove kernel-2.6.17* <----- here I removed all the other kernels than the currently running one

yum update

yum clean all

-f.

ref.:

http://www.makuchaku.info/blog/how-to-upgrade-from-fc4-to-fc5-via-yum

http://fedoraproject.org/wiki/YumUpgradeFaq

http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html

http://www.linuxforums.org/forum/redhat-fedora-linux-help/63460-yum-upgrade-fc4-fc5-issues.html

Filed under:
Converting ASP 1.1 Website to ASP 2.0 Web Application
18 April 07 08:54 PM | Frederick.Chapleau | with no comments

Yes, everyone is doing that one day or the other. It's my turn to convert a well-complex website to ASP.NET 2.0.

This website was using .NET remoting with SOA architecture, call to win32 apis, multiple libraries, url rewriting with custom .htm handlers etc. so it was a really complex website.

The steps to do that were really simple... Hoping so.

First I renamed the directory to a .old directory, so that, when converting the website to a ASP.NET 2.0 website, the wizard can create the 2.0 website in the original directory. Secondly I converted the website. But the problem is that I don't want a Asp.net 2.0 Website, but an asp.net 2.0 web application, the differences are explained here.

So, I just created a new ASP.NET web application, with the original path, and copied the whole site into it. If sourcesafe was enabled, It will prompt you do check out the old 1.1. project (!).

After that, I converted it to a web application, so that the .designer.cs are generated. After that, I compiled and found out some conversion issues, like some control, that were case insensitives in 1.1, when they was modified after being created in the code-behind file.

Everything was compiling... with 26 warnings, but compiling. (Almost deprecated code ClientScript, Configuration sections etc.)

ref:

How to: Convert a Visual Studio .NET Project to Visual Studio 2005 

Walkthrough: Converting a Web Site Project to a Web Application Project in Visual Studio 2005 

-f.

Filed under:
Umbraco ImageGen 1.3
15 April 07 11:21 PM | Frederick.Chapleau | with no comments

I found it, and now I share it. Why people are sharing things, and remove it after? Huh?

-f.

Filed under:
Umbraco upgrade to 2.1.6
15 April 07 10:25 PM | Frederick.Chapleau | with no comments

I had to upgrade a 2.0 installation to 2.1.6 of Umbraco, but, I did it in a very dirty way, 'cause I didn't want to loose all my configuration in the web.config. I just replacing the directories and some entries in the web.config. After, I ran the website, and the wizard started by checking all permission, connections, and security (that was a must, great job!).

 My problem was at one of the last steps, the reindexing, it was giving me a "umbraco.cms.helpers.url.FormatUrl(String url) in C:\data\umbraco\umbraco2.1\umbraco\cms\helpers\url.cs:22". I googled a little, and found out that no one had the problem, maybe just because it's a little community.

I solved my problem, and found out that it was my fault, I just added some keys to the web.config, and there was a configuration that I must change to true, because I used directories, and not urls (I think in the previous version, I was directories).

The key: <add key="umbracoUseDirectoryUrls" value="true"/>

-f.

Filed under:
Media Center that is not playing live tv (Decoder error)
12 April 07 05:18 PM | Frederick.Chapleau | with no comments

Check this out. The problem is because of the MPEG 2 decoder (or DVD decoder) that is not correct, after installing xvid/divx codec. This utility helped telling me "There is no MPEG-2 codec installed.".

http://www.microsoft.com/downloads/details.aspx?FamilyID=de1491ac-0ab6-4990-943d-627e6ade9fcb&displaylang=en

 After that, I installed the ffdshow codec, and everthing worked fine!

-f.

Filed under:
Media Center that won't play DivX
11 April 07 06:58 PM | Frederick.Chapleau | with no comments

Today, 'cause I'm in vacation, I setted up my media center PC, in my living room.

Everything was ok, (after a couple of update reboots, and hack). The only thing that I want to share, is that my media center did not play DivX, even after installing the codec, and updating my media center. And I could play it with media player.

I just had to uncheck the automaticaly download codec, in the option pane, so that Windows Media Player can use the codec that it doesn't detect, and now, it work.

-f.

Filed under:
Thawte, IE7, Vista and Code Signing Saga
05 April 07 03:52 PM | Frederick.Chapleau | with no comments

I just tryied to issue a code signing certificate using the Thawte Code Signing process. There is too much problem with my installation. First, we cannot save the pvk (private key) so, if you generate the certificate, you must be the only one that is signing the code in the company, because Vista and/or IE7 doen't ask you to store it in a file, it stores it directly in the Certificate Store, AND it mark it as not exportable! So, you are the only one that can use it.

To solve the issue, I installed a VM with Windows 2003, and didn't upgrade it to IE7. So, magically a box was added in the same page as the one on Vista/IE7, asking me the emplacement of the PVK file!!

Is it me, or a company specialized in security, must test more than others?! The cost: 8 hours of debugging.

-f.

Filed under: ,