Following the tutorials at https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ on Ubuntu 15.04, I am getting a error at the step where I build the OSMBright.xml style sheet. Not sure why - I have made sure node and all dependencies in the process are set up and mapnik, renderd, mod_tile, osm2pgsql are all installed as well (server is running the pbf import right now in fact.) (I still have the old "XML" based format running at this time which works fine.) At the end of the process to creating the stylesheet I am getting this error. I have went through the steps for this 6 times and get the same error. I chown'd the /usr/local/share/maps/style directory to my username. I also attempted to do all this as root via sudo su but got the same results. carto project.mml > OSMBright.xml
asked 02 May '15, 23:20 f00dl3a aseerel4c26 ♦ |
Fixed. Corrupt OS installation due to a failing SATA chip on the motherboard. Totally failed yesterday, and on the new system this error is no longer present. answered 08 May '15, 03:53 f00dl3a |
(when anything goes wrong, suspect node.js)
What does "node -v" return? For info I'm seeing v0.10.37 on an Ubuntu 14.04 box with a PPA for node (see http://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1404_tileserver#Things_that_need_nodejs )
Node -v (and node alone) does not return anything, justexits back to term, had to use nodejs -v -- returns 0.10.28
Do you have the fix for the conflicting names for node(js) on Ubuntu installed?
sudo apt-get install nodejs-legacy
WHile I think it is very unlikely that it is causing the issue, who knows with node.js :-)
That fixed the node problem but not the error.
v0.10.28 astump@astump-EX58-UD4P:~$ cd /usr/local/share/maps/style/OSMBright/ astump@astump-EX58-UD4P:/usr/local/share/maps/style/OSMBright$ carto project.mml > OSMBright.xml
/usr/lib/nodejs/carto/lib/carto/tree/reference.js:19 if (mapnik_reference.version.hasOwnProperty(version)) { ^ TypeError: Cannot call method 'hasOwnProperty' of undefined at Object.ref.setVersion (/usr/lib/nodejs/carto/lib/carto/tree/reference.js:19 34) at /usr/lib/nodejs/carto/lib/carto/tree/reference.js:209:5 at Object.<anonymous> (/usr/lib/nodejs/carto/lib/carto/tree/reference.js:213:3 at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at exports.(anonymous function) (/usr/lib/nodejs/carto/lib/carto/index.js:73:5 Astump@astump-EX58-UD4P:/usr/local/share/maps/style/OSMBright$
I thought maybe node didn't have mapnik installed so I did npm install -g carto and npm install -g mapnik, but that did not resolve the problem either. Still getting the same error message. I downloaded the 3.x version via npm install -g mapnik@3.x but still the same message. (mapnik_reference.version.hasOwnProperty(version))