Skip to content

Force restarting creates maximum GZIP gibberish (Nginx) #481

Description

@QuiteAFancyEmerald
Image

Problem:

Occasionally upon doing npm run kill then npm start the application will error. This happens even with GZIP disabled on Nginx. It is possible to be a cache conflict between pm2 and nginx although we cannot find any documentation for it. Originally thought it was a mismatch between GZIP on NGINX and HU LTS. We use GZIP for our DOM masquerading feature where you can disguise pages as .ico files.

Current Solution:

GZIP Gibberish Fix:

  • Delete node_modules
  • Delete /dist
npm run kill
npm run fresh-start
sudo rm -rf /var/cache/nginx/* 
sudo nginx -t 
sudo systemctl reload nginx

Repeat once or twice to retain normal behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPossible issue regarding Holy Unblocker

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions