Re: [OSM-dev] rails test failure

2013-02-12 Thread Tom Hughes

On 11/02/13 18:53, Кирилл Бестужев wrote:


I'm trying to install Rails port on Ubuntu 12.10 (or OpenSuse 12.2).

Everything done accordung to wiki, but on both systems the rake tests
fail with same error:

Errors running test:functionals! #RuntimeError: Command failed with
status (1): [ruby -Ilib:test
-I/var/lib/gems/1.8/gems/rake-10.0.2/lib
/var/lib/gems/1.8/gems/rake-10.0.2/lib/rake/rake_test_loader.rb
test/functional/**/*_test.rb ]

What can be the problem and what to do?


Well it's impossible to say without more of the output - that is just 
the last line which says something failed but it should have reported 
the details of the actual failure before that.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Кирилл Бестужев
Tom,

Unfortunatelly there is no other output about errors. The previous
test passes ok. I'll post the full output in the evening, I have no
acces to the server right now.

Kirill

2013/2/12 Tom Hughes t...@compton.nu:
 On 11/02/13 18:53, Кирилл Бестужев wrote:

 I'm trying to install Rails port on Ubuntu 12.10 (or OpenSuse 12.2).

 Everything done accordung to wiki, but on both systems the rake tests
 fail with same error:

 Errors running test:functionals! #RuntimeError: Command failed with
 status (1): [ruby -Ilib:test
 -I/var/lib/gems/1.8/gems/rake-10.0.2/lib
 /var/lib/gems/1.8/gems/rake-10.0.2/lib/rake/rake_test_loader.rb
 test/functional/**/*_test.rb ]

 What can be the problem and what to do?


 Well it's impossible to say without more of the output - that is just the
 last line which says something failed but it should have reported the
 details of the actual failure before that.

 Tom

 --
 Tom Hughes (t...@compton.nu)
 http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Marc Schütz
 Hi!
 
 I'm trying to install Rails port on Ubuntu 12.10 (or OpenSuse 12.2).
 
 Everything done accordung to wiki, but on both systems the rake tests
 fail with same error:
 
 Errors running test:functionals! #RuntimeError: Command failed with
 status (1): [ruby -Ilib:test
 -I/var/lib/gems/1.8/gems/rake-10.0.2/lib
 /var/lib/gems/1.8/gems/rake-10.0.2/lib/rake/rake_test_loader.rb
 test/functional/**/*_test.rb ]
 
 What can be the problem and what to do?

FWIW: status 1 _probably_ means EPERM in this case.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Кирилл Бестужев
Marc,

you mean I need to check the permissions for the files? What
permissions shall I set for them (I did not change them at all!)



Kirill

2013/2/12 Marc Schütz schue...@gmx.net:
 Hi!

 I'm trying to install Rails port on Ubuntu 12.10 (or OpenSuse 12.2).

 Everything done accordung to wiki, but on both systems the rake tests
 fail with same error:

 Errors running test:functionals! #RuntimeError: Command failed with
 status (1): [ruby -Ilib:test
 -I/var/lib/gems/1.8/gems/rake-10.0.2/lib
 /var/lib/gems/1.8/gems/rake-10.0.2/lib/rake/rake_test_loader.rb
 test/functional/**/*_test.rb ]

 What can be the problem and what to do?

 FWIW: status 1 _probably_ means EPERM in this case.

 ___
 dev mailing list
 dev@openstreetmap.org
 http://lists.openstreetmap.org/listinfo/dev

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Tom Hughes

On 12/02/13 10:28, Кирилл Бестужев wrote:


you mean I need to check the permissions for the files? What
permissions shall I set for them (I did not change them at all!)


I don't see any reason to believe that it's EPERM rather than something 
else - an exit status of one is a pretty generic something went wrong 
code.


Just post the full output when you can.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


[OSM-dev] Data: DB Error: no such table

2013-02-12 Thread Steven Walsh
Hello,

