Forem's main branch is seeing the same thing (postcss processing fails) - it doesn't look like it's limited to your setup (but docker requiring the asset compilation to succeed might be blocking you in ways it's not blocking us).
I believe this parse error you're seeing in the postcss_error.log happens after all the css files are generated (it's a post-processing step to handle backwards compatibility with browsers, among other things). But if you're blocked merging/updating that's a problem. One "work-around" in the meantime while we get this sorted would be to edit the package.json file's "postcss" script to not try to run on the files (the assets:precompile css files would be available, but not postprocessed), something like "postcss": "postcss --version", is enough to get it passing again (while not fixing anything).
However, if it's back to working for you (you reported that below) I would not do anything in the meantime.
I am an Engineering Physics graduate from IIT Guwahati, but merely not restricted to Physics itself. In the past few years, I involved in many Cybersecurity blogging and now on Open-source.
I am an Engineering Physics graduate from IIT Guwahati, but merely not restricted to Physics itself. In the past few years, I involved in many Cybersecurity blogging and now on Open-source.
Yeah thats exactly what i was doing, after the docker-compose up -d all seems to be fine however when enter the app there are some css missing and tried to recreate but got the issue with that specific css.
I also tried removing the assets folder but getting the same error as well.
I am an Engineering Physics graduate from IIT Guwahati, but merely not restricted to Physics itself. In the past few years, I involved in many Cybersecurity blogging and now on Open-source.
Ok, I'm not sure how to recreate this in my own development instance, but I can sure suggest you a thing.
Hard reset
Yes, I really mean it.
As you are in development insatnce, there is no need to worry of anything. You can remove everything and start everything new in 5 minutes and within 30minutes you willl have a new insatce.
But if you have configured something and you need to take backup of them, which is not an adviceable thing to do have in development instances. But there is a way for you to backup. There are many tutorials in youtube in how to backing up and restoring a something.dump(a postgress backup file). Follow with one of them and store your data. But I'm not sure how it will work, if you are not using s3 as storage.
I am an Engineering Physics graduate from IIT Guwahati, but merely not restricted to Physics itself. In the past few years, I involved in many Cybersecurity blogging and now on Open-source.
Thanks Akhil! I am going to debug more on the weekend to see what could be the issue, yeah if its no other way I will do a hard reset. I have backup of the database so just need to restore in the volume of the postgress docker. Will let you know my findings! thanks again for all the help your tutorials rocks!
I am an Engineering Physics graduate from IIT Guwahati, but merely not restricted to Physics itself. In the past few years, I involved in many Cybersecurity blogging and now on Open-source.
Ohh that explain why in my instance was getting slower after 3 or 4 days of restarting it. Thanks Akhil.
I am having an issue merging forem update since last week, there is an issue with one css and i am not able to recreate the assets :( .
Forem's main branch is seeing the same thing (postcss processing fails) - it doesn't look like it's limited to your setup (but docker requiring the asset compilation to succeed might be blocking you in ways it's not blocking us).
I opened an issue about this (and am actively working to resolve the situation)
github.com/forem/forem/issues/14052
I believe this parse error you're seeing in the postcss_error.log happens after all the css files are generated (it's a post-processing step to handle backwards compatibility with browsers, among other things). But if you're blocked merging/updating that's a problem. One "work-around" in the meantime while we get this sorted would be to edit the package.json file's "postcss" script to not try to run on the files (the assets:precompile css files would be available, but not postprocessed), something like
"postcss": "postcss --version",
is enough to get it passing again (while not fixing anything).However, if it's back to working for you (you reported that below) I would not do anything in the meantime.
Can I know your setup and the issue you are using and facing now, if I know somethinf about it, I can help you fix it.
Thanks Akhil! The error is that after merging the changes from forem branch, i tried to recreate the assets with:
However there is an error and is creating a file called: postcss_error.log and the error seems to be on a css file:
Before this I was making merge every 3 or 4 days without and issue, but since last week i got the error.
So, I suppose you are using Forem in development on VPS suing docker? (If this is not the case, let me know)
If this is the case, you can try these to forcefully stop all the services and start services with the updated code.
docker-compose down
git push origin main
docker-compose up -d
(wait for a while, as sidekiq and web workers are loading in background)Yeah thats exactly what i was doing, after the docker-compose up -d all seems to be fine however when enter the app there are some css missing and tried to recreate but got the issue with that specific css.
I also tried removing the assets folder but getting the same error as well.
Ok, I'm not sure how to recreate this in my own development instance, but I can sure suggest you a thing.
As you are in development insatnce, there is no need to worry of anything. You can remove everything and start everything new in 5 minutes and within 30minutes you willl have a new insatce.
But if you have configured something and you need to take backup of them, which is not an adviceable thing to do have in development instances. But there is a way for you to backup. There are many tutorials in youtube in how to backing up and restoring a
something.dump
(a postgress backup file). Follow with one of them and store your data. But I'm not sure how it will work, if you are not using s3 as storage.Remember to do this on caution, I'm suggesting this because of few reasons.
Thanks Akhil! I am going to debug more on the weekend to see what could be the issue, yeah if its no other way I will do a hard reset. I have backup of the database so just need to restore in the volume of the postgress docker. Will let you know my findings! thanks again for all the help your tutorials rocks!
Just for the update, today i just download the most updated changes to my branch and the issue was solved, didnt know what happened.
That is good to know. So, I'll take a note of it.
If any kind of
.css
error; replacing the fork will fix it.