Bench not start, stop on Building css

I needed to reinstall my enviroment, and now, when I try to start bench, not work…

Here is the log

$ bench start
09:06:08 system           | redis_cache.1 started (pid=8107)
09:06:08 system           | redis_queue.1 started (pid=8108)
09:06:08 system           | redis_socketio.1 started (pid=8106)
09:06:08 system           | web.1 started (pid=8110)
09:06:08 system           | socketio.1 started (pid=8112)
09:06:08 system           | watch.1 started (pid=8113)
09:06:08 system           | schedule.1 started (pid=8116)
09:06:08 system           | worker_short.1 started (pid=8117)
09:06:08 system           | worker_long.1 started (pid=8119)
09:06:08 system           | worker_default.1 started (pid=8120)
09:06:08 redis_queue.1    | 8108:C 12 Mar 2019 09:06:08.845 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
09:06:08 redis_queue.1    | 8108:C 12 Mar 2019 09:06:08.845 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=8108, just started
09:06:08 redis_queue.1    | 8108:C 12 Mar 2019 09:06:08.845 # Configuration loaded
09:06:08 redis_queue.1    | 8108:M 12 Mar 2019 09:06:08.846 * Increased maximum number of open files to 10032 (it was originally set to 4864).
09:06:08 redis_queue.1    | 8108:M 12 Mar 2019 09:06:08.863 * Running mode=standalone, port=11002.
09:06:08 redis_cache.1    | 8107:C 12 Mar 2019 09:06:08.849 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
09:06:08 redis_cache.1    | 8107:C 12 Mar 2019 09:06:08.849 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=8107, just started
09:06:08 redis_queue.1    | 8108:M 12 Mar 2019 09:06:08.863 # Server initialized
09:06:08 redis_cache.1    | 8107:C 12 Mar 2019 09:06:08.849 # Configuration loaded
09:06:08 redis_queue.1    | 8108:M 12 Mar 2019 09:06:08.863 * Ready to accept connections
09:06:08 redis_cache.1    | 8107:M 12 Mar 2019 09:06:08.851 * Increased maximum number of open files to 10032 (it was originally set to 4864).
09:06:08 redis_cache.1    | 8107:M 12 Mar 2019 09:06:08.865 * Running mode=standalone, port=13002.
09:06:08 redis_cache.1    | 8107:M 12 Mar 2019 09:06:08.865 # Server initialized
09:06:08 redis_cache.1    | 8107:M 12 Mar 2019 09:06:08.865 * Ready to accept connections
09:06:09 redis_socketio.1 | 8106:C 12 Mar 2019 09:06:09.251 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
09:06:09 redis_socketio.1 | 8106:C 12 Mar 2019 09:06:09.252 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=8106, just started
09:06:09 redis_socketio.1 | 8106:C 12 Mar 2019 09:06:09.252 # Configuration loaded
09:06:09 redis_socketio.1 | 8106:M 12 Mar 2019 09:06:09.257 * Increased maximum number of open files to 10032 (it was originally set to 4864).
09:06:09 redis_socketio.1 | 8106:M 12 Mar 2019 09:06:09.413 * Running mode=standalone, port=12002.
09:06:09 redis_socketio.1 | 8106:M 12 Mar 2019 09:06:09.413 # Server initialized
09:06:09 redis_socketio.1 | 8106:M 12 Mar 2019 09:06:09.414 * Ready to accept connections
09:06:10 socketio.1       | listening on *: 9002
09:06:14 web.1            |  * Running on http://0.0.0.0:8002/ (Press CTRL+C to quit)
09:06:14 web.1            |  * Restarting with fsevents reloader
09:06:15 watch.1          | yarn run v1.13.0
09:06:15 watch.1          | $ node rollup/watch.js
09:06:16 web.1            |  * Debugger is active!
09:06:16 web.1            |  * Debugger PIN: 241-639-402
09:06:17 watch.1          |
09:06:17 watch.1          | Rollup Watcher Started
09:06:17 watch.1          |
09:06:17 watch.1          | Watching...
09:06:18 watch.1          | Rebuilding frappe-web.css
09:06:18 watch.1          | Rebuilding chat.js
09:06:20 watch.1          | Rebuilding frappe-web.min.js
09:06:22 watch.1          | Rebuilding control.min.js
09:06:24 watch.1          | Rebuilding dialog.min.js
09:06:25 watch.1          | Rebuilding desk.min.css
09:06:25 watch.1          | Rebuilding frappe-rtl.css
09:06:25 watch.1          | Rebuilding desk.min.js
09:06:28 watch.1          | Rebuilding module.min.css
09:06:28 watch.1          | Rebuilding form.min.css
09:06:28 watch.1          | Rebuilding form.min.js
09:06:28 watch.1          | (node:8141) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit
09:06:29 watch.1          | Rebuilding list.min.css
09:06:29 watch.1          | Rebuilding list.min.js
09:06:30 watch.1          | Rebuilding report.min.css
09:06:30 watch.1          | Rebuilding report.min.js
09:06:32 watch.1          | Rebuilding web_form.min.js
09:06:32 watch.1          | Rebuilding web_form.css
09:06:32 watch.1          | Rebuilding print_format_v3.min.js
09:06:32 watch.1          | Rebuilding email.css

