Subject: Overpass API developpement
List archive
- From: mmd <>
- To:
- Subject: Re: [overpass] Segmentation fault
- Date: Tue, 29 Aug 2017 20:48:55 +0200
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+.