• Resolved smilyanp

    (@smilyanp)


    I have read few of the threads on here, but non of them could resolve my issue. The closest probably is: http://wordpress.org/support/topic/getting-error-when-trying-to-create-package

    However, the errors I receive are a bit different (i have changed the default directory structure for security reasons):

    Fatal error: Uncaught exception 'RuntimeException' with message 'DirectoryIterator::__construct(/public_html/website/blog/wp-includes/js/tinymce/utils) [<a href='directoryiterator.--construct'>directoryiterator.--construct</a>]: failed to open dir: Too many open files' in /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php:108 Stack trace: #0 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php(108): DirectoryIterator->__construct('/public_html/website...') #1 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/public_html/website...') #2 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/public_html/website...') #3 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php(117): DUP_Archive->runDirStats('/public_html/website...') #4 /public_html/website in /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php on line 108

    If I skip the scanning step and continue to the “Build” one, the following error appears:

    Build Interrupt
    The current build has experienced an issue.
    Please try the process again. If the problem persists please visit the support page.

    Server Status: 200 -OK
    Error Message:
    DUPLICATOR ERROR: Please see the duplicator log file.

    Here’s a snippet from the log file:

    !!!DUPLICATOR ERROR!!!
    Please Try Again! If the error persists please see the Duplicator 'Support' link.
    ---------------------------------------------------------------------------------
    MESSAGE:
    Runtime error in package.archive.zip.php constructor.
    DETAILS:
    Exception: exception 'RuntimeException' with message 'DirectoryIterator::__construct(/public_html/website/blog/wp-content/uploads/2014/04) [<a href='directoryiterator.--construct'>directoryiterator.--construct</a>]: failed to open dir: Too many open files' in /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php:140
    Stack trace:
    #0 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php(140): DirectoryIterator->__construct('/public_html/website/...')
    #1 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php(152): DUP_Zip::recurseDirs('/public_html/website/...')
    #2 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php(152): DUP_Zip::recurseDirs('/public_html/website/...')
    #3 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php(152): DUP_Zip::recurseDirs('/public_html/website/...')
    #4 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php(152): DUP_Zip::recurseDirs('/public_html/website/...')
    #5 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.zip.php(84): DUP_Zip::recurseDirs('/public_html/website/...')
    #6 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.archive.php(49): DUP_Zip::Create(Object(DUP_Archive))
    #7 /public_html/website/blog/wp-content/plugins/duplicator/classes/package.php(130): DUP_Archive->Build()
    #8 /public_html/website/blog/wp-content/plugins/duplicator/classes/task.php(18): DUP_Package->Build()
    #9 /public_html/website/blog/wp-content/plugins/duplicator/views/actions.php(12): DUP_Task->Create()
    #10 /public_html/website/blog/wp-includes/plugin.php(470): duplicator_package_create('')
    #11 /public_html/website/blog/wp-admin/admin-ajax.php(82): do_action('duplicator_pack...', Array)
    #12 {main}

    I am using WordPress Version 3.9.1 and Duplicator Version 0.5.2.
    PHP Version on the server 5.4.28.

    Any help will be appreciated! I love this plugin and it has saved me a lot of time and headaches, but no I can’t use it. I really hope to rectify this problem.

    Please ask if you need any more information.

    https://wordpress.org/plugins/duplicator/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Try the Developer Version 0.5.3 and let me know if that helps…

    Thread Starter smilyanp

    (@smilyanp)

    Hi, thank you for the response. Where can I find this developer version?

    Thread Starter smilyanp

    (@smilyanp)

    Thread Starter smilyanp

    (@smilyanp)

    I have tried the developer version. The initial scan errors do not appear, but the actual build seems to timeout. Before the build however I can see the following warnings:

    Total Size:

    Size: 1.14GB | File Count: 2,188 | Directory Count: 258

    Total size reprents all files minus any filters that have been setup. The current thresholds that trigger warnings are 150MB for the entire site and 4MB for large files.

    Large Files:

    Large files such as movies or other backuped data can cause issues with timeouts. The current check for large files is 4MB per file. If your having issues creating a package consider excluding these files with the files filter and manually moving them to your new location.

    File 0: blog/wp-admin/core.28979 [93.68MB]
    File 1: blog/wp-admin/core.5963 [93.55MB]
    File 2: blog/wp-admin/core.23370 [93.68MB]
    File 3: blog/wp-admin/core.22769 [95.27MB]
    File 4: blog/wp-admin/core.1058 [93.92MB]
    File 5: blog/wp-admin/core.1142 [93.88MB]
    File 6: blog/wp-admin/core.22408 [95.06MB]
    File 7: blog/wp-admin/core.20716 [93.68MB]
    File 8: blog/wp-admin/core.9175 [91.72MB]
    File 9: blog/wp-admin/core.3993 [93.68MB]
    File 10: huma/blog/BACKUP 2/20140321_huma_532b8268373e43285140321000600_archive_backup2.zip [62.13MB]
    File 11: blog/BACKUP 3 - After Home page upgrade/20140414_huma_534c57bbe7a738315140414214843_archive.zip [123.79MB]

    Do you have any suggestions?

    Hey @smilyanp,

    Checkout this section on the FAQs I believe it may help with this issue:
    -> Browse to: http://lifeinthegrid.com/duplicator-faq
    -> Find section: “3. Troubleshoot=> Timeout Issues”

    Hope that helps!

    Thread Starter smilyanp

    (@smilyanp)

    Hey @lifeinthegrid, I have talked with my server admins, and they have increased the max_execution_time for my account.

    Again I tried to generate the archive, but it gave me the error again.

    Do you have any other ideas/suggestions?

    Thanks for the help so far!

    If PHP has a high timeout then you might look at the timeout for your web server (normally Apache) and make sure your database doesn’t kill long connection requests.

    Thread Starter smilyanp

    (@smilyanp)

    I have found a number of large core.#### files that make my total website result in 1GB of size. I am talking to my host to see why this has happened.

    Have you experienced this before?

    Thread Starter smilyanp

    (@smilyanp)

    Yes! Removing/solving the problem with the extra-large core.#### files solved the backup problem as well.

    Thank you for your responsiveness and help. I hope this thread will be useful for others as well if they come to the same problem.

    All the best,
    Smilyan

    Good to hear, thanks for the update!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error when trying to create a package’ is closed to new replies.