Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

"Bundle generation in progress, please wait!" during forever. Send only part of the files to the bucket. #45

Open
leandrogrando opened this issue Apr 15, 2022 · 2 comments

Comments

@leandrogrando
Copy link

When using the "Generete & deploy" action, the plugin correctly generates the static files in the selected local folder (I could verify this by accessing via FTP or even the URL of the files). In Simple static > Generate, I can track the status and there it also shows that the files were generated correctly, in the log it says "Syncing files to S3" and in the bucket on S3 I can verify that most of the files were sent, but not all.

Extra details:

  • I have the cron configured to run via UNIX (And I disabled the default cron in wp-config.php)
  • PHP version 7.4
  • I've already tested it with version 2.0.7 and 2.1 of the plugin
  • I repeated the installation and testing more than once, waiting hours to see if the process ended later, but I could see that it only runs for the first few minutes and then stops
  • I can't cancel/retry the process through the UI, I always need to restore a database backup to be able to repeat the process
  • Apparently no error log is generated on PHP errors

Can anyone help me with this?

Thanks in advance!

@HammenWS
Copy link
Member

@leandrogrando How many pages were generated? And are media uploads included? We only tested this for sites up to around ~5000 pages. If you are not using some media offloading plugin like WP Offload Media, I highly recommend it.

I can't cancel/retry the process through the UI, I always need to restore a database backup to be able to repeat the process

I have noticed that the shutdown handler when errored deploys in not working correctly. That is why some settings are not restored in the database that would allow you to start generating again. It's on my list to debug this annoying bug.

@leandrogrando
Copy link
Author

Hey @HammenWS. Thanks for your response!

Media are being included yes. Only 25 pages were generated, but with 2500 files.

Removing PHP's max_execution_time limitation (or increasing its value) seems to solve the problem. I believe that the ideal would be for the plugin to generate an exception when reaching this limit, or to execute the operation in batches, or even to have documented about this limitation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants