Postgre SQL related problems

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/20/2006 11:13:34 PM
Gravatar
Total Posts 488

Postgre SQL related problems

I have installed 2.1.8 pgs version of the portal from scratch and have the following problems.
Both these problems do not appear in the SQL Server installation.

1. Links module. When trying to delete the link am exception is thrown (the link is deleted): "System.IO.IOException: C:\Inetpub\wwwroot\mojo_pgs\Data\Sites\1\index\ not a directory"

2. The same problem as I described here: http://www.mojoportal.com/ForumThreadView.aspx?thread=556
12/21/2006 4:41:55 AM
Gravatar
Total Posts 18439

Re: Postgre SQL related problems

I'm not sure about #1, that sounds like a problem with the indexing of content which I wouldn't expect to be influenced by the db layer. Is the directory actually missing? What happens if you try a search, does the directory get created then? It should have been created during setup as content was created.

For #2 that was certainly my bad, apparently when I added that stored procedure to the script for postgre I thought I was editing my svn working copy but must have been editing a copy on my linux machine (I run pg from linux on a different machine) so the updated script never made it to svn until today and wasn't in the 2.1.8 release files for pgsql. I have just now corrected the downloads and versioned the pgsql release files as 2-1-8-1.

Thanks,

Joe
12/22/2006 5:01:47 AM
Gravatar
Total Posts 488

Re: Postgre SQL related problems

I have reinstalled the same 2.1.8 (pgs) version from scratch.

1. Unzip files, recreate database, apply permissions.
The directory "C:\Inetpub\wwwroot\mojo_pgs\Data\Sites\1\index\ " is missing.

2. Access the portal. Create initial data with /Setup/Default.aspx. Go to home page, l
ogin as admin@admin.com.
The directory is still missing.

3. Trying to delete a link in the Links module on the left - get the exception.
The directory is still missing.

4. Trying to search.
The directory appers. From now it works.


It seems to me deleting the link tries to update the index, and as it is not created yet an exeption is thrown.
12/22/2006 5:21:47 AM
Gravatar
Total Posts 18439

Re: Postgre SQL related problems

Well the bug seems to me to be that the index is not being created when the content is created during setup. When you do a search for the first time if the index is not there it indexes all the site content, so doing the search is what fixed it.

Probably the solution is to catch and handle the exception when it tries to delete from a missing index. Its really not a problem for it to not be there right away since it will be created upon the first search.

I would think this bug would happen using any data layer, so it seems odd if its only happening with pgsql.
If you have time, it would be good to know if the index is created immediately using MS SQL or if the same sequence of events can be produced. Its not really all that important though as the solution mentioned above will take care of it.

Thanks,

Joe
2/12/2007 5:07:56 AM
Gravatar
Total Posts 488

Re: Postgre SQL related problems

In the latest MSSQL version the exception says "\Data\Sites\1\index\segments" is not found, everything the same.


P.S. If there are no non-empty html modules on the site, even after search the index files are not created.
You must sign in to post in the forums. This thread is closed to new posts.