|
From: David H. <da...@sm...> - 2006-06-14 17:43:43
|
Dmitriy,
Taken from recent post from Leif:
If that looks correct, my guess would be that you have installed some
permissions on the directory where the wrapper.exe is located which are
preventing the system account from even seeing that file.
Unless you have specified an account in your wrapper.conf file, the Wrapper
will normally run as the SYSTEM account when running as a service. This is
different from the account you are logged in as and thus run as when in
console mode.
I believe the same thing is happening here. Unless you have specifically set
a user for the app to run under, it runs as SYSTEM, whereas your -c runs the
app as the current user. Try changing the conf file to use a different user
who has the same rights as your current user, and see if that helps,
Davy Boy Out..
_____
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Dmitriy
Yuriev
Sent: 14 June 2006 01:36
To: wra...@li...
Subject: [Wrapper-user] Access is denied while attempting to write to a file
Greetings.
I am configuring CruiseControl to run as a service with wrapper. Service
itself seems to start ok, but when CruiseControl tries to update some files
I get the following exception (see below).
If I start CruiseControl through a command prompt, it works fine. If I start
it through wrapper using '-c' option (run as a Console application) it works
fine as well, the error only happens running it through the service. Thanks
in advance.
2006-06-13 22:22:17,977 [WrapperSimpleAppMain] ERROR Project -
exception notifying listener
net.sourceforge.cruisecontrol.listeners.CurrentBuildStatusListener for
project AM
net.sourceforge.cruisecontrol.CruiseControlException : Error writing file:
.\logs\status.txt : .\logs\status.txt (Access is denied)
at
net.sourceforge.cruisecontrol.util.CurrentBuildFileWriter.writefile(CurrentB
uildFileWriter.java:68)
at
net.sourceforge.cruisecontrol.listeners.CurrentBuildStatusListener.handleEve
nt (CurrentBuildStatusListener.java:33)
at
net.sourceforge.cruisecontrol.Project.notifyListeners(Project.java:828)
at net.sourceforge.cruisecontrol.Project.setState(Project.java:573)
at net.sourceforge.cruisecontrol.Project.start (Project.java:751)
at
net.sourceforge.cruisecontrol.CruiseControlController.addProject(CruiseContr
olController.java:119)
at
net.sourceforge.cruisecontrol.CruiseControlController.loadConfigFromConfigMa
nager(CruiseControlController.java :292)
at
net.sourceforge.cruisecontrol.CruiseControlController.setConfigFile(CruiseCo
ntrolController.java:100)
at net.sourceforge.cruisecontrol.Main.main(Main.java:85)
at CruiseControl.main(CruiseControl.java :57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:197)
|