View Issue Details

IDProjectCategoryView StatusLast Update
0000366Pgpool-IIBugpublic2017-12-22 17:42
Reporterwdzj Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionopen 
PlatformDockerOSCentosOS Version6
Product Version3.6.6 
Summary0000366: failed: FATAL: failed to read kind from backend
DescriptionI also saw the two address content.I am using the 3.6.6 version, But there are still problems.
There are 3 PostgreSQL 9.6 servers.Are the default configuration.
I did not configure it?
Tools and data are in the attachment.
English is not good, hope can understand, thank you
http://www.pgpool.net/mantisbt/view.php?id=271
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commitdiff;h=adcb63696b55463d6f6aa493b1b510e135ea67d7
Steps To ReproduceUse osm2pgsql tool import osm data error
shell:
osm2pgsql -H localhost -U postgres -d opengis -s -S ./default.style ./bhutan-latest.osm
Additional Informationosm2pgsql SVN version af61cae663 (64bit id space)

release notes: 'Windows version built by Dominik Perpeet (http://www.customdebug
.com/osm2pgsql/index.html)'
Using projection SRS 900913 (Spherical Mercator)
Unknown flag 'nocolumn' line 157, ignored
Unknown flag 'nocolumn' line 158, ignored
Unknown flag 'nocolumn' line 159, ignored
Unknown flag 'nocolumn' line 160, ignored
Unknown flag 'nocolumn' line 161, ignored
Unknown flag 'nocolumn' line 162, ignored
Setting up table: planet_osm_point
NOTICE: table "planet_osm_point" does not exist, skipping
NOTICE: table "planet_osm_point" does not exist, skipping
NOTICE: table "planet_osm_point" does not exist, skipping
NOTICE: table "planet_osm_point_tmp" does not exist, skipping
NOTICE: table "planet_osm_point_tmp" does not exist, skipping
NOTICE: table "planet_osm_point_tmp" does not exist, skipping
WARNING: packet kind of backend 0 ['C'] does not match with master/majority nod
es packet kind ['E']
ALTER TABLE planet_osm_point ALTER COLUMN way SET NOT NULL;
 failed: FATAL: failed to read kind from backend
DETAIL: kind mismatch among backends. Possible last query was: "ALTER TABLE pla
net_osm_point ALTER COLUMN way SET NOT NULL;
" kind details are: 0[C] 1[E: column "way" of relation "planet_osm_point" does n
ot exist] 2[E: column "way" of relation "planet_osm_point"
message contents do not agree with length in message type "E"
FATAL: failed to read kind from backend
DETAIL: kind mismatch among backends. Possible last query was: "ALTER TABLE pla
net_osm_point ALTER COLUMN way SET NOT NULL;
" kind details are: 0[C] 1[E: column "way" of relation "planet_osm_point" does n
ot exist] 2[E: column "way" of relation "planet_osm_point"
message contents do not agree with length in message type "E"

Error occurred, cleaning up
TagsNo tags attached.

Activities

wdzj

2017-11-13 16:04

reporter   ~0001824

Tools and data
osm2pgsql.7z (11,144,006 bytes)

t-ishii

2017-11-13 17:12

developer   ~0001825

Can you share pgpool.conf?

wdzj

2017-11-13 17:16

reporter   ~0001826

pgpool.conf
pgpool.conf (36,811 bytes)

t-ishii

2017-11-13 17:18

developer   ~0001827

Why don't you use streaming replication mode?

wdzj

2017-11-13 17:20

reporter   ~0001828

replication_mode = on
This is replication mode?

t-ishii

2017-11-13 17:25

developer   ~0001829

Yes, kind of. But these days users tend to prefer to use PostgreSQL streaming replication and set "master_slave = on" "master_slave_sub_mode = 'stream' (we call this "streaming replication mode") because it less restriction and more reliable than "replication_mode = on" (we call this "native replication mode").

wdzj

2017-11-13 17:26

reporter   ~0001830

I saw on the Internet,The master reading and writing,Slave read-only.I think everything can be read and write,So using replication mode.

t-ishii

2017-11-13 17:35

developer   ~0001831

You have to be very careful not to mess up your database then. I am afraid your database has been already messed up.

The error message indicates that table "planet_osm_point" does not exist on node 1 and 2. Or column "way" does not exist on node 1 and 2. Apparently your databases are not consistent.

: "ALTER TABLE planet_osm_point ALTER COLUMN way SET NOT NULL;
" kind details are: 0[C] 1[E: column "way" of relation "planet_osm_point" does n
ot exist] 2[E: column "way" of relation "planet_osm_point"
message contents do not agree with length in message type "E"

wdzj

2017-11-13 17:40

reporter   ~0001832

Thank you for reminding me, use the test database now. :)
Have a question to ask, "replication_mode = on” if a database outage, restart couldn't guarantee consistent data?

t-ishii

2017-12-08 11:17

developer   ~0001848

Right. That's one of the reasons why I recommend streaming replication mode.

t-ishii

2017-12-13 15:21

developer   ~0001864

May I close this issue?

wdzj

2017-12-18 10:04

reporter   ~0001869

It can be turned off, and I've changed a pattern to avoid this problem.

Issue History

Date Modified Username Field Change
2017-11-13 15:55 wdzj New Issue
2017-11-13 16:04 wdzj File Added: osm2pgsql.7z
2017-11-13 16:04 wdzj Note Added: 0001824
2017-11-13 17:12 t-ishii Note Added: 0001825
2017-11-13 17:16 wdzj File Added: pgpool.conf
2017-11-13 17:16 wdzj Note Added: 0001826
2017-11-13 17:18 t-ishii Note Added: 0001827
2017-11-13 17:20 wdzj Note Added: 0001828
2017-11-13 17:25 t-ishii Note Added: 0001829
2017-11-13 17:26 wdzj Note Added: 0001830
2017-11-13 17:35 t-ishii Note Added: 0001831
2017-11-13 17:40 wdzj Note Added: 0001832
2017-12-08 11:17 t-ishii Note Added: 0001848
2017-12-13 15:21 t-ishii Note Added: 0001864
2017-12-13 15:22 t-ishii Status new => feedback
2017-12-18 10:04 wdzj Note Added: 0001869
2017-12-18 10:04 wdzj Status feedback => new
2017-12-22 17:42 t-ishii Status new => closed