Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While precompile FE assets in production, the cdb task fails. #15727

Open
OlivierVernin opened this issue Jun 30, 2020 · 0 comments
Open

While precompile FE assets in production, the cdb task fails. #15727

OlivierVernin opened this issue Jun 30, 2020 · 0 comments

Comments

@OlivierVernin
Copy link

OlivierVernin commented Jun 30, 2020

Context

While precompile FE assets in production mode, the cdb task fails.

Steps to Reproduce

  1. Running bundle exec grunt --environment=production

Current Result

Running "cdb" task
cartodb.js not updated (due to cd lib/assets/javascripts/cdb; npm install
audited 749 packages in 3.537s
found 253 vulnerabilities (141 low, 47 moderate, 64 high, 1 critical)
run npm audit fix to fix them, or npm audit for details
cd lib/assets/javascripts/cdb; make cartodb dist/cartodb.css
make[1]: Entering directory '/home/ubuntu/cartodb/lib/assets/javascripts/cdb'
mkdir -p dist
cat vendor/mod/carto.js vendor/mod/torque.uncompressed.js src/geo/gmaps/torque.js src/geo/leaflet/torque.js src/geo/ui/time_slider.js vendor/mod/jquery-ui/jquery.ui.core.js vendor/mod/jquery-ui/jquery.ui.widget.js vendor/mod/jquery-ui/jquery.ui.mouse.js vendor/mod/jquery-ui/jquery.ui.slider.js scripts/mod.torque.footer.js > dist/cartodb.mod.torque.uncompressed.js
node scripts/compress.js
./vendor/jquery.min.js
./vendor/underscore-min.js
./vendor/jquery.min.js ..... IGNORED
./vendor/jquery.min.js
./vendor/jquery.min.js
./vendor/json2.js
./vendor/backbone.js
./vendor/underscore-min.js
./vendor/underscore-min.js
./vendor/underscore-min.js
./vendor/json2.js
./vendor/json2.js
./vendor/mustache.js
./vendor/json2.js
./vendor/backbone.js
./vendor/backbone.js
./vendor/leaflet.js
./vendor/backbone.js
./vendor/mustache.js
./vendor/mustache.js
./vendor/mustache.js
./vendor/wax.cartodb.js
./vendor/leaflet.js ..... IGNORED
./vendor/leaflet.js
./vendor/leaflet.js
./vendor/wax.cartodb.js
./vendor/GeoJSON.js
./vendor/jscrollpane.js
./vendor/mousewheel.js
./vendor/wax.cartodb.js
./vendor/GeoJSON.js
./vendor/wax.cartodb.js
./vendor/mwheelIntent.js
./vendor/jscrollpane.js
./vendor/spin.js
./vendor/lzma.js
./vendor/mousewheel.js
./vendor/GeoJSON.js
./vendor/GeoJSON.js
./vendor/mwheelIntent.js
./vendor/jscrollpane.js
./vendor/jscrollpane.js
./vendor/spin.js
./vendor/lzma.js
./vendor/mousewheel.js
./vendor/html-css-sanitizer-bundle.js
./vendor/mousewheel.js
./vendor/mwheelIntent.js
./vendor/mwheelIntent.js
./vendor/spin.js
./vendor/spin.js
./vendor/lzma.js
./vendor/lzma.js
./vendor/html-css-sanitizer-bundle.js
./src/cartodb.js
./src/core/sanitize.js
./vendor/html-css-sanitizer-bundle.js
./src/core/decorator.js
./vendor/html-css-sanitizer-bundle.js
./src/core/config.js
./src/cartodb.js
./src/core/log.js
./src/core/sanitize.js
./src/core/profiler.js
./src/core/decorator.js
./src/core/template.js
./src/core/config.js
./src/core/model.js
./src/cartodb.js
./src/cartodb.js
./src/core/log.js
./src/core/view.js
./src/core/sanitize.js
./src/core/sanitize.js
./src/core/profiler.js
./src/core/loader.js
./src/core/decorator.js
./src/core/decorator.js
./src/core/template.js
./src/core/util.js
./src/core/config.js
./src/core/config.js
./src/core/model.js
./src/geo/geocoders/mapbox_geocoder.js
./src/core/log.js
./src/core/log.js
./src/core/view.js
./src/geo/geocoders/mapzen_geocoder.js
./src/core/profiler.js
./src/core/profiler.js
./src/core/loader.js
./src/geo/geocoders/nokia_geocoder.js
./src/core/template.js
./src/core/template.js
./src/core/util.js
./src/geo/geocoders/tomtom_geocoder.js
./src/core/model.js
./src/core/model.js
./src/geo/geocoders/mapbox_geocoder.js
./src/geo/geocoders/yahoo_geocoder.js
./src/core/view.js
./src/core/view.js
./src/geo/geocoders/mapzen_geocoder.js
./src/geo/geometry.js
./src/core/loader.js
./src/core/loader.js
./src/geo/geocoders/nokia_geocoder.js
./src/geo/map.js
./src/core/util.js
./src/core/util.js
./src/geo/geocoders/tomtom_geocoder.js
./src/geo/ui/text.js
./src/geo/geocoders/mapbox_geocoder.js
./src/geo/geocoders/mapbox_geocoder.js
./src/geo/geocoders/yahoo_geocoder.js
./src/geo/ui/annotation.js
./src/geo/geocoders/mapzen_geocoder.js
./src/geo/geocoders/mapzen_geocoder.js
./src/geo/geometry.js
./src/geo/geocoders/nokia_geocoder.js
./src/geo/ui/image.js
./src/geo/geocoders/nokia_geocoder.js
./src/geo/map.js
./src/geo/geocoders/tomtom_geocoder.js
./src/geo/ui/share.js
./src/geo/geocoders/tomtom_geocoder.js
./src/geo/ui/text.js
./src/geo/geocoders/yahoo_geocoder.js
./src/geo/ui/zoom.js
./src/geo/geocoders/yahoo_geocoder.js
./src/geo/ui/annotation.js
./src/geo/geometry.js
./src/geo/ui/zoom_info.js
./src/geo/geometry.js
./src/geo/ui/image.js
./src/geo/map.js
./src/geo/ui/legend.js
./src/geo/map.js
./src/geo/ui/share.js
./src/geo/ui/text.js
./src/geo/ui/text.js
./src/geo/ui/switcher.js
./src/geo/ui/zoom.js
./src/geo/ui/annotation.js
./src/geo/ui/annotation.js
./src/geo/ui/infowindow.js
./src/geo/ui/zoom_info.js
./src/geo/ui/image.js
./src/geo/ui/image.js
./src/geo/ui/legend.js
./src/geo/ui/header.js
./src/geo/ui/share.js
./src/geo/ui/share.js
./src/geo/ui/search.js
./src/geo/ui/switcher.js
./src/geo/ui/zoom.js
./src/geo/ui/zoom.js
./src/geo/ui/layer_selector.js
./src/geo/ui/infowindow.js
./src/geo/ui/zoom_info.js
./src/geo/ui/zoom_info.js
./src/geo/ui/slides_controller.js
./src/geo/ui/legend.js
./src/geo/ui/legend.js
./src/geo/ui/header.js
./src/geo/ui/mobile.js
./src/geo/ui/search.js
./src/geo/ui/switcher.js
./src/geo/ui/switcher.js
./src/geo/ui/tiles_loader.js
./src/geo/ui/layer_selector.js
./src/geo/ui/infowindow.js
./src/geo/ui/infowindow.js
./src/geo/ui/infobox.js
./src/geo/ui/slides_controller.js
./src/geo/ui/tooltip.js
./src/geo/ui/header.js
./src/geo/ui/header.js
./src/geo/ui/mobile.js
./src/geo/ui/fullscreen.js
./src/geo/ui/search.js
./src/geo/ui/search.js
./src/geo/ui/tiles_loader.js
./src/geo/sublayer.js
./src/geo/ui/layer_selector.js
./src/geo/ui/layer_selector.js
./src/geo/ui/infobox.js
./src/geo/layer_definition.js
./src/geo/ui/slides_controller.js
./src/geo/ui/slides_controller.js
./src/geo/ui/tooltip.js
./src/geo/ui/mobile.js
./src/geo/ui/mobile.js
./src/geo/common.js
./src/geo/ui/fullscreen.js
./src/geo/ui/tiles_loader.js
./src/geo/ui/tiles_loader.js
./src/geo/sublayer.js
./src/geo/leaflet/leaflet_base.js
./src/geo/ui/infobox.js
./src/geo/ui/infobox.js
./src/geo/layer_definition.js
./src/geo/leaflet/leaflet_plainlayer.js
./src/geo/ui/tooltip.js
./src/geo/ui/tooltip.js
./src/geo/leaflet/leaflet_tiledlayer.js
./src/geo/common.js
./src/geo/ui/fullscreen.js
./src/geo/ui/fullscreen.js
./src/geo/leaflet/leaflet_gmaps_tiledlayer.js
./src/geo/sublayer.js
./src/geo/sublayer.js
./src/geo/leaflet/leaflet_base.js
./src/geo/leaflet/leaflet_wmslayer.js
./src/geo/layer_definition.js
./src/geo/layer_definition.js
./src/geo/leaflet/leaflet_plainlayer.js
./src/geo/leaflet/leaflet_cartodb_layergroup.js
./src/geo/leaflet/leaflet_tiledlayer.js
./src/geo/leaflet/leaflet_cartodb_layer.js
./src/geo/common.js
./src/geo/common.js
./src/geo/leaflet/leaflet_gmaps_tiledlayer.js
./src/geo/leaflet/leaflet.geometry.js
./src/geo/leaflet/leaflet_base.js
./src/geo/leaflet/leaflet_base.js
./src/geo/leaflet/leaflet_wmslayer.js
./src/geo/leaflet/leaflet.js
./src/geo/leaflet/leaflet_plainlayer.js
./src/geo/leaflet/leaflet_plainlayer.js
./src/geo/leaflet/leaflet_cartodb_layergroup.js
./src/geo/gmaps/gmaps_base.js
./src/geo/leaflet/leaflet_tiledlayer.js
./src/geo/leaflet/leaflet_tiledlayer.js
./src/geo/leaflet/leaflet_cartodb_layer.js
./src/geo/gmaps/gmaps_baselayer.js
./src/geo/leaflet/leaflet_gmaps_tiledlayer.js
./src/geo/leaflet/leaflet_gmaps_tiledlayer.js
./src/geo/leaflet/leaflet.geometry.js
./src/geo/gmaps/gmaps_plainlayer.js
./src/geo/leaflet/leaflet_wmslayer.js
./src/geo/leaflet/leaflet_wmslayer.js
./src/geo/leaflet/leaflet.js
./src/geo/gmaps/gmaps_tiledlayer.js
./src/geo/leaflet/leaflet_cartodb_layergroup.js
./src/geo/leaflet/leaflet_cartodb_layergroup.js
./src/geo/gmaps/gmaps_base.js
./src/geo/gmaps/gmaps_cartodb_layergroup.js
./src/geo/leaflet/leaflet_cartodb_layer.js
./src/geo/leaflet/leaflet_cartodb_layer.js
./src/geo/gmaps/gmaps_baselayer.js
./src/geo/gmaps/gmaps_cartodb_layer.js
./src/geo/leaflet/leaflet.geometry.js
./src/geo/leaflet/leaflet.geometry.js
./src/geo/gmaps/gmaps_plainlayer.js
./src/geo/gmaps/gmaps.geometry.js
./src/geo/leaflet/leaflet.js
./src/geo/leaflet/leaflet.js
./src/geo/gmaps/gmaps_tiledlayer.js
./src/geo/gmaps/gmaps.js
./src/geo/gmaps/gmaps_base.js
./src/geo/gmaps/gmaps_base.js
./src/geo/gmaps/gmaps_cartodb_layergroup.js
./src/ui/common/dialog.js
./src/geo/gmaps/gmaps_baselayer.js
./src/geo/gmaps/gmaps_baselayer.js
./src/geo/gmaps/gmaps_cartodb_layer.js
./src/ui/common/share.js
./src/geo/gmaps/gmaps_plainlayer.js
./src/geo/gmaps/gmaps_plainlayer.js
./src/geo/gmaps/gmaps.geometry.js
./src/ui/common/notification.js
./src/geo/gmaps/gmaps_tiledlayer.js
./src/geo/gmaps/gmaps_tiledlayer.js
./src/geo/gmaps/gmaps.js
./src/ui/common/table.js
./src/geo/gmaps/gmaps_cartodb_layergroup.js
./src/geo/gmaps/gmaps_cartodb_layergroup.js
./src/ui/common/dialog.js
./src/ui/common/dropdown.js
./src/geo/gmaps/gmaps_cartodb_layer.js
./src/geo/gmaps/gmaps_cartodb_layer.js
./src/ui/common/share.js
./src/vis/vis.js
./src/geo/gmaps/gmaps.geometry.js
./src/geo/gmaps/gmaps.geometry.js
./src/ui/common/notification.js
./src/geo/gmaps/gmaps.js
./src/geo/gmaps/gmaps.js
./src/ui/common/table.js
./src/vis/image.js
./src/ui/common/dialog.js
./src/ui/common/dialog.js
./src/ui/common/dropdown.js
./src/ui/common/share.js
./src/vis/overlays.js
./src/ui/common/share.js
./src/vis/vis.js
./src/ui/common/notification.js
./src/ui/common/notification.js
./src/vis/layers.js
./src/ui/common/table.js
./src/ui/common/table.js
./src/api/layers.js
./src/vis/image.js
./src/ui/common/dropdown.js
./src/api/sql.js
./src/ui/common/dropdown.js
./src/vis/overlays.js
./src/vis/vis.js
./src/vis/vis.js
./src/api/vis.js
./src/vis/layers.js
./src/api/layers.js
./src/vis/image.js
./src/vis/image.js
Makefile:21: recipe for target 'dist/cartodb.full.uncompressed.js' failed
make[1]: Leaving directory '/home/ubuntu/cartodb/lib/assets/javascripts/cdb'
Makefile:435: recipe for target 'update_cdb' failed
, fs.js:128
throw new ERR_INVALID_CALLBACK();
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:128:9)
at Object.writeFile (fs.js:1163:14)
at /home/ubuntu/cartodb/lib/assets/javascripts/cdb/scripts/compress.js:64:14
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
make[1]: [dist/cartodb.full.uncompressed.js] Error 1
make: [update_cdb] Error 2
)
Task 'cdb' took 4498ms

Version

carto v4.38.0
node v10.21.0
npm 6.14.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant