Tags:
create new tag
view all tags

Question

All plugins except this one are disabled. PublishContrib is installed.

I get various errors.

InstalledPlugins reports no errors. Nothing is written in /tmp. There is no warn.txt and setting DEBUG =1 produces no debug.txt. There is nothing in the Apache error_log.

What should I try next?

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: BibtexPlugin
Server OS: Windows XP all updates applied, Cygwin1.5.24-2
Web server: Apache 2.2.3-1
Perl version: perl, v5.8.7 built for cygwin-thread-multi-64int
Client OS: Windows XP all updates applied, Cygwin1.5.24-2
Web Browser: Firefox 2.0.0.1
Categories: Plugins

-- ShaughanLavine - 21 Feb 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Hmmm. where to begin.

  • in the BibtexPlugin, the debug mode is hard coded in the .pm file. line 45. Setting DEBUG in a topic won't work (This should probably be changed)
  • The bibtool warnings are a bit strange. I would expect a file path instead of a TWiki-style Web.Topic format.
  • If turning the debug mode on doesn't provide any better clues, the next step is to turn on the sandbox trace functionality. Add the following line
    $sandbox->{TRACE} = 1;
    after the sandbox is created (line 88 or so). This will output the system commands to the apache log file. From there, it should be possible to debug what is going on.

The first priority should be figuring out why bibtool returns such odd path names in the warning.

-- ScottHoge - 22 Feb 2007

Thanks for replying so fast. I had a lot of meetings and classes today, and I will again tomorrow, so I'm a bit slower.

Here are the results of setting TRACE were huge (437.2 K).

-- ShaughanLavine - 23 Feb 2007

Since, as ScottHoge , suggested by e-mail, the main thing is to find out what commands render.sh is executing and the error_log was so absurdly huge, I removed the early sandbox->{TRACE} = 1; and instead bracketed each command of the form ($result, ... $cmdTemplate ... ; with sandbox->{TRACE} = 1; and sandbox->{TRACE} = 0; in BibtexPlugin.pm. I also added echo $cmd1 and echo $cmd2 immediately below eval $cmd1 and eval $cmd2, respectively, in render.sh.

Here is what was going on:

ShaughanLavine@ShaughanTablet /srv/www/twiki
$ /usr/local/bin/bibtool.exe /srv/www/twiki/pub/TWiki/BibtexPlugin/sample.bib

*** BibTool WARNING: File /srv/www/twiki/pub/TWiki/BibtexPlugin/sample.bib not f
ound.

ShaughanLavine@ShaughanTablet /srv/www/twiki
$ /usr/local/bin/bibtool.exe pub/TWiki/BibtexPlugin/sample.bib

@Article{         wein.more.ea:pr.2003,
  author        = {Weinberg, R. F. and Moresi, L. and van der Borgh, P.},
  category      = {C1},
  journal       = {Precambrian Res},
  pages         = {219-239},
  title         = {Timing of deformation in the Norseman-Wiluna Belt, Yilgarn
                  Craton, Western Australia},
  volume        = {120 (3-4)},
  year          = {2003}
}

<snip>

The shell was not interpreting absolute paths correctly, only relative paths, in executing bibtool. I recompiled bibtool and that error disappeared. DOH! I would delete all the attachments, since they are no longer relevant, but I don't have the appropriate (rename) privileges.

I'm now getting the following error:

Cannot write output citations file (/dev/null: No such file or directory)
Uncaught exception: Sys_error("c:/texmf/miktex/bin/bibtex.exe -terse -min-crossrefs=1000 .\\bib2htmld5057d > /dev/null 2>&1: No such file or directory")

Here is the command:

/usr/local/bin/bibtool.exe -r /srv/www/twiki/pub/TWiki/BibtexPlugin/bibtoolrsc /srv/www/twiki/pub/TWiki/BibtexPlugin/sample.bib | c:/localtexmf/miktex/bin/bib2bib.exe -q -oc /dev/null -c 'author:"Moresi"' | c:/localtexmf/miktex/bin/bibtex2html.exe -c 'c:/texmf/miktex/bin/bibtex.exe -terse -min-crossrefs=1000' -nodoc -nobibsource -noheader -nofooter -q -dl --use-keys -d -r --no-abstract --no-keywords

The first two parts of that command, that is,

/usr/local/bin/bibtool.exe -r /srv/www/twiki/pub/TWiki/BibtexPlugin/bibtoolrsc /srv/www/twiki/pub/TWiki/BibtexPlugin/sample.bib | c:/localtexmf/miktex/bin/bib2bib.exe -q -oc /dev/null -c 'author:"Moresi"'
produces this when run on the command line:
Cannot write output citations file (/dev/null: No such file or directory)

If I change /dev/null to /tmp/foo, the command works. But /dev/null is, otherwise, working just fine:

ShaughanLavine@ShaughanTablet /srv/www/twikihttp://twiki.org/cgi-bin/edit/Support/BibtexPluginCygwin?t=1172335550
(edit) BibtexPluginCygwin < Support < TWiki
$ ls > /dev/null

ShaughanLavine@ShaughanTablet /srv/www/twiki

If I replace /dev/null by /tmp/foo in render.sh, I then get the error:

Uncaught exception: Sys_error("c:/texmf/miktex/bin/bibtex.exe -terse -min-crossrefs=1000 .\\bib2htmlfb72de > /dev/null 2>&1: No such file or directory")

The bibtex.exe I am using is part of my MikTex TeX for windows installation. Since I'm stumped by the occurrence of /dev/null, the only thing I can try now is to add a Cygwin installation of TeX to my system, so I can use that. OK. I did that, and now everything works.

None of the problems I had is likely to be of general interest, but Scott's hints about how to get debugging info probably will be.

-- ShaughanLavine - 24 Feb 2007

I'm glad to hear you figured it out.

In addition to how to track down what commands are actually executing in the background, I think an additional take-away point is that Windows versions of software and Cygwin versions often have difficulty playing well together. It's generally best to throw all your chips into one bowl or the other. wink

-- ScottHoge - 25 Feb 2007

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatext BibtexPlugin-1020-1172204059-0000 r1 manage 0.4 K 2007-02-23 - 04:58 UnknownUser BibtexPlugin-0
Unknown file formatext BibtexPlugin-1020-1172204059-1 r1 manage 0.4 K 2007-02-23 - 04:59 UnknownUser BibtexPlugin-1
Unknown file formatext BibtexPlugin-1020-1172204059-2 r1 manage 0.4 K 2007-02-23 - 05:02 UnknownUser BibtexPlugin-2
Unknown file formatext BibtexPluginerror_log r1 manage 432.7 K 2007-02-23 - 05:05 UnknownUser Portion of /var/log/apache2/error_log from BibtexPlugin
Unknown file formatcfg LocalSite.cfg r1 manage 9.0 K 2007-02-22 - 15:31 UnknownUser LocalSite.cfg
Unknown file formatbib bibfile-1020-1172204059-0000.bib r1 manage 2.1 K 2007-02-23 - 04:56 UnknownUser bibfile
Unknown file formatext bibtex-citefile-1020-1172204059-0000 r1 manage 0.1 K 2007-02-23 - 04:57 UnknownUser bibtex-citefile
Texttxt debug.txt r1 manage 6.7 K 2007-02-23 - 05:03 UnknownUser debug.txt
Unix shell scriptsh render.sh r1 manage 1.3 K 2007-02-22 - 15:35 UnknownUser render.sh
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2007-02-25 - ScottHoge
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.