I'm trying to build nominatim but found this error when it as complete: Data:
DB Error: no such table


From looking around similar questions it seems that rebuilding is the only
option but I wanted to ask you if there was anything else that could be
done as I'd rather not have to wait again. The only thing maybe of interest
is that nominatim is built on a mounted data partition and I was thinking
it could just be looking in the wrong places for the database, but I've no
idea where to look.

You can see the page at maps.livemobileco.com if that helps. I hope you can
help me, thanks a million.

Steve Walsh
___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] osmosis 32/64 ID failure

2013-02-12 Thread NopMap

Hi!


Brett Henderson wrote
 I believe it was fixed in Osmosis 0.38.  But I'd recommend using 0.41 (ie.
 the latest) if possible.

Unfortunately, it is only partially fixed. I tried Osmosis 0.41. It works if
you use the indexType Dynamic, but it fails with a MAXINT exception if you
try to use BitSet.

The wiki claims that 0.42 would work in all cases [1].

Is there a reason that 0.42 is not available?

bye, Nop

[1] http://wiki.openstreetmap.org/wiki/64-bit_Identifiers




--
View this message in context: 
http://gis.19327.n5.nabble.com/osmosis-32-64-ID-failure-tp5748734p5749176.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Кирилл Бестужев
Hi everybody!

Changed the permissions, launched again. The error changed to 3...

The full output below:

rake test --trace

** Invoke test (first_time)
** Execute test
** Invoke test:run (first_time)
** Execute test:run
** Invoke test:units (first_time)
** Invoke test:prepare (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:structure:dump
** Invoke db:test:load_structure (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:test:purge
** Execute db:test:load_structure
** Invoke db:structure:load (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:structure:load
** Execute db:test:clone_structure
** Execute test:prepare
** Execute test:units
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

Entity:
line 1: parser error : Attribute lat redefined
osmnode id='123' lon='23.23' lat='23.1' lat='12' changeset='23' version='23'
   ^
Entity: line 1: parser error : Attribute lat redefined
osmnode id='123' lon='23.23' lat='23.1' lat='12' changeset='23' version='23'
   ^


Finished tests in 41.798743s, 7.6557 tests/s, 4885.0034 assertions/s.

320 tests, 204187 assertions, 0 failures, 0 errors, 0 skips
** Invoke test:functionals (first_time)
** Invoke test:prepare
** Execute test:functionals
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

..F.F.F..

Finished tests in -90380511.748464s, -0. tests/s, -0. assertions/s.

  1) Failure:
test_changes_simple(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:236]:
Expected response to be a :success, but was 500

  2) Failure:
test_changes_zoom_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:260]:
Expected response to be a :success, but was 500

  3) Failure:
test_hours_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:289]:
Expected response to be a :success, but was 500

277 tests, 3498 assertions, 3 failures, 0 errors, 0 skips
** Invoke test:integration (first_time)
** Invoke test:prepare
** Execute test:integration
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

..

Finished tests in 71.010722s, 0.5915 tests/s, 48.7532 assertions/s.

42 tests, 3462 assertions, 0 failures, 0 errors, 0 skips
Errors running test:functionals! #RuntimeError: Command failed with
status (3): [ruby -Ilib:test
-I/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib
/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_test_loader.rb
test/functional/**/*_test.rb ]


This is the full output...

Lunching only the last command gives this:
ruby -Ilib:test -I/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib
/usr/lib/ruby/gems/1.9.1/gems/rake-10.0.3/lib/rake/rake_test_loader.rb
test/functional/**/*_test.rb
Rack::File headers parameter replaces cache_control after Rack 1.5.
Run options:

# Running tests:

..F.F.F..

Finished tests in -90380812.681610s, -0. tests/s, -0. assertions/s.

  1) Failure:
test_changes_simple(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:236]:
Expected response to be a :success, but was 500

  2) Failure:
test_changes_zoom_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:260]:
Expected response to be a :success, but was 500

  3) Failure:

Re: [OSM-dev] rails test failure

2013-02-12 Thread Tom Hughes

On 12/02/13 19:45, Кирилл Бестужев wrote:


   1) Failure:
test_changes_simple(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:236]:
Expected response to be a :success, but was 500

   2) Failure:
test_changes_zoom_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:260]:
Expected response to be a :success, but was 500

   3) Failure:
test_hours_valid(ApiControllerTest)
[/home/ezhick/fork/openstreetmap-website/test/functional/api_controller_test.rb:289]:
Expected response to be a :success, but was 500


You haven't installed the 3GL database functions.

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Кирилл Бестужев
2013/2/12 Tom Hughes t...@compton.nu:
 You haven't installed the 3GL database functions.

Tom, sorry, I see no instructions on how to do it on the wiki...
Neither I found it on google...

Kirill

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] rails test failure

2013-02-12 Thread Tom Hughes

On 12/02/13 19:57, Кирилл Бестужев wrote:

2013/2/12 Tom Hughes t...@compton.nu:

You haven't installed the 3GL database functions.


Tom, sorry, I see no instructions on how to do it on the wiki...
Neither I found it on google...


http://wiki.openstreetmap.org/wiki/Rails#Installing_the_quadtile_functions_.28For_PgSQL.29

Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Data: DB Error: no such table

2013-02-12 Thread Sarah Hoffmann
On Tue, Feb 12, 2013 at 11:54:16AM +, Steven Walsh wrote:
 Hello,
 
 I'm trying to build nominatim but found this error when it as complete: Data:
 DB Error: no such table
 
 
 From looking around similar questions it seems that rebuilding is the only
 option but I wanted to ask you if there was anything else that could be
 done as I'd rather not have to wait again. The only thing maybe of interest
 is that nominatim is built on a mounted data partition and I was thinking
 it could just be looking in the wrong places for the database, but I've no
 idea where to look.

It looks like the php script can find a database called 'nominatim' and can
also access it but it is somehow completely empty. Are you sure that the
import process finished successfully? Did you run any additional setup commands
after the import? If you are convinced that the import was ok, you should try 
to 
find out where your data went. Can you access the database from the command 
line (using
psql -d nominatim) and can you see the data in there? Also look out for
multiple versions of postgresql being installed in parallel.

Sarah

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] osmosis 32/64 ID failure

2013-02-12 Thread Brett Henderson
On 13 February 2013 06:21, NopMap ekkeh...@gmx.de wrote:


 Hi!


 Brett Henderson wrote
  I believe it was fixed in Osmosis 0.38.  But I'd recommend using 0.41
 (ie.
  the latest) if possible.

 Unfortunately, it is only partially fixed. I tried Osmosis 0.41. It works
 if
 you use the indexType Dynamic, but it fails with a MAXINT exception if you
 try to use BitSet.


Only Dynamic will work correctly from now on.  Unless somebody wants to
step up and create 64-bit capable BitSet and IdList implementations, but I
don't think there's much point.  The other options probably should be
removed now.


 The wiki claims that 0.42 would work in all cases [1].


It appears to have been updated now.



 Is there a reason that 0.42 is not available?


Simply a lack of time, and to be honest I didn't realise there was any
urgency.  I'll do it as soon as I can.


 bye, Nop

 [1] http://wiki.openstreetmap.org/wiki/64-bit_Identifiers

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] osmosis 32/64 ID failure

2013-02-12 Thread NopMap

Hi!

So which of the two statements is true?

1. 64bit IDs are only supported in 64bit tracker, so 0.42 will change
nothing and it's just a matter of documentation. The 64bit wiki page is
wrong.

2. 64bit IDs are supported in all index types in 0.42 as stated on the 64bit
wiki page.

bye, Nop





--
View this message in context: 
http://gis.19327.n5.nabble.com/osmosis-32-64-ID-failure-tp5748734p5749208.html
Sent from the Developer Discussion mailing list archive at Nabble.com.

___
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev