Subject: Overpass API developpement
List archive
- From: Igor Brejc <>
- To:
- Subject: Re: [overpass] Segmentation fault
- Date: Tue, 29 Aug 2017 21:06:11 +0200
Great catch, thanks!
About systemd and sudo: I followed the official installation guide, including the service configuration: http://wiki.openstreetmap.org/w/index.php?title=Overpass_API/Installation&mobileaction=toggle_view_desktop#Ubuntu_systemd
Ok, I will try to update the service configuration to use the same non-root account and will let you know how it goes.
On Aug 29, 2017 20:49, "mmd" <> wrote:
Am 29.08.2017 um 20:21 schrieb mmd:
>
>
> Am 29.08.2017 um 20:19 schrieb Roland Olbricht:
>> Hi,
>>
>>> https://wiki.openstreetmap.org/wiki/User:Breki/Overpass_API_Installation
>>
>> thank you for the documentation. There are quite a number of "sudo"
>> command lines in the documentation. Could you please check whether the
>> dispatcher is running as normal user (in particular same user as
>> apply_osc_to_db.sh) or root?
>>
OK, confirming the assumption. Running dispatcher as root and
update_from_dir as normal user reliably triggers the segfault:
Way 491657051 used in relation 7188638 not found.
Way 491657050 used in relation 7188638 not found.
Way 494282003 used in relation 7188638 not found.
Way 491657035 used in relation 7188638 not found.
Flushing to database ....... done.
terminate called after throwing an instance of 'File_Error'
Abgebrochen (Speicherabzug geschrieben)
In strace:
open("/home/overpass/db/nodes.bin.idx.shadow", O_RDWR|O_CREAT, 0666) =
-1 EACCES (Permission denied)
That's because the shadow files have been created by the dispatcher as
part of "copy_file" and are now owned by root, all other files by a
normal user.
-rw-r--r-- 1 root root 0 Aug 29 20:39 nodes_tagged.bin.shadow
-rw-r--r-- 1 root root 40 Aug 29 20:39 nodes_tagged.bin.idx.shadow
-rw-r--r-- 1 root root 0 Aug 29 20:39 nodes.map.shadow
-rw-r--r-- 1 root root 596984 Aug 29 20:39 nodes.map.idx.shadow
-rw-r--r-- 1 root root 0 Aug 29 20:39 nodes.bin.shadow
-rw-r--r-- 1 root root 1144 Aug 29 20:39 nodes.bin.idx.shadow
--
- Re: [overpass] Segmentation fault, mmd, 08/28/2017
- Re: [overpass] Segmentation fault, Igor Brejc, 08/29/2017
- Re: [overpass] Segmentation fault, Roland Olbricht, 08/29/2017
- Re: [overpass] Segmentation fault, mmd, 08/29/2017
- Re: [overpass] Segmentation fault, mmd, 08/29/2017
- Re: [overpass] Segmentation fault, Igor Brejc, 08/29/2017
- Re: [overpass] Segmentation fault, Roland Olbricht, 08/29/2017
- Re: [overpass] Segmentation fault, Igor Brejc, 08/30/2017
- Re: [overpass] Segmentation fault, Igor Brejc, 08/31/2017
- Re: [overpass] Segmentation fault, Roland Olbricht, 08/29/2017
- Re: [overpass] Segmentation fault, Igor Brejc, 08/29/2017
- Re: [overpass] Segmentation fault, mmd, 08/29/2017
- Re: [overpass] Segmentation fault, mmd, 08/29/2017
- Re: [overpass] Segmentation fault, Roland Olbricht, 08/29/2017
- Re: [overpass] Segmentation fault, Igor Brejc, 08/29/2017
- Re: [overpass] Segmentation fault, Roland Olbricht, 08/29/2017
Archive powered by MHonArc 2.6.19+.