Tags:
create new tag
view all tags

SID-01097: Cygwin permissions not being set?

Status: Answered Answered TWiki version: 5.0.1 Perl version: 5.12
Category: CategoryDeployment Server OS: Windows Server 2008 64 Last update: 15 years ago

Hello I have a strange issue involving two things:

1.) My inability to get RCS working (I use the perl impl in place) 2.) Inability (I think) to get grep working; for instance when I select "More Topic Actions" on a wiki page the error I get is:

grep -E -i -l -H -- %TOKEN|U% %FILES|F% Grep for '%META:TOPICPARENT[{].*name=\""(Main\.)?WebHome\"".*[}]%' returned error at c:/Twiki/lib/TWiki/Store/SearchAlgorithms/Forking.pm line 95.

I am inclined to believe there is an issue with the permissions for Cygwin.

The PATH is set correctly in the configuration (I can execute grep, perl, etc) from the windows command line and Cygwin. However the mounts that I add to Cygwin (as per http://twiki.org/cgi-bin/view/TWiki/WindowsInstallCookbook#Cygwin_Unix_tools_Perl_and_RCS) are not persisted. They are created and verified as expected but after closing Cygwin and reopening (or even after some time) my twiki mount disappears. I expect that this is the reason that grep and RCS are failing?

Another error possibility: When doing perl -V I get the error "This version of C:\cygwin\bin\gcc.exe is not compatible with the version of windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher. Googling it doesn't appear that there is a 64 bit version of Cygwin or the gcc plugin.

-- ReidPeryam - 2011-02-07

Discussion and Answer

On RCS issue, you can change {StoreImpl} from 'RcsWrap' to 'RcsLite'.

-- PeterThoeny - 2011-02-08

On grep, check and if needed set an absolute path in {RCS}{EgrepCmd} and {RCS}{FgrepCmd}.

-- PeterThoeny - 2011-02-08

Thank you for your response Peter. After adding the direct path to grep the error remains:

c:/cygwin/bin/grep.exe -E -i -l -H -- %TOKEN|U% %FILES|F% Grep for '%META:TOPICPARENT[{].*name=\""(TWiki\.)?WebHome\"".*[}]%' returned error at c:/Twiki/lib/TWiki/Store/SearchAlgorithms/Forking.pm line 95.

For some reason I think that Perl doesn't have the permissions to execute grep? Although there is nothing in the System event logs describing this. Hm.

I am still suspricious that cygwin itself is missing permissions owing to the twiki mount getting dropped.

-- ReidPeryam - 2011-02-08

This looks like a good culprit :/

http://cygwin.com/ml/cygwin/2010-09/msg00006.html

-- ReidPeryam - 2011-02-08

I resolved this by simply changing the path to grep (via localsite.cfg) to be relative: /bin/grep.exe

previously I had them as just grep.exe since I figured that the PATH variable that included c:/Cygwin/Bin would include it (but it didn't).

works now.

-- ReidPeryam - 2011-02-14

      Change status to:
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.
SupportForm
Status Answered
Title Cygwin permissions not being set?
SupportCategory CategoryDeployment
TWiki version 5.0.1
Server OS Windows Server 2008 64
Web server IIS 7
Perl version 5.12
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2011-02-14 - ReidPeryam
 
  • 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.