nnhubbard
(Nic Hubbard)
December 7, 2009, 6:24pm
1
After our upgrade to 3.24.1, and using the system_move_update.php script to rename our root folder, I am getting the following errors when updating file assets, especially the metadata for a file asset:
MySource Warning
File: [SYSTEM_ROOT]/core/include/locale_manager.inc Line: 504
Message: File Belongs to different Repository [FVER0008]
Backtrace: Show
MySource Warning
File: [SYSTEM_ROOT]/core/include/locale_manager.inc Line: 504
Message: Error occurred getting file information, unable to run upToDate() [FVER0002]
Backtrace: Show
Strange, but the data does get saved. What could be causing this?
EDIT: Just found a post about this:
http://forums.matrix.squiz.net/index.php?showtopic=4294
I did successfully run the system_move_update script, could it somehow have missed some files?
dschoen
(David Schoen)
December 7, 2009, 10:11pm
2
I had a post about this once but I seem to have lost it…
Before trying anything else you can confirm that system_move_update has done what it should have done by running something like:
$ find data/private/assets/ -type f | grep .FFV | xargs cat | grep dir= | sort | uniq -c
in your matrix root.
E.g.:
/var/www/matrix-3-24-2$ find data/private/assets/ -type f | grep .FFV | xargs cat | grep dir= | sort | uniq -c
12 dir="/var/www/matrix-3-24-2/data/file_repository"
In this case I have 12 file assets and all of their .FFV files have the correct value.
nnhubbard
(Nic Hubbard)
December 7, 2009, 10:17pm
3
Thanks, after running that find command, I get:
8312 dir="./data/file_repository"
31 dir="/home/websites/mysource_matrix/data/file_repository"
[quote]
I did successfully run the system_move_update script, could it somehow have missed some files?
[/quote]
Perhaps some file paths were not updated from a previous system move which may have had a different path again.
Are they particularly old files on which this is happening?
Edit : Thanks Dave for your post above too
nnhubbard
(Nic Hubbard)
December 7, 2009, 10:39pm
5
[quote]
Perhaps some file paths were not updated from a previous system move which may have had a different path again.
Are they particularly old files on which this is happening?
[/quote]
No, it does not seem to be particularly old files. I just got that error some some files created in June.
dschoen
(David Schoen)
December 7, 2009, 11:02pm
6
[quote]
Thanks, after running that find command, I get:
8312 dir="./data/file_repository"
31 dir="/home/websites/mysource_matrix/data/file_repository"
[/quote]
So you have 8312 .FFV files with the wrong path.
My guess is you probably ran the script with:
$ php scripts/system_move_update.php .
instead of:
$ php scripts/system_move_update.php /full/path/to/matrix/here
You can fix it like so:
/var/www/matrix-3-24-2 $ find data/private/assets/ -type f | grep .FFV | xargs cat | grep dir= | sort | uniq -c
12 dir="./data/file_repository"
/var/www/matrix-3-24-2 $ php scripts/system_move_update.php $(pwd)
Enter the old System Root : .
Confirm "." (Y/N) : y
------------------------------------
OLD : ./data/file_repository
NEW : /var/www/matrix-3-24-2/data/file_repository
------------------------------------
File : /var/www/matrix-3-24-2/data/private/assets/text_file/0007/25/.FFV/login_styles.css
File : /var/www/matrix-3-24-2/data/private/assets/text_file/0010/28/.FFV/password_change_styles.css
File : /var/www/matrix-3-24-2/data/private/assets/image/0011/29/.FFV/login_image.gif
File : /var/www/matrix-3-24-2/data/private/assets/image/0006/24/.FFV/swish.gif
File : /var/www/matrix-3-24-2/data/private/assets/image/0003/30/.FFV/swish.gif
File : /var/www/matrix-3-24-2/data/private/assets/image/0005/23/.FFV/login_image.gif
File : /var/www/matrix-3-24-2/data/private/assets/password_change_design/0009/27/.FFV/design_file.php
File : /var/www/matrix-3-24-2/data/private/assets/password_change_design/0009/27/.FFV/parse.txt
File : /var/www/matrix-3-24-2/data/private/assets/design/0010/46/.FFV/design_file.php
File : /var/www/matrix-3-24-2/data/private/assets/design/0010/46/.FFV/parse.txt
File : /var/www/matrix-3-24-2/data/private/assets/login_design/0004/22/.FFV/design_file.php
File : /var/www/matrix-3-24-2/data/private/assets/login_design/0004/22/.FFV/parse.txt
Hope that helps.
nnhubbard
(Nic Hubbard)
December 7, 2009, 11:20pm
7
I now get:
8343 dir="/home/websites/mysource_matrix/data/file_repository"
I am thinking this is a good thing. :)
Thanks for the help, you were right, I did use . instead of the full system path. My bad, but thank you for the help!
dschoen
(David Schoen)
December 7, 2009, 11:54pm
8
[quote]
Thanks for the help, you were right, I did use . instead of the full system path. My bad, but thank you for the help!
[/quote]It's all right, I only guessed that because I made the same mistake at some point