New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
staticpublisher queued job fails in some circumstances #146
Comments
Hi Lars,
There is a difference than via composer install, I don't know why... NEXT We need a little fix:
After that we need some fix to .htaccess in /public
I don't know it's a best solution but works – I guess, I didn't tests this so much yet. PS. In my opinion, it should work OUT OF THE BOX, but doesn't. |
@guci0 as I mentioned in your issue I have not been able to reproduce this issue out of the box, and need more information as requested in that issue. @lars-lemon8 I haven't been able to reproduce your scenario either. I do note that you say "Running in CLI" but then further down you say "If I try to run publisher tasks in the CMS jobs UI itself" so it's not clear whether you're experiencing failures when running the task or processing the queue, and whether you're doing this in the UI or via the task. I have tried all of these scenarios though from a fresh install and can't reproduce your issue. Can you please provide a clear set of step-by-step instructions for how to reproduce this from a fresh install? Please include any composer commands and custom code necessary to reproduce this. |
@GuySartorelli , thanks, sure , will do ! Yeah, everything is in CLI , my remark about the CMS UI was meant as a sidenote , and is confusing, sorry about that. |
@GuySartorelli 1> Setup SS
2> Install static publisher
3> Tests (all done from browser, no CLI)
4> CLI tests
I think this is the same issue @guci0 was trying to explain (not being able to do a full build). Please let me know what other test scenario's I can run through or information I can provide to track this thing down. ;-) |
I have the same error |
I'm already testing on a live server, now there was a problem of access rights (chmods) - files are locked. /cache and subfolders are fine 775, but .htmls – 600. Hmmm... |
@guci0: It feels quite unlikely your file permission problems have anything to do with this module. I have also been testing #149 , it fixes this error for me:
A new problem arises however; the StaticCacheFullBuildJob now gets stuck in 'waiting' after this message: However, the funny thing is that it did publish all pages correctly: Increasing the memory limit does not seem to matter (same error, but higher mem usage), it does the job correctly, but never finishes successfully. |
Okay. New version is released. The results are entirely different now. It got a lot better, but still refuses to complete a StaticCacheFullBuildJob. Closing this ticket for now. Will spin up a new one with a clean test scenario if I have the time. |
Running into problems with SS4.11 / Fluent V6 in combination with the Static Publisher.
Situation:
Run StaticCacheFullBuildTask --> added to the queue for immediate processing
Run ProcessJobQueueTask --> Argument #1 ($value) must be of type Countable|array, null given {"exception":"[object] (TypeError(code: 0): count(): Argument #1 ($value) must be of type Countable|array, null given at /data/site/vendor/silverstripe/staticpublishqueue/src/Job.php:102)"
When I re-publish a page in the CMS, it gets added to the queue and publishes correctly if I process the queue again.
If I try to run publisher tasks in the CMS jobs UI itself , the task runs, but takes a loooooong time and kills the session. Will have to look at the logs to see what is happening.
The text was updated successfully, but these errors were encountered: