The amazing adventures of Doug Hughes

Verity Nightmare

Recently I’ve been having a nightmare of a problem with Verity on my laptop. Historically, it’s worked just fine. However, recently it more or less just stopped working. I’m sure I did something half-witted, but I don’t know what.

I have a client who’s not exactly been yelling at me to fix some bugs for him, but who is impatient to see some fixes put in place. Unfortunately, on Monday when I tried to duplicate some of his issues on his site, instead of seeing the issue, I saw an error from verity about a collection not existing.

That made perfect sense, I had just reinstalled ColdFusion. (I don’t remember why! Something in here might have been the half-witted problem.) So I log into the ColdFusion administrator and try to create the collection, but it failed with this error:

Unable to create collection Test.
Unable to create collection test.

An error occurred while creating the collection: com.verity.api.administration.ConfigurationException: Failed to retrieve style path. (-6044)

I spent two days Googling around looking for a solution to the problem. Unfortunately, all I found were a few references to the same instructions from Adobe. Namely, go into the verity directory for your ColdFusion or Jrun installation and run verity-uninstall.bat and then verity-install.bat.

Both of these files apparently returned errors, though I couldn’t find any information on those errors. (Sorry, I don’t have them documented.) In the end it didn’t solve my problem.

I screwed around a bit more until Tuesday afternoon when I decided to bite the bullet and call Adobe support. (This was a first for me.) Honestly, I’ve been a little under-whelmed with Adobe support. Compared to Microsoft support Adobe support is lame. They don’t immediately connect you with a support technician. Instead, they tell you that someone will call or email you within four hours. (Oh great, I get to wait by my computer and phone for four hours at the end of the day!)

Anyhow, I wasn’t initially impressed with the quality of service from the technician who contacted me. He asked a few cursory questions about the problem and then told me he’d call me back later. (Which he didn’t, he emailed me while I was away from the computer.) I think he figured he could look this issue up in their knowledge base (which I’d already scoured on the web) and be done with me.

The support ticket meandered through Wednesday without much contact and then into Thursday when I received no contact at all until after 2pm. I actually called the support line up and expressed my displeasure at their paid support. This seemed to give them a bit of a kick in the but, because I did get a call back from my tech and his support tech with some workable answers.

They wanted to try a manual installation of Verity to see if that would let verity work. It turned out that only one of verity’s three services were installed. So, maybe, we could manually run the commands to register the other services and we’d be in business. On the first run though it didn’t work. However, after modifying their instructions a bit I was able to get this to work:

  1. Open a command prompt and go to your verity directory.
  2. Go to the k2_nti40bin under your verity directory. (Note: I’m on windows. If you’re on *nix you may need to modify this path and the executable names below?)
  3. Once in here run the rcadmin.exe file. This opens up what appears to be an administrative command prompt for verity.
  4. Type hierarcyview and hit enter. In my case this listed only one service, the K2 Admin Service. This should list three services.
  5. From here, I had to run a series of commands, shown below. These commands are “styleset”, “licenseupdate”, “trustedclientset”, “serverset”, “indexerset”, and “servicesignal”. Each of these works as a sort of wizard where you enter in a set of options. The correct values are shown after each command in the order you’re prompted. Where you see “(Just hit enter),” just hit enter. Here you go:
    styleset
    1
    Def_FileSystem
    1
    1
    (Just hit enter here)
    (Just hit enter here)
    filesys
    (Just hit enter here)
    default File System style files
    (Just hit enter here)
    y
    styleset
    1
    Def_FileSystem_PushAPI
    1
    1
    (Just hit enter here)
    (Just hit enter here)
    filesys
    (Just hit enter here)
    Default File System style files to be used with ODK Collection Indexing API
    (Just hit enter here)
    y
    styleset
    1
    ColdFusionK2
    1
    1
    (Just hit enter here)
    (Just hit enter here)
    filesys
    (Just hit enter here)
    ColdFusion K2 Style Files
    (Just hit enter here)
    y
    styleset
    1
    ColdFusionVspider
    1
    1
    (Just hit enter here)
    (Just hit enter here)
    filesys
    (Just hit enter here)
    ColdFusion Vspider Style Files
    (Just hit enter here)
    y
    licenseupdate
    ColdFusionK2
    trustedclientset
    ColdFusionK2
    a
    1
    127.0.0.1
    255.255.255.255
    y
    serverset
    1
    ColdFusionK2_server1
    9920
    ColdFusion K2Server
    y
    y
    y
    (Just hit enter here)
    ColdFusionK2
    C:JRun4verityk2common
    (Just hit enter here)
    200
    2
    n
    300000
    900000
    (Just hit enter here)
    (Just hit enter here)
    y
    trustedclientset
    ColdFusionK2_server1
    s
    1
    127.0.0.1
    255.255.255.255
    y
    servicesignal
    ColdFusionK2_server1
    1
    y
    indexerset
    1
    ColdFusionK2_indexserver1
    9960
    ColdFusion K2 Index Server
    (Just hit enter here)
    ColdFusionK2
    (Just hit enter here)
    4
    (Just hit enter here)
    1
    y
    trustedclientset
    ColdFusionK2_indexserver1
    i
    1
    127.0.0.1
    255.255.255.255
    y
    servicesignal
    ColdFusionK2_indexserver1
    1
    y
  6. Once all these commands have been run you should have three services shown in the task manager, k2server, k2index, and k2admin. If you run the hierarchyview command again from rcadmin you should see three services listed. If you run an netstat an command from the command line you should see the ports 9950, 9920 and 9960 being listened on.

All in all, I’m the first person to report this issue to Adobe, so I’ll be surprised if anyone else ever needs this information, but here it is for the world.

Comments on: "Verity Nightmare" (19)

  1. Peter Bell said:

    Hi Doug,

    I’m a little disappointed that you actually needed to call Adobe for this one. As I look at the final solution, that’s pretty much what I’ve have tried off the bat.

    That’s what I love about Verity, it is just so intuitive, you don’t even need the manual that they don’t provide us with!

    Like

  2. Doug Hughes said:

    Peter – Oh my god. I just about fell out of my chair when I read that. At first I thought you were serious!

    What a week!

    Like

  3. Peter Bell said:

    Think we all need a laugh on a Friday . . .

    And I *was* serious *wink*

    GREAT to meet to at Frameworks – very cool!

    Like

  4. Tom Jordahl said:

    Glad you got it running.

    The verity-install.bat script is the thing that runs these commands for you (via the verity install program ‘vconfig’). The uninstall script should be run first to prevent things that were already there from getting errors when they are redefined.

    Like

  5. Doug Hughes said:

    Tom – FYI, I ran that uninstall and reinstall script many many times with no luck. It wasn’t installing all of the services.

    In the end, I think it was something flaky on my laptop. I rebuilt it and it works now without a hitch.

    Like

  6. I’ve actually got my ISP reinstalling CF as we speak because Verity just stopped working. My collection’s still there, I can refresh it, but CFAdmin no longer saw the search service as being installed.

    I tried running the uninstall/install scripts, but the install script crashes after registering the service. Mind you, this was after they previously reinstalled due to the Settings and Caching pages both throwing JRun/java exception errors…

    Like

  7. Hi All,

    Still not able to solve the problem. Am getting this error. Any help is highly appreciated.
    Kind Regards,
    sharad.

    An error occurred while performing an operation in the Search Engine native library. coldfusion.tagext.lang.CFSearchTagException: Error # -31 Error # -31 Error E3-0036 (VDK): Cannot load style.ddd schema (document catalog) in collection

    Like

  8. John Jones said:

    Hi, in the instructions the first call to hierarchyview is spelt wrong, can you update it?

    thanks

    John

    Like

  9. Thank you, thank you, thank you. That post has just saved my bacon (and my weekend).

    One thing to note:
    With CF8 on Linux, I had to change the port number when running rcadmin to 9951. I found the right port to connect to by looking at the verity-install.cfg file

    Thanks again

    Mark

    Like

  10. I spoke slightly too soon. Seems the instructions need to be modified for CF8. The port numbers for both the serverset and indexerset needs to be incremented by 1 (i.e. 9921 and 9960 respectively).

    Mark

    Like

  11. Oh Dear Lord, that’s it, I’m switching this computer off. That final port number should be 9961.

    Like

  12. Jamie Jackson said:

    Darn, I had 2/3 daemons running (9950 and 9960) when I started, and hoped to get 9920 going with these instructions.

    After running these /opt/jrun4/verity/k2/_ilnx21/bin/rcadmin instructions, I’ve only got 1/3 daemons running (9950), so I’ve taken a step backwards.

    Then, I tried the uninstaller, then the installer, but I’m still stuck at 1/3 of the services. It seems that whatever the uninstaller does, it doesn’t wipe out the config thoroughly (enough), since it didn’t even get me back to where I started.

    Does anyone know where these things are persisted?

    @Mark: I’m on Ubuntu, and my /opt/jrun4/verity/verity-install.cfg does _not_ have the ports you mentioned. It’s got the normal 9950, 9960, and 9920 that Doug mentions, so I wonder why you had to increment on your system.

    @Doug: Thanks for the post. The Verity stuff in CFMX is pretty mysterious, and any articles dealing with its guts are appreciated.

    Like

  13. Jamie Jackson said:

    I take it back. I think I had accidentally hit the “a” option of hierarchyview, which, by definition would only show me a single daemon.

    However, after making this (mistaken?) assumption, I uninstalled and reinstalled verity, through the scripts. I recreated my collection, and now I’ve got all three services, it seems. Therefore, I’m not sure whether this blog fixed things, or if the reinstallation fixed things. I’ll give Doug credit in any case. 😉

    Like

  14. You pretty much describe what I did with similar situation on CF8. Little more depth here on my blog:

    http://www.instantspot.com/gospot/admin.EditBlogEntry/ContentId/174402

    General heuristic seems to be the install batch file tries to insert always so if it fails around style defs things don’t work. So the solution is delete the style defs, whatever they are, and rerun the install batch file.

    Like

  15. Scott Reed said:

    I’ve been going through a similar nightmare for months now. I tried running rcadmin and it throws an error…
    “Cannot find verity.cfg file – RCADMIN Aborting”

    …even though I see verity.cfg in /opt/coldfusionverity/k2/common/verity.cfg.

    Just wondering if anyone knows why that error might be occcuring.

    Thanks
    Scott

    Like

  16. @Scott ( a year later! ), set the VERITY_CFG variable in your shell as follows:

    [root@localhost bin]# VERITY_CFG=/opt/coldfusionverity/k2/common/verity.cfg
    [root@localhost bin]# export VERITY_CFG
    [root@localhost bin]# ./rcadmin
    K2Admin Server: localhost:9951 connected. Type ? for help.
    RCADMIN – Verity, Inc. Version 5.5.0
    rcadmin>

    Like

  17. @dc, im getting ‘command not found’ when running “export VERITY_CFG” or “VERITY_CFG” … on cf8 via red hat.
    any ideas would be much obliged.

    brian

    Like

  18. Could not get the instructions from:
    http://kb2.adobe.com/cps/400/kb400967.html to work until I found your post.
    thanks.
    Your insight and helpful post made my day today.
    I was able to complete the steps with the corrected entries you posted.
    Thanks Again,
    cheryl

    Like

Comments are closed.

Tag Cloud

%d bloggers like this: