Support

Site Restoration

#22438 Extraction fails with fseek() expects parameter 1 to be resource, line 2097

Posted in ‘Site restoration’
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

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by on Wednesday, 13 May 2015 17:20 CDT

network211
I am trying to restore a corrupted site.

I have tried with 2 different site*.jpa files, done 2 months apart.

The Restore process fails at the extraction stage. I get php error:

 fseek() expects parameter 1 to be resource, boolean given in /<myfolders>/_kickoff.php on line 2097


As I noted in the fields, I am not sure which version of Akeeba I have.

tampe125
Akeeba Staff
Hello,

I suspect there are some files missing.
Is your backup a multipart archive? If so, are you 100% sure you uploaded all the parts?
Can you please try to edit the kickstart file and remove the double slash from the line containing define('KSDEBUG', 1);

A new file named debug.txt will be created, can you please try to extract everything again and attach here the debug file?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

network211
I ran the script on 2 different jpa files.

The results were the same:

Preparing to scan archives
- Found archive site-asiaslittleones.org-20150206-160422.jpa
Total archive parts: 1
Preparing to read archive header
Opening the first part
Current part is -1; opening the next part
Opening file site-asiaslittleones.org-20150206-160422.jpa
Could not open file - crash imminent
Could not open the first part

tampe125
Akeeba Staff
Most likely you have a permission issue, please follow the instructions contained in this page of the manual and try again.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

network211
You were correct about the permissions. I set the html folder and now Akeeba can write.

However, the extract process still does not complete.

It runs for a few percent of the process and hangs without any indication. I have posted the top portion of the debug.txt file below. (It continues with similar entries.)

This is a shared host. The site has about 450Mb free space. The server timeout is 90. I tested with Hybrid and FTP. Results are the same.

This is amazing. We have used Akeeba backup/restore regularly with no issues.

Preparing to scan archives
- Found archive site-asiaslittleones.org-20150401-001643.jpa
Total archive parts: 1
Preparing to read archive header
Opening the first part
Current part is -1; opening the next part
Opening file site-asiaslittleones.org-20150401-001643.jpa
Header data:
Length              : 19
Major               : 1
Minor               : 2
File count          : 14959
Uncompressed size   : 127741158
Compressed size   : 75734581
AKAbstractUnarchiver::_run() - Reading file header
Reading file signature
AKAbstractUnarchiver::_run() - Preparing to extract /home/asiaslit/public_html/kickstart-HJ16NL
AKAbstractUnarchiver::_run() - Processing file data
AKAbstractUnarchiver::_run() - Calling post-processing class
AKAbstractUnarchiver::_run() - Finished extracting file
AKAbstractUnarchiver::_run() - Reading file header
Reading file signature
AKAbstractUnarchiver::_run() - Preparing to extract /home/asiaslit/public_html/kickstart-QTw22p
AKAbstractUnarchiver::_run() - Processing file data
AKAbstractUnarchiver::_run() - Calling post-processing class
AKAbstractUnarchiver::_run() - Finished extracting file
AKAbstractUnarchiver::_run() - Reading file header
Reading file signature
AKAbstractUnarchiver::_run() 

tampe125
Akeeba Staff
Can you please zip and attach the full log here?
What's the error you are receiving during the extraction?
Does it always stop at the same file?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!