Configure local tile server in OSM-Website

Austin Harrison harrija0 at gmail.com
Sun Jan 27 21:45:07 UTC 2019


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.

gis at golarion:~/openstreetmap-website/db/functions$ bundle exec rake test:db
--trace
(in /home/gis/openstreetmap-website)
** Invoke test:db (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:load_config
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke db:load_config
** Invoke db:check_protected_environments (first_time)
** Invoke db:load_config
** Execute db:check_protected_environments
** Execute db:test:purge
** Execute db:test:load
** Invoke db:test:load_structure (first_time)
** Invoke db:test:purge
** Execute db:test:load_structure
 set_config
------------
(1 row)
** Invoke test (first_time)
** Execute test
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's 'rails' settings.
rake aborted!
Errno::ENOENT: No such file or directory - phantomjs
/home/gis/openstreetmap-website/test/application_system_test_case.rb:7:in
`popen'
/home/gis/openstreetmap-website/test/application_system_test_case.rb:7:in
`<top (required)>'
/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
`require'
/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'
/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in
`register'
/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'
/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in
`require'
/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
`block in require'
/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in
`load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
`require'
/home/gis/openstreetmap-website/test/system/diary_entry_test.rb:1:in `<top
(required)>'
/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
`require'
/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'
/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in
`register'
/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'
/var/lib/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in
`require'
/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
`block in require'
/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in
`load_dependency'
/var/lib/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
`require'
/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:50:in
`block in load_tests'
/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:50:in
`each'
/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:50:in
`load_tests'
/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:39:in
`run'
/var/lib/gems/2.3.0/gems/railties-5.2.2/lib/rails/test_unit/runner.rb:35:in
`rake_run'
/home/gis/openstreetmap-website/lib/tasks/testing.rake:2:in `block in
<main>'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `block in
execute'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `each'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:273:in `execute'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:214:in `block in
invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:194:in
`invoke_with_call_chain'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:238:in `block in
invoke_prerequisites'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:236:in `each'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:236:in
`invoke_prerequisites'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:213:in `block in
invoke_with_call_chain'
/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:194:in
`invoke_with_call_chain'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/task.rb:183:in `invoke'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:160:in
`invoke_task'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block
(2 levels) in top_level'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `each'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:116:in `block
in top_level'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:125:in
`run_with_threads'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:110:in
`top_level'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:83:in `block
in run'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:186:in
`standard_exception_handling'
/var/lib/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:22:in `load'
/usr/local/bin/rake:22:in `<main>'
Tasks: TOP => test:db => test
[Coveralls] Outside the CI environment, not sending data.


On Sun, Jan 27, 2019 at 3:10 PM Austin Harrison <harrija0 at gmail.com> wrote:

> Update, Problem with creating function in PostgreSQL database
> openstreetmap.  While trying to reinstall the databases I encountered
> this error preventing me from creating the three functions:  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
>
> On Sun, Jan 27, 2019 at 11:31 AM Austin Harrison <harrija0 at gmail.com>
> wrote:
>
>> 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).
>>
>> 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 http://localhost:3000.  My tile server:
>> http://golarionmap.arma5.com/pf/0/0/0.png
>>
>> 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.
>>
>> gis at golarion:~/openstreetmap-website$ bundle exec rake db:migrate
>> pngcrush worker: `pngcrush` not found; please provide proper binary or
>> disable this worker (--no-pngcrush argument or `:pngcrush => false` through
>> options)
>> advpng worker: `advpng` not found; please provide proper binary or
>> disable this worker (--no-advpng argument or `:advpng => false` through
>> options)
>> optipng worker: `optipng` not found; please provide proper binary or
>> disable this worker (--no-optipng argument or `:optipng => false` through
>> options)
>> pngquant worker: `pngquant` not found; please provide proper binary or
>> disable this worker (--no-pngquant argument or `:pngquant => false` through
>> options)
>> jhead worker: `jhead` not found, `jpegtran` not found; please provide
>> proper binary or disable this worker (--no-jhead argument or `:jhead =>
>> false` through options)
>> jpegoptim worker: `jpegoptim` not found; please provide proper binary or
>> disable this worker (--no-jpegoptim argument or `:jpegoptim => false`
>> through options)
>> jpegtran worker: `jpegtran` not found; please provide proper binary or
>> disable this worker (--no-jpegtran argument or `:jpegtran => false` through
>> options)
>> gifsicle worker: `gifsicle` not found; please provide proper binary or
>> disable this worker (--no-gifsicle argument or `:gifsicle => false` through
>> options)
>> svgo worker: `svgo` not found; please provide proper binary or disable
>> this worker (--no-svgo argument or `:svgo => false` through options)
>> Model files unchanged.
>>
>> Here is what I get when I run rails:
>> gis at golarion:~/openstreetmap-website/vendor/assets/leaflet$ bundle exec
>> rails server
>> => Booting Puma
>> => Rails 5.2.2 application starting in development
>> => Run `rails server -h` for more startup options
>> pngcrush worker: `pngcrush` not found; please provide proper binary or
>> disable this worker (--no-pngcrush argument or `:pngcrush => false` through
>> options)
>> advpng worker: `advpng` not found; please provide proper binary or
>> disable this worker (--no-advpng argument or `:advpng => false` through
>> options)
>> optipng worker: `optipng` not found; please provide proper binary or
>> disable this worker (--no-optipng argument or `:optipng => false` through
>> options)
>> pngquant worker: `pngquant` not found; please provide proper binary or
>> disable this worker (--no-pngquant argument or `:pngquant => false` through
>> options)
>> jhead worker: `jhead` not found, `jpegtran` not found; please provide
>> proper binary or disable this worker (--no-jhead argument or `:jhead =>
>> false` through options)
>> jpegoptim worker: `jpegoptim` not found; please provide proper binary or
>> disable this worker (--no-jpegoptim argument or `:jpegoptim => false`
>> through options)
>> jpegtran worker: `jpegtran` not found; please provide proper binary or
>> disable this worker (--no-jpegtran argument or `:jpegtran => false` through
>> options)
>> gifsicle worker: `gifsicle` not found; please provide proper binary or
>> disable this worker (--no-gifsicle argument or `:gifsicle => false` through
>> options)
>> svgo worker: `svgo` not found; please provide proper binary or disable
>> this worker (--no-svgo argument or `:svgo => false` through options)
>> Puma starting in single mode...
>> * Version 3.12.0 (ruby 2.3.8-p459), codename: Llamas in Pajamas
>> * Min threads: 5, max threads: 5
>> * Environment: development
>> * Listening on tcp://0.0.0.0:3000
>>
>> 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?
>>
>> Thanks for your help,
>> Austin (osm:harrija0)
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190127/3cadebf5/attachment-0001.html>


More information about the rails-dev mailing list