-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added file perm and grant exceptions to BackupDAO * check for new exception(s) and show proper error message to user * added mock DAOs for backup controller tests Closes #715, closes #1101
- Loading branch information
1 parent
3f593bc
commit ee0be8d
Showing
12 changed files
with
274 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,12 +1,24 @@ | |||
Can't create/write to file | Cannot back up or export data | ||
========================== | ============================= | ||
|
|
||
While running a database backup either during the test run or using the application, you may get the error: | While running a database backup or export either during the test run or using the application, you may get the error: | ||
|
|
||
``PDOException: SQLSTATE[HY000]: General error: 1 Can't | ``It looks like the MySQL user does not have the proper permissions to grant back up/export access`` | ||
create/write to file '<thinkup>/webapp/_lib/view/compiled_view/tu_encoded_locations.txt' (Errcode: 13)`` | |||
|
|
||
ThinkUp's backup tool doesn't have the permissions it needs to back up your files. Make sure that the mysql user | or | ||
has GRANT FILE ON privileges in the database as well as write privileges to the compiled_view directory. If you still |
|
||
get the error, make sure that there aren't restrictive permissions set in any of the compiled_view folder's | ``It looks like the MySQL user does not have the proper file permissions to back up/export data`` | ||
parent folders up the tree which would keep the mysql user from writing to that directory. |
|
||
or | |||
|
|||
``PDOException: SQLSTATE[HY000]: General error: 1 Can't create/write to file | |||
'<thinkup>/webapp/_lib/view/compiled_view/tu_encoded_locations.txt' (Errcode: 13)`` | |||
|
|||
ThinkUp's backup or export tool doesn't have the permissions it needs to back up your files. Make sure that the MySQL | |||
user has GRANT FILE and LOCK TABLE privileges in the database as well as write privileges to the compiled_view | |||
directory. | |||
|
|||
`Find out more about MySQL GRANT permission <http://dev.mysql.com/doc/refman/5.1/en/grant.html>`_. | |||
|
|||
If you still get the error, make sure that there aren't restrictive permissions set in any of the | |||
compiled_view folder's parent folders up the tree which would keep the MySQL user from writing to that directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
The MySQL user does not have the proper file permissions to backup/export data | |||
============================================================================== | |||
|
|||
The Thinkup MySQL user does not have the proper file permissions to backup or export data. Make Sure the MySQL | |||
server has write privileges to the ThinkUp's ``_lib/view/compiled_view/`` directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
The MySQL user does not have the proper permissions to grant backup/export access | |||
================================================================================= | |||
|
|||
The Thinkup MySQL user needs GRANT permission to backup or export data. Make sure the MySQL user has been granted both | |||
FILE and LOCK TABLE permissions to the ThinkUp database. | |||
`Find out more about MySQL GRANT permission <http://dev.mysql.com/doc/refman/5.1/en/grant.html>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.