Stuck on Rebuilding social.min.js

Hello,

I successfully installed erpNext in my local computer (MacOS) and everything went fine (few errors now but not a big deal).

The main purpose is to install it for my company in a vps, along with Plesk. I chose to do it using Docker as the simple install breaks mariadb and many other staff, and it’s lot better to keep each thing separated.

So, I cloned the frappe git repo, I did all the staff for init and all is good, docker images are running well, accessible from plesk and all is good. Now when I access the image of frappe_docker and I launch bench start here is what I get :

frappe@3e733f1de5b7:~/frappe-bench$ bench start
12:19:53 system           | worker_short.1 started (pid=1657)
12:19:53 system           | worker_long.1 started (pid=1655)
12:19:53 system           | worker_default.1 started (pid=1658)
12:19:53 system           | schedule.1 started (pid=1656)
12:19:53 system           | socketio.1 started (pid=1659)
12:19:53 system           | web.1 started (pid=1661)
12:19:53 system           | watch.1 started (pid=1660)
12:19:55 socketio.1       | listening on *: 9000
12:20:06 worker_default.1 | 12:20:06 RQ worker u'rq:worker:3e733f1de5b7.1666.default' started, version 0.12.0
12:20:06 worker_default.1 | 12:20:06 *** Listening on default...
12:20:06 worker_default.1 | 12:20:06 Cleaning registries for queue: default
12:20:06 worker_short.1   | 12:20:06 RQ worker u'rq:worker:3e733f1de5b7.1664.short' started, version 0.12.0
12:20:06 worker_short.1   | 12:20:06 *** Listening on short...
12:20:06 worker_short.1   | 12:20:06 Cleaning registries for queue: short
12:20:06 worker_long.1    | 12:20:06 RQ worker u'rq:worker:3e733f1de5b7.1662.long' started, version 0.12.0
12:20:06 worker_long.1    | 12:20:06 *** Listening on long...
12:20:06 worker_long.1    | 12:20:06 Cleaning registries for queue: long
12:20:06 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
12:20:06 web.1            |  * Restarting with inotify reloader
12:20:07 watch.1          | yarn run v1.12.1
12:20:07 watch.1          | $ node rollup/watch.js
12:20:08 web.1            |  * Debugger is active!
12:20:08 web.1            |  * Debugger PIN: 724-973-074
12:20:09 watch.1          | 
12:20:09 watch.1          | Rollup Watcher Started
12:20:09 watch.1          | 
12:20:09 watch.1          | Watching...
12:20:10 watch.1          | Rebuilding frappe-web.css
12:20:10 watch.1          | Rebuilding chat.js
12:20:12 watch.1          | Rebuilding frappe-web.min.js
12:20:15 watch.1          | Rebuilding control.min.js
12:20:19 watch.1          | Rebuilding dialog.min.js
12:20:21 watch.1          | Rebuilding desk.min.css
12:20:21 watch.1          | Rebuilding frappe-rtl.css
12:20:21 watch.1          | Rebuilding desk.min.js
12:20:25 watch.1          | Rebuilding module.min.css
12:20:25 watch.1          | Rebuilding form.min.css
12:20:25 watch.1          | Rebuilding form.min.js
12:20:25 watch.1          | (node:1788) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit
12:20:27 watch.1          | Rebuilding list.min.css
12:20:27 watch.1          | Rebuilding list.min.js
12:20:28 watch.1          | Rebuilding report.min.css
12:20:28 watch.1          | Rebuilding report.min.js
12:20:30 watch.1          | Rebuilding web_form.min.js
12:20:30 watch.1          | Rebuilding web_form.css
12:20:30 watch.1          | Rebuilding print_format_v3.min.js
12:20:31 watch.1          | Rebuilding email.css
12:20:31 watch.1          | Rebuilding social.min.js

And it gets stuck there, for an unlimited time, I left it there for more than 2 hours, nothing happens, I tried accessing my new instance, it says timeout occured at xxxxx.xxx:8000

PS : port 8000 opened for tcp connexions, and tried already bench update, bench build (succss) and added already a site with bench new-site

I’m running this on a Centos7 vps with 4 G of Ram and plesk Onyx up-to-date version.

This is it! You can now open the browser to localhost:8000 or site1.local:8000 (whatever is your site name) and view

1 Like

Nope, as said, it does not load … my vps is pointing to a domain, so I should put domain:8000 to access it, while that simply returns a connexion error.

I installed erp-next and here is the complete stuck :

frappe@c70b4a3f39a7:~/frappe-bench$ bench start
14:05:36 system           | watch.1 started (pid=716)
14:05:36 system           | worker_default.1 started (pid=719)
14:05:36 system           | schedule.1 started (pid=718)
14:05:36 system           | web.1 started (pid=717)
14:05:36 system           | socketio.1 started (pid=720)
14:05:36 system           | worker_short.1 started (pid=721)
14:05:36 system           | worker_long.1 started (pid=722)
14:05:41 socketio.1       | listening on *: 9000
14:05:53 worker_long.1    | 14:05:53 RQ worker u'rq:worker:c70b4a3f39a7.735.long' started, version 0.12.0
14:05:53 worker_long.1    | 14:05:53 *** Listening on long...
14:05:53 worker_long.1    | 14:05:53 Cleaning registries for queue: long
14:05:53 worker_short.1   | 14:05:53 RQ worker u'rq:worker:c70b4a3f39a7.733.short' started, version 0.12.0
14:05:53 worker_short.1   | 14:05:53 *** Listening on short...
14:05:53 worker_short.1   | 14:05:53 Cleaning registries for queue: short
14:05:53 worker_default.1 | 14:05:53 RQ worker u'rq:worker:c70b4a3f39a7.725.default' started, version 0.12.0
14:05:53 worker_default.1 | 14:05:53 *** Listening on default...
14:05:53 worker_default.1 | 14:05:53 Cleaning registries for queue: default
14:05:53 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
14:05:53 web.1            |  * Restarting with inotify reloader
14:05:53 watch.1          | yarn run v1.12.1
14:05:53 watch.1          | $ node rollup/watch.js
14:05:55 web.1            |  * Debugger is active!
14:05:55 web.1            |  * Debugger PIN: 724-973-074
14:05:56 watch.1          | 
14:05:56 watch.1          | Rollup Watcher Started
14:05:56 watch.1          | 
14:05:56 watch.1          | Watching...
14:05:58 watch.1          | Rebuilding frappe-web.css
14:05:58 watch.1          | Rebuilding chat.js
14:06:00 watch.1          | Rebuilding frappe-web.min.js
14:06:04 watch.1          | Rebuilding control.min.js
14:06:08 watch.1          | Rebuilding dialog.min.js
14:06:10 watch.1          | Rebuilding desk.min.css
14:06:10 watch.1          | Rebuilding frappe-rtl.css
14:06:10 watch.1          | Rebuilding desk.min.js
14:06:16 watch.1          | Rebuilding module.min.css
14:06:16 watch.1          | Rebuilding form.min.css
14:06:16 watch.1          | Rebuilding form.min.js
14:06:16 watch.1          | (node:847) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit
14:06:17 watch.1          | Rebuilding list.min.css
14:06:17 watch.1          | Rebuilding list.min.js
14:06:18 watch.1          | Rebuilding report.min.css
14:06:18 watch.1          | Rebuilding report.min.js
14:06:20 watch.1          | Rebuilding web_form.min.js
14:06:21 watch.1          | Rebuilding web_form.css
14:06:21 watch.1          | Rebuilding print_format_v3.min.js
14:06:21 watch.1          | Rebuilding email.css
14:06:21 watch.1          | Rebuilding social.min.js
^C14:09:10 system           | SIGINT received
14:09:10 system           | sending SIGTERM to worker_long.1 (pid 722)
14:09:10 system           | sending SIGTERM to watch.1 (pid 716)
14:09:10 system           | sending SIGTERM to web.1 (pid 717)
14:09:10 system           | sending SIGTERM to schedule.1 (pid 718)
14:09:10 system           | sending SIGTERM to worker_default.1 (pid 719)
14:09:10 system           | sending SIGTERM to socketio.1 (pid 720)
14:09:10 system           | sending SIGTERM to worker_short.1 (pid 721)
14:09:10 worker_long.1    | 14:09:10 Warm shut down requested
14:09:10 worker_default.1 | 14:09:10 Warm shut down requested
14:09:10 worker_short.1   | 14:09:10 Warm shut down requested
14:09:10 system           | socketio.1 stopped (rc=-15)
14:09:10 system           | schedule.1 stopped (rc=-15)
14:09:10 system           | watch.1 stopped (rc=-15)
14:09:10 system           | worker_default.1 stopped (rc=-15)
14:09:10 system           | worker_long.1 stopped (rc=-15)
14:09:10 system           | worker_short.1 stopped (rc=-15)
14:09:10 system           | web.1 stopped (rc=-15)
frappe@c70b4a3f39a7:~/frappe-bench$ bench new-site manager

Installing frappe...
Updating DocTypes for frappe        : [========================================]
Updating country info               : [========================================]
*** Scheduler is disabled ***
frappe@c70b4a3f39a7:~/frappe-bench$ bench get-app erpnext https://github.com/frappe/erpnext
INFO:bench.app:getting app erpnext
INFO:bench.utils:git clone https://github.com/frappe/erpnext  --depth 1 --origin upstream
Cloning into 'erpnext'...
remote: Enumerating objects: 5209, done.
remote: Counting objects: 100% (5209/5209), done.
remote: Compressing objects: 100% (3934/3934), done.
remote: Total 5209 (delta 1572), reused 2705 (delta 1160), pack-reused 0
Receiving objects: 100% (5209/5209), 15.06 MiB | 989.00 KiB/s, done.
Resolving deltas: 100% (1572/1572), done.
Checking connectivity... done.
('installing', u'erpnext')
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/erpnext --no-cache-dir
INFO:bench.app:getting app foundation
INFO:bench.utils:git clone https://github.com/erpnext/foundation --branch master --depth 1 --origin upstream
Cloning into 'foundation'...
remote: Enumerating objects: 3085, done.
remote: Counting objects: 100% (3085/3085), done.
remote: Compressing objects: 100% (2949/2949), done.
remote: Total 3085 (delta 117), reused 2192 (delta 80), pack-reused 0
Receiving objects: 100% (3085/3085), 274.13 MiB | 11.39 MiB/s, done.
Resolving deltas: 100% (117/117), done.
Checking connectivity... done.
Checking out files: 100% (3971/3971), done.
('installing', u'foundation')
INFO:bench.app:installing foundation
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/foundation --no-cache-dir
yarn run v1.12.1
$ FRAPPE_ENV=production node rollup/build.js
Production mode
βœ” Built js/moment-bundle.min.js
βœ” Built js/libs.min.js

Building frappe assets...

βœ” Built js/print_format_v3.min.js
βœ” Built js/dialog.min.js
βœ” Built js/web_form.min.js
βœ” Built js/form.min.js
βœ” Built js/list.min.js
βœ” Built js/chat.js
βœ” Built js/desk.min.js
βœ” Built css/frappe-rtl.css
βœ” Built css/module.min.css
βœ” Built css/form.min.css
βœ” Built css/list.min.css
βœ” Built css/report.min.css
βœ” Built frappe/css/email.css
βœ” Built css/frappe-web.css
βœ” Built css/web_form.css
βœ” Built css/desk.min.css
βœ” Built js/control.min.js
βœ” Built js/frappe-web.min.js
βœ” Built js/social.min.js
βœ” Built js/report.min.js
✨  Done in 58.297s

Building erpnext assets...

βœ” Built js/erpnext-web.min.js
βœ” Built js/item-dashboard.min.js
βœ” Built js/erpnext.min.js
βœ” Built css/erpnext-web.css
βœ” Built css/erpnext.css
βœ” Built css/marketplace.css
βœ” Built js/marketplace.min.js
✨  Done in 13.693s
Done in 75.90s.
frappe@c70b4a3f39a7:~/frappe-bench$ bench --site manager install-app erpnext

Installing erpnext...
Updating DocTypes for erpnext       : [========================================]
frappe@c70b4a3f39a7:~/frappe-bench$ bench start
14:20:08 system           | schedule.1 started (pid=1055)
14:20:08 system           | worker_long.1 started (pid=1052)
14:20:08 system           | watch.1 started (pid=1053)
14:20:08 system           | web.1 started (pid=1054)
14:20:08 system           | worker_short.1 started (pid=1056)
14:20:08 system           | worker_default.1 started (pid=1057)
14:20:08 system           | socketio.1 started (pid=1058)
14:20:11 socketio.1       | listening on *: 9000
14:20:22 worker_default.1 | 14:20:22 RQ worker u'rq:worker:c70b4a3f39a7.1069.default' started, version 0.12.0
14:20:22 worker_default.1 | 14:20:22 *** Listening on default...
14:20:22 worker_default.1 | 14:20:22 Cleaning registries for queue: default
14:20:23 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
14:20:23 web.1            |  * Restarting with inotify reloader
14:20:23 worker_long.1    | 14:20:23 RQ worker u'rq:worker:c70b4a3f39a7.1061.long' started, version 0.12.0
14:20:23 worker_long.1    | 14:20:23 *** Listening on long...
14:20:23 worker_long.1    | 14:20:23 Cleaning registries for queue: long
14:20:23 worker_short.1   | 14:20:23 RQ worker u'rq:worker:c70b4a3f39a7.1067.short' started, version 0.12.0
14:20:23 worker_short.1   | 14:20:23 *** Listening on short...
14:20:23 worker_short.1   | 14:20:23 Cleaning registries for queue: short
14:20:23 watch.1          | yarn run v1.12.1
14:20:23 watch.1          | $ node rollup/watch.js
14:20:25 web.1            |  * Debugger is active!
14:20:25 web.1            |  * Debugger PIN: 724-973-074
14:20:27 watch.1          | 
14:20:27 watch.1          | Rollup Watcher Started
14:20:27 watch.1          | 
14:20:27 watch.1          | Watching...
14:20:28 watch.1          | Rebuilding frappe-web.css
14:20:28 watch.1          | Rebuilding chat.js
14:20:34 watch.1          | Rebuilding frappe-web.min.js
14:20:40 watch.1          | Rebuilding control.min.js
14:20:52 watch.1          | Rebuilding dialog.min.js
14:20:53 watch.1          | Rebuilding desk.min.css
14:20:54 watch.1          | Rebuilding frappe-rtl.css
14:20:54 watch.1          | Rebuilding desk.min.js
14:21:06 watch.1          | Rebuilding module.min.css
14:21:06 watch.1          | Rebuilding form.min.css
14:21:06 watch.1          | Rebuilding form.min.js
14:21:06 watch.1          | (node:1185) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit
14:21:08 watch.1          | Rebuilding list.min.css
14:21:08 watch.1          | Rebuilding list.min.js
14:21:11 watch.1          | Rebuilding report.min.css
14:21:11 watch.1          | Rebuilding report.min.js
14:21:14 watch.1          | Rebuilding web_form.min.js
14:21:15 watch.1          | Rebuilding web_form.css
14:21:15 watch.1          | Rebuilding print_format_v3.min.js
14:21:16 watch.1          | Rebuilding email.css
14:21:16 watch.1          | Rebuilding social.min.js
14:21:21 watch.1          | Rebuilding erpnext.css
14:21:21 watch.1          | Rebuilding marketplace.css
14:21:21 watch.1          | Rebuilding erpnext-web.min.js
14:21:21 watch.1          | Rebuilding erpnext-web.css
14:21:21 watch.1          | Rebuilding marketplace.min.js
14:21:30 watch.1          | Rebuilding erpnext.min.js
14:21:31 watch.1          | Rebuilding item-dashboard.min.js

And then all stops, and no response.

Post the error here

The problem was simply that plesk didn’t map the localhost to the external IP while I’m using cloudflare. I figured it out by creating a link between internal port and external port. Thanks guys