Page 1 of 1
Verify Installation Integrity
Posted: Thu Nov 20, 2008 11:40 am
by joey
Hiya how are you all?
iv just cliked on this link on my administration menue,
'Verify Installation Integrity'
and the result im getting is that:
* htmlarea/plugins/HtmlTidy/html-tidy-config.cfg corrupt or modified: failed verification
* htmlarea/plugins/PreserveScripts/php.svg corrupt or modified: failed verification
* htmlarea/plugins/SpellChecker/spell-check-logic.cgi corrupt or modified: failed verification
Can you please tell me how i can resolve this issue please thankyou
Re: Verify Installation Integrity
Posted: Thu Nov 20, 2008 1:12 pm
by yellowled
joey wrote:'Verify Installation Integrity'
and the result im getting is that:
* htmlarea/plugins/HtmlTidy/html-tidy-config.cfg corrupt or modified: failed verification
* htmlarea/plugins/PreserveScripts/php.svg corrupt or modified: failed verification
* htmlarea/plugins/SpellChecker/spell-check-logic.cgi corrupt or modified: failed verification
Posting your exact s9y version number would probably help. This looks like a 1.4-beta which still thinks you're using htmlarea as the WYGIWYS editor although Xinha should be the new default WYGIWYS editor in that version ...
YL
Posted: Thu Nov 20, 2008 1:39 pm
by joey
This is the exact version i currently have installed:
Powered by Serendipity 1.4-beta1 and PHP 5.2.6
what i did was download the new version from the site, and uploaded on my server and used my old mysql database to connect and complete the installation.
I know what i was supposed to do was download the new version and upload over the current version i had already installed, i did that but i kept on getting error messages, so i decided to go a for a brand new install using the old database.
could this be the reason why im getting this error message in the Verify Installation Integrity check?
Posted: Thu Nov 20, 2008 3:14 pm
by yellowled
joey wrote:could this be the reason why im getting this error message in the Verify Installation Integrity check?
I'd say yes. But I'd also wait for Garvin to check on this
YL
Posted: Thu Nov 20, 2008 4:09 pm
by garvinhicking
Hi!
You definitely need to check the files that the verification programm tells you are bad. Those definitely differ from the ones given to you in the usual serendipity installation archive! Make sure your FTP upload doesn't give you errors for those files and maybe set BINARY mode for the transfer.
If all fails, delete the checksums.inc.php file from your s9y base directory, this will bypass the verification steps.
By reinstalling serendipity, you must now make sure that all your proper settings are still intact, and it might have created new author groups and duplicate plugnins.
Regards,
Garvin
Posted: Wed Dec 31, 2008 1:31 pm
by antiphasis
Hi there,
as for the 1.4 b1, the current release throws some checksum errors.
I've downloaded the tar.gz to the server, done a md5sum -- all fine, and extracted the content with tar xzf serendipity-1.4.tar.gz - no errors.
Calling the admin interface, it announces some files having an error with the md5
* include/db/mysql.inc.php corrupt or modified: failed verification
* include/admin/templates.inc.php corrupt or modified: failed verification
* include/admin/images.inc.php corrupt or modified: failed verification
* include/functions_rss.inc.php corrupt or modified: failed verification
* bundled-libs/Smarty/libs/Smarty_Compiler.class.php corrupt or modified: failed verification
The latest file - changed as announced, just to stay up-to-date, isn't a problem, but for the other files - they were announced as bad when i'd updated from 1.3 to 1.4b1, too.
Renaming or deleting the checksums.inc.php works, so the blog is still running.
So what is the problem?
Posted: Wed Dec 31, 2008 2:47 pm
by garvinhicking
Hi!
Could it be that those files were not updated with the most recent ones, maybe due to file permissions? Usually if your md5sum matches the downloaded archive, all files should use the checksums specified in the s9y file.
Can you tell me your md5sums of the files only that you mentioned? Then I can compare them to the official ones...?
Regards,
Garvin
Posted: Wed Dec 31, 2008 3:37 pm
by antiphasis
Hi Garvin, thanks for the fast reply.
Here are some more informations:
include/db/mysql.inc.php
Filedate : 2008-03-25 and size : 12635 for both archive and installed is the same,
installed md5 : 76283c13a6ae14aee37ed7515704028b
archive md5 : 3e4bca775223f32d173e163940cb7e51
checksums.inc.php : 15645135fe99a76419e19975db74b252
diff:
Code: Select all
1c1
< <?php # $Id: mysql.inc.php 2199 2008-03-25 14:04:06Z garvinhicking $
---
> <?php # $Id: mysql.inc.php 2198 2008-03-25 14:04:06Z garvinhicking $
include/admin/templates.inc.php
-Filedate archive : 2008-04-16, size 8792, md5sum : ef075a400367982b95cfd27afc625974
-Filedate installed : 2008-04-21, size 8841, md5sum : 1ad4a8c68e62aa6c0e09cf4f330fe756
checksums.inc.php : 130fa58997e99fbfe32ea8fef6a027c9
diff installed archive:
Code: Select all
1c1
< <?php # $Id: templates.inc.php 2258 2008-04-21 12:17:39Z garvinhicking $
---
> <?php # $Id: templates.inc.php 2250 2008-04-16 11:41:29Z garvinhicking $
72c72
< if ($serendipity['POST']['adminAction'] == 'configure' && serendipity_checkFormToken()) {
---
> if ($serendipity['POST']['adminAction'] == 'configure' && serendipity_checkFormToken()) {
80d79
< echo serendipity_setformToken();
82a82
> echo serendipity_setFormToken();
200,203d199
< ?>
< <?php
< /* vim: set sts=4 ts=4 expandtab : */
< ?>
/include/admin/images.inc.php
archive filedate : 2008-04-09, size : 38322, md5 d3303be58e67cb673bf4acd18b854022
installded filedate : 2008-04-16, size 36149, md5 35cfe3d6d42e7835ea7e17f7fb578a39
checksums.inc.php : c5cb1a30bba1587b43a1517bc40b8082
diff :
Code: Select all
1c1
< <?php # $Id: images.inc.php 2231 2008-04-16 10:11:12Z garvinhicking $
---
> <?php # $Id: images.inc.php 2205 2008-04-09 01:57:10Z slothman $
49a50,76
> echo '<div class="warning"><em>' . PERM_DENIED . '</em></div>';
> break;
> }
>
> // Make the form to actually do sync with deleting or not
> $n = "\n";
> $warning = preg_replace('#\\\n#', '<br />', WARNING_THIS_BLAHBLAH);
> echo '<div class="serendipityAdminMsgNote">' . $warning . '</div>';
> echo ' <form method="POST" action="serendipity_admin.php?serendipity[adminModule]=media&serendipity[adminAction]=doSync">' . $n;
> echo ' <p>' . $n . ' <fieldset>' . $n;
> echo ' <legend>' . SYNC_OPTION_LEGEND . '</legend>' . $n;
> echo ' <input type="radio" name="serendipity[deleteThumbs]" value="no" checked="checked" id="keepthumbs" />' .$n;
> echo ' <label for="keepthumbs">' . SYNC_OPTION_KEEPTHUMBS . '</label><br />' . $n;
> echo ' <input type="radio" name="serendipity[deleteThumbs]" value="check" id="sizecheckthumbs" />' . $n;
> echo ' <label for="sizecheckthumbs">' . SYNC_OPTION_SIZECHECKTHUMBS . '</label><br />' . $n;
> echo ' <input type="radio" name="serendipity[deleteThumbs]" value="yes" />' . $n;
> echo ' <label for="deletethumbs">' . SYNC_OPTION_DELETETHUMBS . '</label><br />' . $n;
> echo ' </fieldset>' . $n . ' </p>' . $n;
> echo ' <input name="doSync" value="' . CREATE_THUMBS . '" class="serendipityPrettyButton input_button" type="submit" />' . $n;
> echo ' <a href="serendipity_admin.php" class="serendipityPrettyButton">' . ABORT_NOW . '</a>' . $n;
> echo '</form>';
> break;
>
> case 'doSync':
> // I don't know how it could've changed, but let's be safe.
> if (!serendipity_checkPermission('adminImagesSync')) {
> echo '<div class="warning"><em>' . PERM_DENIED . '</em></div>';
61c88,100
< $i = serendipity_syncThumbs();
---
> $deleteThumbs = false;
> if (isset($serendipity['POST']['deleteThumbs'])) {
> switch ($serendipity['POST']['deleteThumbs'])
> {
> case 'yes':
> $deleteThumbs = true;
> break;
> case 'check':
> $deleteThumbs = 'checksize';
> break;
> }
> }
> $i = serendipity_syncThumbs($deleteThumbs);
functions_rss.inc.php
archive filedate 2008-03-17, size 7673, md5sum c2b1b257a5dd278a37a43794b2ce41ea
installed filedate 2008-03-17, size 7685, md5sum c3208b7322c480f34d592dbd16f0d223
checksums.inc.php : 74fe5be183d5e7071c992751c6ebcc02
diff :
hth, Marcus
Posted: Wed Dec 31, 2008 3:41 pm
by garvinhicking
Hi!
What do you diff those files against? To me it sounds like you REALLY have different files on your webspace than you should have.
Regards,
Garvin
Posted: Fri Jan 02, 2009 7:49 pm
by antiphasis
Hi Garvin, sorry for the late reply.
First: i am diffing the installed version against the version from the archive, which still matches the given md5sum.
Second: For example take a look at the mysql.inc.php. The version doesn't match the md5-check. I took the checksums.inc.php AND the mysql.inc.php fresh out of the archive - still no match at all.
Same for templates.inc.php,images.inc.php and functions_rss.inc.php.
I've checked it once more
Code: Select all
[host]$ md5sum images.inc.php templates.inc.php functions_rss.inc.php mysql.inc.php
d3303be58e67cb673bf4acd18b854022 images.inc.php
ef075a400367982b95cfd27afc625974 templates.inc.php
c2b1b257a5dd278a37a43794b2ce41ea functions_rss.inc.php
3e4bca775223f32d173e163940cb7e51 mysql.inc.php
[host]$ mc
[host]$ cat checksums.inc.php
'include/db/mysql.inc.php' => '15645135fe99a76419e19975db74b252',
'include/admin/images.inc.php' => 'c5cb1a30bba1587b43a1517bc40b8082',
'include/functions_rss.inc.php' => '74fe5be183d5e7071c992751c6ebcc02',
'include/functions_images.inc.php' => '812e0e740e6c4cb0a855da7bcdd8feb3',
I've trimmed down the checksums.inc.php output.
hth, Marcus
Posted: Fri Jan 02, 2009 8:22 pm
by garvinhicking
Hi!
First: i am diffing the installed version against the version from the archive, which still matches the given md5sum.
You know that if you diff against the archive version this means your installed version is DIFFERENT than the archive version, right? Thus, you are simply not extracing the archive properly, check your file permissions and use the "-v" flag for "tar -xvzf".
The md5sum is built for the .tar.gz release, it is unrelated to the files on your server.
Second: For example take a look at the mysql.inc.php. The version doesn't match the md5-check. I took the checksums.inc.php AND the mysql.inc.php fresh out of the archive - still no match at all.
The md5 sum provided inside the checksums.inc.php file is NOT the same like as the md5sum tool reports. The md5 checksums.inc.php file uses checksums MINUS all linebreaks, that's why they all differ.
Regards,
Garvin
Posted: Fri Jan 02, 2009 10:33 pm
by antiphasis
garvinhicking wrote:Hi!
You know that if you diff against the archive version this means your installed version is DIFFERENT than the archive version, right?
Right. That is the point that makes me wonder....
Thus, you are simply not extracing the archive properly, check your file permissions and use the "-v" flag for "tar -xvzf".
YMMD
garvinhicking wrote:The md5sum is built for the .tar.gz release, it is unrelated to the files on your server.
I know. I simply annotated that to make sure that the archive isn't corrupted.
Second: For example take a look at the mysql.inc.php. The version doesn't match the md5-check. I took the checksums.inc.php AND the mysql.inc.php fresh out of the archive - still no match at all.
garvinhicking wrote:
The md5 sum provided inside the checksums.inc.php file is NOT the same like as the md5sum tool reports. The md5 checksums.inc.php file uses checksums MINUS all linebreaks, that's why they all differ.
So you are telling me that there is no possibility to check the validity with simple shell-action? Sorry, made my day again. But ok, got it. Hooked up the python and hacked a lil' script.
btw: Happy new year!
Posted: Thu Jan 15, 2009 7:22 pm
by judebert
Hi! As the architect of this capability, I just wanted to chime in. Yes, it's not a normal MD5 checksum, because it can't be. If files were uploaded via FTP in ASCII mode, characters could have been changed. These changes wouldn't necessarily make the files corrupt, though.
The checksum algorithm Serendipity uses is designed to handle FTP-transferred files. But it sounds like you already figured that out and wrote some Python around it!
Congratulations, and if you have any troubles, just ask again.