Skip to content
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

Deployment failed on master #10593

Closed
jibees opened this issue Mar 21, 2023 · 1 comment · Fixed by #10594
Closed

Deployment failed on master #10593

jibees opened this issue Mar 21, 2023 · 1 comment · Fixed by #10594
Assignees

Comments

@jibees
Copy link
Contributor

jibees commented Mar 21, 2023

Originally posted by @jibees in #10568 (comment)

Context:

Capture d’écran 2023-03-21 à 14 11 49

gems/webpacker-5.4.4/lib/webpacker/manifest.rb:79:in `handle_missing_entry': Webpacker can't find logo-white-notext.png in /home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
 (ActionView::Template::Error)
    from gems/webpacker-5.4.4/lib/webpacker/manifest.rb:49:in `lookup!'
    from gems/webpacker-5.4.4/lib/webpacker/helper.rb:193:in `rescue in resolve_path_to_image'
    from gems/webpacker-5.4.4/lib/webpacker/helper.rb:189:in `resolve_path_to_image'
    from config/initializers/webpack.rb:6:in `image_pack_path'
    from app/views/home/_tagline.html.haml:5:in `_app_views_home__tagline_html_haml__2572215756437575251_120080'
  • Logged on server, directory packs doesn't exist under /home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public
ls: cannot access '/home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public/packs': No such file or directory
@dacook
Copy link
Member

dacook commented Mar 21, 2023

I don't really understand why this was necessary. It sounds like this issue you mentioned: rails/webpacker#1212, but that refers to a change made a long time ago in webpacker v3.

Another possible cause is that the yarn installation on staging servers was changed on 15th May (openfoodfoundation/ofn-install#865 (comment)). Yarn is now installed with Nodenv, and might have been a slightly different version.

In any case, I'm confused. I'd like to see dev-related dependencies moved out of production if they're not necessary.
But I'm glad you fixed it for now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants