Support

Admin Tools

#11215 Backup logfiles gone after PHP-scan

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Wednesday, 22 February 2012 15:29 CST

user41123
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: 1.5.25
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: 2.2.0 Pro

Description of my issue:

Hi Nicholas,

After I performed my first PHP-Scan in Admin Tools Pro 2.2.0 I discovered a short time later that all my Akeeba backup logs where erased from the backend, except the newest one.
I wasn'shure what caused the erase but after a few backups (and new logs) I performed a new PHP-scan today and again... all backup logfiles are erased, except the newest one. I use Akeeba Backup 3.3.13 Core.

Is this normal behaviour after a PHP-scan or do I have to look in another direction?
I'm absolutely shure that I didn't erase the logfiles myself and the configuration settings are default (keep 50 logfiles, overwrite the oldest after 50)

Greetings,

Paul

nicholas
Akeeba Staff
Manager
Hello Paul,

If by "log files" you do mean log files, those in your backup output directory, this shouldn't happen because the PHP file scanner uses the temporary directory for its output, which is not where you should put your Akeeba Backup archives.

If by "log files" you mean "backup records", what you see in Akeeba Backup's Administer Backup Files page, this is not normal and should have never happened.

Which one of the two do you mean?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager
I just installed a new Joomla! 1.5.25 site and installed Akeeba Backup and Admin Tools on it, using the default settings. I took three backups, then I ran the PHP file scanner. Niether the log files nor the backup records were removed. Please try logging out of your site, clear your browser cache, close your browser then log back into your site's back-end and take a look at the Administer Backup Files page. Are any records missing now?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user41123
Hi Nicholas,

I mean the list with the backup records in the Akeeba console, they are all gone except the last one.
I followed your advice and cleared my browsercache but there's still only one record (the newest) left.

Greetings, Paul

nicholas
Akeeba Staff
Manager
The only thing which could've explained this is if you were using the Akeeba Backup Lazy Plugin and a backup was underway when the scan started. Is it possible that this may have happened?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user41123
Hi Nicholas,

I have never enabled the lazy plugin and double-checked it again: it's disabled.
I also did the same test as you: I made a new backup so I had two backup records in Akeeba. After that I downloaded the JPA-file with Filezilla and removed the online version. I always do that to save webspace.
After that I performed a new PHP-scan and guess what: the backup record is gone, only the new one is left.

Greetings, Paul

nicholas
Akeeba Staff
Manager
How do you erase the backup file? Are you using the Delete or Delete Files button in Akeeba Backup's Administer Backup Files page? If so, which one of the two buttons do you use? Or do you delete it using FTP?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user41123
I erased the backupfile in Filezilla after downloading the JPA-file; with a right mouse click on the file and then "delete".
By the way: in that same Akeeba-folder there's still a file called "akeeba.backend.log" with the date of the last backup I performed a few minutes ago. The size of that file is more than 2 Mb so it has to contain more records than the one in Akeeba, I guess...

user41123
Nicholas,

What does this mean in almost the end of the log? (I removed the name of the website):

DEBUG |120222 21:24:45|Removing any old records with site-www.XXXXX.XX-20120222-212401.jpa filename
DEBUG |120222 21:24:45|1 records found
DEBUG |120222 21:24:45|Updating statistics with file sizes
DEBUG |120222 21:24:45|Total size of backup archive (in bytes): 78380765
DEBUG |120222 21:24:45|Loading post-processing engine object (none)
INFO |120222 21:24:45|Initializing post-processing engine
DEBUG |120222 21:24:45|1 files to process found
INFO |120222 21:24:45|Beginning post processing file /administrator/components/com_akeeba/backup/site-www.XXXXX.XX-20120222-212401.jpa
INFO |120222 21:24:45|Finished post-processing file /administrator/components/com_akeeba/backup/site-www.XXXXX.XX-20120222-212401.jpa
DEBUG |120222 21:24:45|Not removing processed file /administrator/components/com_akeeba/backup/site-www.XXXXX.XX-20120222-212401.jpa
INFO |120222 21:24:45|Post-processing has finished for all files
DEBUG |120222 21:24:45|----- Finished operation 2 ------
DEBUG |120222 21:24:45|----- Finished operation 3 ------

nicholas
Akeeba Staff
Manager
You continue to confuse me.

Let's see if I get this straight. After taking a full site backup you have an akeeba.backend.log file in your administrator/components/com_akeeba/backup directory. When you take a PHP File Change scan this file is deleted. Is this what you are trying to say? Even that, I can't replicate. The last backup's log file stayed in the backup output directory on yet another new site.

Yes, in the meantime I have created yet another site, did everything you said you did, the backup file records in the Administer Backup Files page are not deleted. I trashed that site and created yet another one, in a different server. Same story. Third server. Same story. Fourth server. Same story. Now I just feel I've wasted an hour of my life. There is no way I can do what you say you did and achieve the same results as what you describe. Nothing related to Akeeba Backup is deleted when I use Admin Tools PHP File Change Scanner.

In fact, there is no way Admin Tools' PHP File Change Scanner can remove, add or in any way alter the backup file records of Akeeba Backup, simply because the table names set up in the platform class in Admin Tools are different than those used in Akeeba Backup. If this ever happened, Admin Tools would not list the new scan in its interface. I assume that if this happened, you'd have told me. If this happened, the scan would have actually failed, but that's another story.

Code analysis and empirical testing shows that what you report can not be replicated. Nobody else has reported anything even close to what you're saying, I can not replicate it on any other server (not just test sites, but my own live sites too), therefore it's not a bug and I'm closing this ticket.

PS: These last lines you pasted are an excerpt of the backup log file and mean that the backup was finished, the backup record was updated with the total size of the backup archive, the "None" post-processing engine was loaded (therefore nothing will be uploaded to external storage), it's done processing the one and only archive part (which is to say, the None post-processing engine confirmed that it successfully did nothing to the one and only archive part) and that the None post-processing engine notified the Akeeba Engine that it should not automatically remove the backup archive. In other words this is exactly what you expect to see on a successful backup archive.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nicholas
Akeeba Staff
Manager
Oh, wait, I think I know what happened. My Admin Tools package used in testing is not the same as the one published on-line. I think I have published the wrong archive which may indeed produce the bug you describe, as the name of the table used for applying the obsolete count quotas is hardcoded.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user41123
Let's see if I get this straight. After taking a full site backup you have an akeeba.backend.log file in your administrator/components/com_akeeba/backup directory. When you take a PHP File Change scan this file is deleted. Is this what you are trying to say? Even that, I can't replicate. The last backup's log file stayed in the backup output directory on yet another new site.

Hi Nicholas,

Sorry that I'm confusing you, the file akeeba.backend.log is NOT deleted but the records in the Akeeba Backupconsole (the list with backups and dates).
I just found out that the akeeba.backend.log is the backup logfile and is overwritten everytime a backup is performed. I thought it also contains the records in the Akeeba console but that's my mistake.. sorry!

Also thanks for explaining the lines in the backup.log. I thought it meant that older records were deleted.

Hope you find out the cause for this weird issue.

Greetings, Paul

nicholas
Akeeba Staff
Manager
Yup, the problem was on my side, not your side. The package I have made available as 2.2.0 has this bug, indeed. Sorry. Please try using the latest dev release, rev8B803D5, from our dev releases repository. This is what I was using all along. Can you confirm that it fixes the problem you reported?

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user41123
Hi Nicholas,

Yes, I can confirm that. After installing rev8B803D5 I made a new backup, after that I performed a PHP-scan and checked the records in the Akeeba Console.. there a still 2 records so the DEV release solved my problem.

Thanks for your patience and sorry for my confusing explanations in this topic, Nicholas. I wished my English was a little better. ;-)

Greetings, Paul

nicholas
Akeeba Staff
Manager
Thank you for your feedback and sorry for my insistence.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!