[Bug 766] New: swift command gives Java stacktrace when run in non-writable directory
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=766 Summary: swift command gives Java stacktrace when run in non-writable directory Product: Swift Version: trunk Platform: PC OS/Version: Mac OS Status: ASSIGNED Severity: minor Priority: P3 Component: SwiftScript language AssignedTo: [email protected] ReportedBy: [email protected] sandbox$ swift -version no sites file specified, setting to default: /home/wilde/swift/rev/trunk/etc/sites.xml log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: swift.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:188) at java.io.FileOutputStream.<init>(FileOutputStream.java:113) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at org.apache.log4j.Logger.getLogger(Logger.java:117) at org.globus.cog.karajan.Loader.<clinit>(Loader.java:47) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at java.lang.J9VMInternals.initialize(J9VMInternals.java:167) Swift trunk swift-r5739 cog-r3368 (cog modified locally) sandbox$ pwd /home/sinitskiy/energylandscape sandbox$ -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=766 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Mihael Hategan <[email protected]> 2012-04-03 15:50:57 --- Would having a nice error (such as "swift must be run from a writeable directory") be a desired outcome here? -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=766 --- Comment #2 from David Kelly <[email protected]> 2013-02-15 12:39:17 --- Possibly a related issue to this ticket - let's shoot to remove the generation of swift.log altogether. Swift probably shouldn't create logs when you're doing something like "swift -version".There was a short discussion about this on swift-devel on January 6th. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=766 David Kelly <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from David Kelly <[email protected]> 2013-02-15 13:00:44 --- *** Bug 192 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=766 Michael Wilde <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |v0.94 --- Comment #4 from Michael Wilde <[email protected]> 2013-04-09 22:26:01 --- What are the issues blocking the elimination of swift.log generation? Regarding the message on "must be in writable dir" - I would say that we should be able to run swift from any dir as its cwd and direct log writing elsewhere. So the message should be "Cannot write log file." which could be a fatal error that prevents swift from running. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=766 David Kelly <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from David Kelly <[email protected]> 2013-08-30 15:58:46 --- I believe this is resolved now in trunk with the removal of swift.log. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov