NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

/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)

asked 02 May '15, 23:20

f00dl3a's gravatar image

f00dl3a
1714413
accept rate: 25%

edited 02 May '15, 23:34

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

(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 )

(03 May '15, 13:33) SomeoneElse ♦
1

Node -v (and node alone) does not return anything, justexits back to term, had to use nodejs -v -- returns 0.10.28

(03 May '15, 14:20) f00dl3a
1

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 :-)

(03 May '15, 17:08) SimonPoole ♦

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$

(03 May '15, 17:39) f00dl3a

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))

(04 May '15, 16:43) f00dl3a

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.

permanent link

answered 08 May '15, 03:53

f00dl3a's gravatar image

f00dl3a
1714413
accept rate: 25%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×293
×204
×44
×23
×2

question asked: 02 May '15, 23:20

question was seen: 5,985 times

last updated: 08 May '15, 03:53

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum