plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

getting "Sprockets::FileNotFound in Home#dashboard" error suddenly on localhost

Open shubhscoder opened this issue 7 years ago • 43 comments

Suddenly I dont know what happened but I am unable to load any page on localhost because I am getting the above error.I have attached a screeshot of the error. Thank you so much!

error_load

Update

See below for yarn install and yarn update to resolve this

shubhscoder avatar Feb 18 '19 08:02 shubhscoder

@shubhscoder its the bootstrap file it specifies I haven't figured out how to fix it though. For me I can run my localhost but all my pushes to unstable fail

sashadev-sky avatar Feb 18 '19 09:02 sashadev-sky

Copying @cesswairimu's message from Gitter channel :

After pulling master yesterday I have been getting this error Sprockets::FileNotFound in uncommenting jquery in app/assets/javascripts/application.js seems to solve it. Is there anyone else experiencing this?

grvsachdeva avatar Feb 18 '19 09:02 grvsachdeva

it worked for me locally (localhost) when I ran yarn install and yarn upgrade but I don't really understand why it would work locally but not with a push to unstable

sashadev-sky avatar Feb 18 '19 09:02 sashadev-sky

I ran the same commands some days back for resolving this issue. We can see unstable's build log to find if the yarn install is running or not?

grvsachdeva avatar Feb 18 '19 09:02 grvsachdeva

https://jenkins.laboratoriopublico.org/job/Plots-Unstable/497/console it says it runs but is using cache?

sashadev-sky avatar Feb 18 '19 09:02 sashadev-sky

That's the issue!

grvsachdeva avatar Feb 18 '19 09:02 grvsachdeva

I cleared cache a bunch of times is there a way to set it so that jenkins stops using cache

sashadev-sky avatar Feb 18 '19 09:02 sashadev-sky

I found this - https://stackoverflow.com/questions/35594987/how-to-force-docker-for-a-clean-build-of-an-image and let's see if it work or not

@cesswairimu and @shubhscoder you can resolve this issue locally by running commands as mentioned by sasha -https://github.com/publiclab/plots2/issues/4849#issuecomment-464647875 .

@Souravirus @icarito any hint about this issue?

Thanks!

grvsachdeva avatar Feb 18 '19 11:02 grvsachdeva

Thank you so much @gauravano !

  1. yarn install
  2. yarn upgrade worked on the localhost.

shubhscoder avatar Feb 18 '19 11:02 shubhscoder

@sashadev-sky unstable is back to normal.

grvsachdeva avatar Feb 18 '19 11:02 grvsachdeva

I just force pushed the master branch on unstable and it's back to normal. You tried the force push, Sasha?

grvsachdeva avatar Feb 18 '19 11:02 grvsachdeva

Here's the passed build log - https://jenkins.laboratoriopublico.org/job/Plots-Unstable/499/console this build also shows the use of cache for some commands but I guess cache wasn't a problem as yarn install and yarn upgrade ran normally

the link I posted here resulted in this build - https://jenkins.laboratoriopublico.org/job/Plots-Unstable/500/console

grvsachdeva avatar Feb 18 '19 11:02 grvsachdeva

@jywarren @icarito do you know why my build - https://jenkins.laboratoriopublico.org/job/Plots-Unstable/499/console passed but all the builds from https://jenkins.laboratoriopublico.org/job/Plots-Unstable/487/ to https://jenkins.laboratoriopublico.org/job/Plots-Unstable/498 started by @sashadev-sky failed :confused: ?

grvsachdeva avatar Feb 18 '19 11:02 grvsachdeva

@gauravano it just started working for you by using --force? It could just be my computer setup

sashadev-sky avatar Feb 18 '19 13:02 sashadev-sky

@gauravano is bower still required for proper installation at this point?

sashadev-sky avatar Feb 18 '19 15:02 sashadev-sky

@gauravano nevermind mine worked!

sashadev-sky avatar Feb 18 '19 15:02 sashadev-sky

@gauravano it just started working for you by using --force? It could just be my computer setup

I always force push on unstable. I doubt that computer setup has anything to do in it. You can check the changes of your push and see if that's incorrect. I would advise you to use force push too on unstable as I can see that you have to struggle a lot with unstable in recent hours.

We use yarn with plots2, right?

grvsachdeva avatar Feb 18 '19 16:02 grvsachdeva

Did it work? I guess force push was needed because I have changed the bootstrap3-typeahead to typeahead.js for Bootstrap 4. That's why it might not be working.

Souravirus avatar Feb 18 '19 16:02 Souravirus

yes @Souravirus, it worked out after force-push. Thanks for checking in :)

grvsachdeva avatar Feb 18 '19 16:02 grvsachdeva

@gauravano @Souravirus yes that was a struggle! I just got a new laptop so it could have been computer related for me, but I had been force pushing the whole time so that was not the solution for me.

What led to it working was re-installing my Homebrew configurations for Docker and building and a docker container. Are we supposed to be building containers before pushing to unstable?

sashadev-sky avatar Feb 18 '19 16:02 sashadev-sky