Bug #26873 | MNMAS Installation on OS X does not set correct permissions | ||
---|---|---|---|
Submitted: | 6 Mar 2007 13:51 | Modified: | 20 Apr 2007 8:17 |
Reporter: | MC Brown | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Enterprise Monitor: Installing | Severity: | S3 (Non-critical) |
Version: | 1.1 r4876 | OS: | MacOS (OS X 1.4.8 (Intel)) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[6 Mar 2007 13:51]
MC Brown
[6 Mar 2007 14:34]
MC Brown
It seems the permissions on the entire dashboard directory structure are incorrect. Checking the Apache logs again once running, you get a lot of errors while generating the graphs: [Tue Mar 06 14:30:59 2007] [error] [client 127.0.0.1] Exception: file_put_contents(/Applications/mysql/network/monitoring/dashboard/htdocs/cache/graph/5dc914722bb8e8946deddc2392b99f00.png) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied\n#0 [internal function]: __error_handler(2, 'file_put_conten...', '/Applications/m...', 215, Array)\n#1 /Applications/mysql/network/monitoring/dashboard/lib/Merlin/Model/Graph.php(215): file_put_contents('/Applications/m...', '?PNG????????IHD...')\n#2 /Applications/mysql/network/monitoring/dashboard/lib/Merlin/Model/Graph.php(240): Merlin_Model_Graph->getGraphByInterval('Database Activi...', Array, '01:00:00', false, false, false, 200, 100, true)\n#3 /Applications/mysql/network/monitoring/dashboard/lib/Merlin/Controller/Dashboard.php(153): Merlin_Model_Graph->getGraphByIntervalThumb('Database Activi...', Array, '01:00:00', 200, 100)\n#4 [internal function]: Merlin_Controller_Dashboard->getThumb('Database Activi...')\n#5 /Applications/mysql/network/monitoring/dashboard/lib/Merlin/Controller.php(225): call_user_func_array(Array, Array)\n#6 /Applications/mysql/network/monitoring/dashboard/htdocs/index.php(46): Merlin_Controller->dispatch()\n#7 {main}, referer: http://localhost:10080/index.php/dashboard/ Updating the permissions to allow writes fixes the problem, and enables the graphs in the display.
[9 Mar 2007 10:07]
Sveta Smirnova
Thank you for the report. Verified as described. To repeat run mysqlnetworkctl.sh as root.
[20 Mar 2007 8:17]
BitRock Merlin
Patch sent to Keith. The rotatelog's problem was caused by a substitution made to the rotatelogs wrapper script, but as this script was missing in older outputs, it was instead making the substitutions to the original binary file. About changing ownership for the mysql/data directory, the fix implements that request. Finally, we have not been able to reproduce the php session problem with the dashboard/tmp directory. The permissions are by default set as follows: drwxr-xr-x 3 nobody admin 102 Mar 19 23:32 tmp Please give us any indication in case you need a different set of permissions/ownership for this folder.
[28 Mar 2007 21:50]
Keith Russell
This has been reported as corrected in versions => 1.1.0.4973
[28 Mar 2007 21:50]
Keith Russell
This has been reported as corrected in versions => 1.1.0.4973
[20 Apr 2007 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[31 Jul 2009 9:06]
Enterprise Tools JIRA Robot
Martin MC Brown writes: Confirmed as fixed