lucifer, mayhem : mapping information is not part of the data dumps currently, despite the PR merged and deployed last week. I think it is because the background-tasks container is still running an old version. Is it safe to deploy the newest image to that container?
I think they key is to check to make sure no background tasks are currently scheduled. if there are none, we can restart. I just dont know how to check.
i'll have to look into it closer, when i have a moment i'll check your PR
texke joined the channel
d4rk-ph0enix has quit
d4rk-ph0enix joined the channel
gaurav993[m]1 joined the channel
gaurav993[m]1
I am having a problem with listenbrainz-server. I have followed the steps in the documentation and the website is running. But whenever I am running the ./develop.sh up command, the files in frontend/js/src are being recreated. When I am comparing the file content, it is the same but they are being shown as modified in my git status.
Also whenever I am making changes in the frontend, they are not being automatically compiled. On making changes, I have to close and run again the project to view changes.
It would be really helpful if someone could help me fix this issue.
mayhem[m]
how do you invoke develop.sh? I normally use "./develop.sh up web static_builder"
the static builder is what compiles all the JS/CSS stuff.
gaurav993[m]1
I am using "./develop.sh up" command only for running it at the beginning. Do I have to run "./develop.sh up web static_builder" in case I want to view the changes in the frontend after editing?
mayhem[m]
yes
gaurav993[m]1
Ok, thanks for the help.
d4rk-ph0enix has quit
d4rk-ph0enix joined the channel
mayhem[m]
ansh: monkey ok to have the LB meeting tomorrow?
monkey[m]
yes
<gaurav993[m]1> "I am using "./develop.sh up..." <- actually on, running ./develop.sh up should start all the containers, including the static_builder.
no8
no*
gaurav993: Check your docker logs for possible errors thrown by the static_builder container.
Also be aware you'll need to hard refresh the web page to see changes. I set my browser developer console to "disable cache when devtools is open"
(in devtools Preferences>Network)
gaurav993[m]1
<monkey[m]> "gaurav993: Check your docker..." <- I checked the console, there were no errors. Disable cache options is already on. The problem is whenever i am making changes in frontend code, there were no changes in the websites, nor in the console.
monkey[m]
There should definitely be some ouput from docker containers in your terminal
Check that and see if static-builder throws an error
ansh[m]
<mayhem[m]> "ansh: monkey ok to have the LB..." <- Yes
gaurav993[m]1
monkey[m]: The console showed 0 errors and 27 warnings when I first ran the ./develop.sh up command. On checking static-builder logs in docker, there is no changes in it on making changes in frontend code.
mayhem[m]
lucifer: monkey ansh LB meeting tomorrow at 1600 UTC then?
(normal time for it, just on wednesday)
monkey[m]
gaurav993[m]1: That is suspicious. Check where the last line of output from static_builder, and if it is about the container exiting, something is going wrong.
gaurav993[m]1
monkey[m]: The last line was webpack.Progess 100% and no changes since then. I think the changes made in frontend are not being detected.
monkey[m]
could you try another file in src, maybe a .tsx file you haven't touched yet, and make an obvious change then check the logs, just to be certain
If still no change detected, then maybe there is an issue with docker or permissions or something like that.
gaurav993[m]1
monkey[m]: still no changes.
monkey[m]
As a backup, you could run webpack locally. It's all the static_builder does
For that you'll want node installed, run npm install to install dependencies, then run npm run build
gaurav993[m]1
<gaurav993[m]1> "I am having a problem with..." <- Btw as I have mentioned here, on running static-builder, all the files in frontend are being recreated. I thought maybe it was due to this issue.
monkey[m]
the files in src should definitely not be recreated. the dist folder however gets recreated
gaurav993[m]1
monkey[m]: Yes, this is what I was doing yesterday. I was running npm run build:dev command first, and then "./develop.sh up" command. In this cases the changes were being showed. But after sometimes it just automatically stops.
monkey[m]: the dist folder is created.
monkey[m]
oof, that would possibly be messy
So, if you want to run webpack on your machine, you can't run it at the same time in docker, so you'll have to comment out static_builder in the docker-compose file.
That being said, if I were you i would try starting from scratch in another folder and trying the docker way (using develop.sh only, not running webpack manually) again to check
gaurav993[m]1
monkey[m]: I will try it once more. But I had already tried this the first time I tried to run the project. I have been getting this problem of frontend files being recreated and changes in code not being reflected on the website for a week. Since 2-3 days, I been trying to run static builder manually along with develop.sh so it made it a bit easier.
monkey[m]
Did you make any changes to the docker-compose files prior to that? I don't understand how the frontend source file could be rewritten
gaurav993[m]1
* I will try it once more. But I had already tried this the first time I tried to run the project. I have been getting this problem of frontend files being recreated and changes in code not being reflected on the website for a week so i had to run develop.sh again and again. Since 2-3 days, I been trying to run static builder manually along with develop.sh so it made it a bit easier but it also stops working after making 2-3
changes in the code.
monkey[m]
We do modify some files when webpack autoformats, for example, but it would not recreated all the files
gaurav993[m]1
monkey[m]: not made any changes.
monkey[m]
Which OS are you on? And which flavour and version of docker are you using?
gaurav993[m]1
Windows, Docker version is 27.4.0. I have been using docker desktop application.
monkey[m]
I wonder if this could be a permissions issue with docker desktop, I've seen similar issue before
mayhem[m]
who here is using the codacity app for github?
s/codacity/codacy/
gaurav993[m]1
<monkey[m]> "I wonder if this could be a..." <- Just tried everything by reinstalling docker, cloning a new repo, and following all the steps from start. Still the same issue. Seems there is some problem with my pc, will search a bit more about this.