What’s going on?

Regards

Normally this would be on port 9000. If you start a 2nd/3rd instance, it increments to 9001…9002, so you might have multiple instances running.

The “MaxListenersExceededWarning” could be fixable via

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
cd ~/frappe-bench;
bench start

Tried access http://localhost:9002… but get these:

Cannot GET /

trying http://localhost:8002/ get these error:

Traceback (most recent call last):
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/middlewares.py", line 15, in __call__
    return super(StaticDataMiddleware, self).__call__(environ, start_response)
  File "/Users/fellipeh/Developer/frappe/devel/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 766, in __call__
    return self.app(environ, start_response)
  File "/Users/fellipeh/Developer/frappe/devel/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 766, in __call__
    return self.app(environ, start_response)
  File "/Users/fellipeh/Developer/frappe/devel/env/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "/Users/fellipeh/Developer/frappe/devel/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 308, in application
    resp = f(*args[:-2] + (request,))
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/app.py", line 87, in application
    response = handle_exception(e)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/app.py", line 193, in handle_exception
    http_status_code=http_status_code)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/render.py", line 75, in render
    data = render_page(path)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/render.py", line 158, in render_page
    return build(path)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/render.py", line 165, in build
    return build_page(path)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/render.py", line 178, in build_page
    context = get_context(path)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/context.py", line 28, in get_context
    context = build_context(context)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/context.py", line 75, in build_context
    context.update(get_website_settings())
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/doctype/website_settings/website_settings.py", line 116, in get_website_settings
    add_website_theme(context)
  File "/Users/fellipeh/Developer/frappe/devel/apps/frappe/frappe/website/doctype/website_theme/website_theme.py", line 74, in add_website_theme
    if website_theme.bootstrap:
AttributeError: 'WebsiteTheme' object has no attribute 'bootstrap'

Same error here Unknown Column Comment Field List

Thanks, But how to fix that?

That’s why we have a forum :wink:

Thanks, but I`m not using ERPnext, just Frappe… and I don’t find anything about that on forum…

I want to use stable version, not the new one… so, on frappe I am on staging… told me that’s the stable version…

For stable version, appears to be several bugs…

Or the stable version is not on staging branch?

FWIK staging branch is no longer in use? fix: remove staging version · frappe/frappe@d3735cd · GitHub

I do not realize that…

How, can I use a stable version of bench and frappe? using master branch?

Yes with the v11 release master is on v11 whereas develop is v12

edit: This should help - these list the history of commits by branch to frappe (a similar one exists for erpnext)

develop v12
Commits · frappe/frappe · GitHub
Commits · frappe/erpnext · GitHub

master v11
Commits · frappe/frappe · GitHub
Commits · frappe/erpnext · GitHub

branch v10.x.x
Commits · frappe/frappe · GitHub
Commits · frappe/erpnext · GitHub

staging (last commit January 31)
https://github.com/frappe/frappe/commits/staging
https://github.com/frappe/erpnext/commits/staging