Ticket #8080 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Logging is broken on fresh mantid install

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: blocker Milestone: Release 3.0
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Alex Buts

Description

Spotted when cleaning out a windows build configuration. The build directory was deleted and then rebuilt. When starting MantidPlot the console displays:

Trouble configuring the logging framework File not found

and logging is broken. If you try and run an algorithm you will see no output at all.

Change History

comment:1 Changed 7 years ago by Martyn Gigg

  • Status changed from new to inprogress

comment:2 Changed 7 years ago by Martyn Gigg

It looks like this is to do with the existence of the mantid.log file. If you create an empty dummy file in your user properties directory (the build dir on windows, $HOME/.mantid on Linux) then logging works again.

comment:3 Changed 7 years ago by Peter Peterson

  • Milestone changed from Backlog to Release 3.0

Should have moved things from backlog into the release before working on it.

comment:4 Changed 7 years ago by Martyn Gigg

Check for writability of log path more verbosely.

As commented in the code the Poco & Windows APIs are not reliable enough to check for write permissions on a directory. Refs #8080

Changeset: cd059e5acd2aaaa4aa8817ec807241d8f4eadf6a

comment:5 Changed 7 years ago by Martyn Gigg

  • Status changed from inprogress to verify
  • Resolution set to fixed

Branch: bugfix/8080_logging_broken_clean_install

Tester: The problem here was the lack of a mantid.log file when Mantid was starting. I would suggest testing before the merge and then after to see if it solves the issue.

To test first locate your mantid.log files:

  • Linux/Mac - In $HOME/.mantid
  • Windows - The same directory as the executable

and remove all mantid.log.* files. Now start MantidPlot and try and run an algorithm to see if the logging is behaving.

Also, check that a non-writable log directory allows Mantid to start and puts the log file in system temp.

comment:6 Changed 7 years ago by Alex Buts

  • Status changed from verify to verifying
  • Tester set to Alex Buts

comment:7 Changed 7 years ago by Alex Buts

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/8080_logging_broken_clean_install'

Full changeset: 5ffea0b8c47fd5268fa4ac107c3430bc94ba8886

comment:8 Changed 7 years ago by Alex Buts

works as described

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8925

Note: See TracTickets for help on using tickets.