<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Ok, rebuilt and got through the function creation.  But now the rake is aborted.  What is the phantomjs?  I manually downloaded it but nothing changed.</div><div><br></div><div>gis@golarion:~/openstreetmap-website/db/functions$ bundle exec rake test:db --trace<br>(in /home/gis/openstreetmap-website)<br>** Invoke test:db (first_time)<br>** Invoke db:test:prepare (first_time)<br>** Invoke db:load_config (first_time)<br>** Invoke environment (first_time)<br>** Execute environment<br>** Execute db:load_config<br>** Execute db:test:prepare<br>** Invoke db:test:load (first_time)<br>** Invoke db:test:purge (first_time)<br>** Invoke db:load_config<br>** Invoke db:check_protected_environments (first_time)<br>** Invoke db:load_config<br>** Execute db:check_protected_environments<br>** Execute db:test:purge<br>** Execute db:test:load<br>** Invoke db:test:load_structure (first_time)<br>** Invoke db:test:purge<br>** Execute db:test:load_structure<br> set_config<br>------------</div><div>(1 row)</div><div>** Invoke test (first_time)<br>** Execute test<br>[Coveralls] Set up the SimpleCov formatter.<br>[Coveralls] Using SimpleCov's 'rails' settings.<br>rake aborted!<br>Errno::ENOENT: No such file or directory - phantomjs<br>/home/gis/openstreetmap-website/test/application_system_test_case.rb:7:in `popen'<br>/home/gis/openstreetmap-website/test/application_system_test_case.rb:7:in `<top (required)>'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'<br>/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'<br>/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'<br>/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'<br>/home/gis/openstreetmap-website/test/system/diary_entry_test.rb:1:in `<top (required)>'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'<br>/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'<br>/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'<br>/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'<br>/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'<br>/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:50:in `block in load_tests'<br>/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:50:in `each'<br>/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:50:in `load_tests'<br>/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:39:in `run'<br>/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:35:in `rake_run'<br>/home/gis/openstreetmap-website/lib/tasks/testing.rake:2:in `block in <main>'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `block in execute'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `each'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `execute'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:214:in `block in invoke_with_call_chain'<br>/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:238:in `block in invoke_prerequisites'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `each'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `invoke_prerequisites'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:213:in `block in invoke_with_call_chain'<br>/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:194:in `invoke_with_call_chain'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:183:in `invoke'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:160:in `invoke_task'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block (2 levels) in top_level'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `each'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block in top_level'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:125:in `run_with_threads'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:110:in `top_level'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:83:in `block in run'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'<br>/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'<br>/usr/local/bin/rake:22:in `load'<br>/usr/local/bin/rake:22:in `<main>'<br>Tasks: TOP => test:db => test<br>[Coveralls] Outside the CI environment, not sending data.<br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Sun, Jan 27, 2019 at 3:10 PM Austin Harrison <<a href="mailto:harrija0@gmail.com">harrija0@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Update, Problem with creating function in PostgreSQL database <span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;direction:ltr;font-size-adjust:none;font-stretch:100%;float:none;background-color:rgb(255,255,255)">openstreetmap</span><span style="font:400 13.33px/19.99px Arial,Helvetica,sans-serif;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;direction:ltr;font-size-adjust:none;font-stretch:100%;float:none;background-color:rgb(255,255,255)">.  While trying to reinstall the databases I encountered this error preventing me from creating the three functions:  <span style="font:400 13.6px/19.72px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;text-align:left;color:rgb(36,41,46);text-transform:none;text-indent:0px;letter-spacing:normal;text-decoration:none;word-spacing:0px;display:inline;white-space:pre-wrap;word-break:normal;word-wrap:normal;font-size-adjust:none;font-stretch:normal;float:none;background-color:transparent">psql -d openstreetmap -c "CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 AS '`pwd`/db/functions/libpgosm', 'maptile_for_point' LANGUAGE C STRICT"  I did replace the pwd with my path.  It is returning no such file or directory.  I have a libpgosm file that was used to make libpgosm.so.  However no other file or folder are present.  

Any help would be appreciated,
Austin
</span></span></div></div></div></div><br><div class="gmail_quote"><div class="gmail-m_-1244527838497755437gmail_attr" dir="ltr">On Sun, Jan 27, 2019 at 11:31 AM Austin Harrison <<a href="mailto:harrija0@gmail.com" target="_blank">harrija0@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Good day,  I am trying to set up the web front end on my local server for a custom world.  I followed directions on switch2osm and have a working tile server.  I then followed directions for the rails port of OpenStreetMap-website and have a web front end.  It lets me log in and I have registered the app.  I have two issues (and maybe more).</div><div><br></div><div>1) Configure local tile server:  When I try to edit the leaflet.js and OpenStreetMap.js files under /vendor/assets I only get a grey background in my website at <a href="http://localhost:3000" target="_blank">http://localhost:3000</a>.  My tile server: <a href="http://golarionmap.arma5.com/pf/0/0/0.png" target="_blank">http://golarionmap.arma5.com/pf/0/0/0.png</a></div><div><br></div><div>2) the osm database did not create during rake.  I populated the openstreetmap database with my custom world osm file (only 25mb).  I can see the data in QGIS.  However when it rakes it says 'Model files unchanged' and exits happily.  </div><div><br></div><div>gis@golarion:~/openstreetmap-website$ bundle exec rake db:migrate<br>pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options)<br>advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options)<br>optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options)<br>pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)<br>jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)<br>jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)<br>jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options)<br>gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options)<br>svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)<br>Model files unchanged.<br><br></div><div>Here is what I get when I run rails: </div><div>gis@golarion:~/openstreetmap-website/vendor/assets/leaflet$ bundle exec rails server<br>=> Booting Puma<br>=> Rails 5.2.2 application starting in development<br>=> Run `rails server -h` for more startup options<br>pngcrush worker: `pngcrush` not found; please provide proper binary or disable this worker (--no-pngcrush argument or `:pngcrush => false` through options)<br>advpng worker: `advpng` not found; please provide proper binary or disable this worker (--no-advpng argument or `:advpng => false` through options)<br>optipng worker: `optipng` not found; please provide proper binary or disable this worker (--no-optipng argument or `:optipng => false` through options)<br>pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)<br>jhead worker: `jhead` not found, `jpegtran` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)<br>jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)<br>jpegtran worker: `jpegtran` not found; please provide proper binary or disable this worker (--no-jpegtran argument or `:jpegtran => false` through options)<br>gifsicle worker: `gifsicle` not found; please provide proper binary or disable this worker (--no-gifsicle argument or `:gifsicle => false` through options)<br>svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)<br>Puma starting in single mode...<br>* Version 3.12.0 (ruby 2.3.8-p459), codename: Llamas in Pajamas<br>* Min threads: 5, max threads: 5<br>* Environment: development<br>* Listening on tcp://<a href="http://0.0.0.0:3000" target="_blank">0.0.0.0:3000</a><br><br></div><div>Perhaps #1 is related to #2 but even so, if the working tile server is rendering from the other database why can't I get it to show as the background map like the default OSM tile set?</div><div><br></div><div>Thanks for your help,</div><div>Austin (osm:harrija0)</div></div></div></div></div>
</blockquote></div>
</blockquote></div>