Mastodon: WebPack compilation failed : process out of memory

Created on 23 May 2018  ·  2Comments  ·  Source: tootsuite/mastodon

I'm not using Docker.

Here's the message I got when updating my instance earlier today:

~/live$ RAILS_ENV=production bundle exec rails assets:precompile
I, [2018-05-23T14:26:14.290200 #22373]  INFO -- : Writing /home/mastodon/live/public/assets/pghero/favicon-db10337a56c45eb43c22ff5019546b520fa22c7281d4d385f235cbca67ed26bb.png
I, [2018-05-23T14:26:15.754443 #22373]  INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-b6568ba483c03c4fdcd8edd641f3b341ac0314ba01ab186645b8fc231cdff02e.js
I, [2018-05-23T14:26:15.755023 #22373]  INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-b6568ba483c03c4fdcd8edd641f3b341ac0314ba01ab186645b8fc231cdff02e.js.gz
I, [2018-05-23T14:26:15.815076 #22373]  INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-d7ee8e7dc0785de97337625e0f1030e1a892327ef4e72a48043ce09fd964874d.css
I, [2018-05-23T14:26:15.815855 #22373]  INFO -- : Writing /home/mastodon/live/public/assets/pghero/application-d7ee8e7dc0785de97337625e0f1030e1a892327ef4e72a48043ce09fd964874d.css.gz
Webpacker is installed 🎉 🍰
Using /home/mastodon/live/config/webpacker.yml file for setting up webpack paths
Compiling…
Compilation failed:



#
# Fatal error in , line 0
# API fatal error handler returned after process out of memory
#

How can I relaunch the compilation? When I retried the command, all I got was:

~/live$ RAILS_ENV=production bundle exec rails assets:precompile
Webpacker is installed 🎉 🍰
Using /home/mastodon/live/config/webpacker.yml file for setting up webpack paths

And now after restarting the service for my instance, the website displays nothing, and the console only has this message:

Error: Reducer "custom_emojis" returned undefined when handling "STORE_HYDRATE" action. To ignore an action, you must explicitly return the previous state.
Stack trace:
t.default@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:498138
t.default/</</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:496586
t.default/</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:496532
fe.prototype.withMutations@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:38632
t.default/<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:496504
l@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:225822
r/</</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:575020
r/</</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:574717
r/</</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:574233
r/</</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:495136
dispatch@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:492894
r/<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:92865
r/</</<@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:495127
[657]@https://boitam.eu/packs/application-5813d0114831b54d6ba5.js:1:8884
t@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:96
[656]@https://boitam.eu/packs/application-5813d0114831b54d6ba5.js:1:8438
t@https://boitam.eu/packs/common-f667a5fc6f5856e351ee.js:1:96
[655]/<@https://boitam.eu/packs/application-5813d0114831b54d6ba5.js:1:7866
 application.js:6:2

Thanks!


  • [X] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • [X] This bug happens on a tagged release and not on master (If you're a user, don't worry about this).

Most helpful comment

You can do assets:clobber. I also think there is a --force flag although I'm not sure.

All 2 comments

You can do assets:clobber. I also think there is a --force flag although I'm not sure.

Thanks! I tried assets:clobber then assets:recompile worked. I'll remember that for next time :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ccoenen picture ccoenen  ·  3Comments

marrus-sh picture marrus-sh  ·  3Comments

psychicteeth picture psychicteeth  ·  3Comments

hugogameiro picture hugogameiro  ·  3Comments

ghost picture ghost  ·  3Comments