Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Upgrading from V6 to V7 failed

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upgrading from V6 to V7 failed

    Hi there

    I upgraded from V6 to V7... I am using CGI version on an ASP page. I use the code to embed CGI to ASp with WScript.

    Version 6 works ok. When I use same config file to index on V7 and of course all the files are regenerated, my search page doesn't work any more, it says:

    Content-type: text/html Unable to load settings.zdat file. The file appears to be invalid and may have been corrupted.


    But the settings.zdat file seems ok and it doesn't seem corrupted ;(

    My script in my ASP page is:

    Response.CodePage = 1250
    Dim WshShell, env, oExec
    Set WshShell = CreateObject("WScript.Shell")
    Set env = WshShell.Environment("Process")
    env.Item("REQUEST_METHOD") = "GET"
    env.Item("QUERY_STRING") = request.querystring

    set oExec = WshShell.Exec(Server.MapPath("/search/search.cgi"))
    oExec.StdOut.ReadLine() ' skip the HTTP header line
    Response.Write(oExec.StdOut.ReadAll())
    Response.CodePage = 65001

    What could be wrong?

    Jerry

    PS - ASP version works
    PS2 - I am using Windows server 2016
    Last edited by jerry2; 05-20-2017, 11:03 AM.

  • #2
    Unable to load settings.zdat file. The file appears to be invalid and may have been corrupted
    This, at least, means the CGI script started to execute. Which is normally the hard part to get working.

    Very likely you have only done a partial update. The settings file needs to be from V7 (not V6), the CGI script itself needs to be from V7 (and not V6) and the index needs to be built with V7 (not V6). Or if you have built a new index, then maybe you uploaded some of the files to the wrong folder.

    Comment


    • #3
      Hello again

      The CGI is from V7, because after indexing the indexer makes it and uploads it to the right folder (checked). New index is also made to correct folder, I don't need to upload it, it makes it in my inetpub folder...

      I loaded the settings from V6 into V7 and seemed to work, the zdat of course is from V7 as I opened it and says V7 inside. All 3 files you mention are new, but it doesn't work.

      V6 works beautifully.

      Comment


      • #4
        Can with either get FTP (or remote desktop) access to your server.
        Or can you zip up all the V7 files you are using and E-mail them to us, or make them available to download.

        Comment


        • #5
          Of course, I can give your ftp to my server. I'll do that tomorrow but I have to make V7 files again (that ones that do not work)...

          Comment

          Working...
          X