docker-cartodb icon indicating copy to clipboard operation
docker-cartodb copied to clipboard

Error on Step 50: Running "browserify:test_specs_for_browserify_modules" (browserify) task

Open ojlamb opened this issue 7 years ago • 3 comments

I'm running into an issue during installation. Any ideas how to get around this one?

>> Error: Cannot find module '../../../../../../vendor/assets/javascripts/carto-node/carto-node' from '/cartodb/lib/assets/test/spec/cartodb/common'
Warning: Error running grunt-browserify. Use --force to continue.
Aborted due to warnings.
The command '/bin/sh -c cd cartodb &&    export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&    bundle install &&    /bin/bash -l -c 'bundle exec grunt' &&     rm -rf .git /root/.cache/pip node_modules' returned a non-zero code: 6

Any help is appreciated.

Thanks, Owen

ojlamb avatar Dec 05 '17 00:12 ojlamb

Hi, I tried using previous version of CartoDB.

Edit Dockerfile:

Change

#Carto Editor
RUN git clone --recursive https://github.com/CartoDB/cartodb.git &&\
cd cartodb &&\
wget  -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py &&\
python /tmp/get-pip.py 

to

#Carto Editor
RUN git clone --recursive https://github.com/CartoDB/cartodb.git &&\
cd cartodb &&\
git checkout v4.10.70 &&\
wget  -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py &&\
python /tmp/get-pip.py 

And change

#carto postgres extension
RUN git clone https://github.com/CartoDB/cartodb-postgresql.git &&\
cd cartodb-postgresql &&\
PGUSER=postgres make install

to

#carto postgres extension
RUN git clone https://github.com/CartoDB/cartodb-postgresql.git &&\
cd cartodb-postgresql &&\
git checkout 0.19.2 &&\
PGUSER=postgres make install

Hope it works for you.

haymanyu avatar Dec 05 '17 08:12 haymanyu

This change, in addition to #24 lead to a successful install. Thank you @yuhuman for the help!

ojlamb avatar Dec 05 '17 17:12 ojlamb

Hi all,

Are your widgets working in the builder? If so could you please share your dockerfile and configure.yml file that you used for the build?

alexwcc avatar Feb 28 '18 19:02 alexwcc