Setup failed at front-end-build

Issue #349 new
Csécsei Tibor created an issue

I got the following error when run kallithea-cli front-end-build when following step-by-step guide:
(virtualenv) pi@raspberrypi:~/kallithea/data $ kallithea-cli front-end-build
Running 'npm install' to install front-end dependencies from package.json
(node:28249) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN package.json codemirror@4.7.0 No license field.
npm WARN package.json jquery.caret@0.3.1 No repository field.
npm WARN package.json jquery.flot@0.8.3 No repository field.
npm WARN package.json jquery.flot@0.8.3 No license field.
npm WARN package.json less-plugin-clean-css@1.5.1 No license field.
npm WARN package.json select2@3.5.1 No license field.
Building CSS styling based on Bootstrap
Traceback (most recent call last):
File "/home/pi/kallithea/virtualenv/bin/kallithea-cli", line 8, in <module>
sys.exit(cli())
File "/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/bin/kallithea_cli_front_end.py", line 64, in front_end_build
cwd=front_end_dir, shell=kallithea.is_windows)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/front-end/node_modules/.bin/lessc', '--source-map', '--source-map-less-inline', '/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/front-end/main.less', '/home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/public/css/style.css']' returned non-zero exit status 1
(virtualenv) pi@raspberrypi:~/kallithea/data $

I can start the server by calling gearbox serve -c my.ini after that, but the configuration is not user friendly without css file(s).

I do not access the web-page outside the server (I mean from another server in same LAN). Can it be because unsuccessful setup?

Is Apache required to be intalled and configured correctly for kallithea?

Comments (3)

  1. Mads Kiilerich

    I am not a npm expert, but it could seem like a npm problem. Perhaps npm is too new or too old. I use the npm-6.10.3 that comes with Fedora. Could you try out on a desktop Linux OS and see if you get the same there?

    The .ini file default to listen on host 127.0.0.1 - shown as 127.0.01 or localhost when gearbox says Serving on http://localhost:5000. Change it to 0.0.0.0 if you really want it to listen on external IP too.

    Some front-end is web server is recommended for production multi user use. Gearbox is fine until it becomes a bottleneck.

  2. Thomas De Schampheleire

    The command that is failing is:

    home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/front-end/node_modules/.bin/lessc --source-map --source-map-less-inline /home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/front-end/main.less /home/pi/kallithea/virtualenv/local/lib/python2.7/site-packages/kallithea/public/css/style.css

    Do all the referenced paths exist (except the last one which is the output path)?

    Can you run the command manually from inside your virtualenv? Are there any errors printed? Perhaps with a verbose flag?

  3. Thomas De Schampheleire

    Feedback received on the mailing list from Nicolas Pinault:

    I've had a similar problem when I tried to upgrade one of my my
    Kallithea instance from V 0.3.3 to V 0.4.1.
    My server is a RaspberryPi running Raspian jessie.
    I've found that Raspian version was too old. With a newer version of
    Raspian (buster), it works. (I tried on another RaspberryPi with a fresh
    Raspian install).

    I can start the server by calling `gearbox serve -c my.ini` after that, but the configuration is not user friendly without css file\(s\).
    I do not access the web-page outside the server \(I mean from another server in same LAN\). Can it be because unsuccessful setup?

    Is Apache required to be intalled and configured correctly for kallithea?
    No.

    Regards,
    Nicolas

  4. Log in to comment