/usr/share/doc/slony1-2-doc/adminguide/loganalysis.html is in slony1-2-doc 2.1.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Log Analysis</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:slony1-general@lists.slony.info"><LINK
REL="HOME"
TITLE="Slony-I 2.1.4 Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="Deployment Considerations"
HREF="deploymentconcerns.html"><LINK
REL="PREVIOUS"
TITLE=" Slony-I Upgrade "
HREF="slonyupgrade.html"><LINK
REL="NEXT"
TITLE="Performance Considerations"
HREF="performance.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=ISO-8859-1"><META
NAME="creation"
CONTENT="2014-02-06T00:06:49"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="5"
ALIGN="center"
VALIGN="bottom"
><SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> 2.1.4 Documentation</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="slonyupgrade.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="deploymentconcerns.html"
>Fast Backward</A
></TD
><TD
WIDTH="60%"
ALIGN="center"
VALIGN="bottom"
>Chapter 5. Deployment Considerations</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="top"
><A
HREF="deploymentconcerns.html"
>Fast Forward</A
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="top"
><A
HREF="performance.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="LOGANALYSIS"
>5.5. Log Analysis</A
></H1
><A
NAME="AEN2963"
></A
><P
>Here are some of things that you may find in your <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> logs,
and explanations of what they mean.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN2967"
>5.5.1. CONFIG notices</A
></H2
><A
NAME="AEN2969"
></A
><P
>These entries are pretty straightforward. They are informative
messages about your configuration.</P
><P
>Here are some typical entries that you will probably run into in
your logs:
</P><PRE
CLASS="SCREEN"
>CONFIG main: local node id = 1
CONFIG main: loading current cluster configuration
CONFIG storeNode: no_id=3 no_comment='Node 3'
CONFIG storePath: pa_server=5 pa_client=1 pa_conninfo="host=127.0.0.1 dbname=foo user=postgres port=6132" pa_connretry=10
CONFIG storeListen: li_origin=3 li_receiver=1 li_provider=3
CONFIG storeSet: set_id=1 set_origin=1 set_comment='Set 1'
CONFIG main: configuration complete - starting threads</PRE
><P></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN2974"
>5.5.2. INFO notices</A
></H2
><A
NAME="AEN2976"
></A
><P
> Events that take place that seem like they will generally be of
interest are recorded at the INFO level, and, just as with CONFIG
notices, are always listed. </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN2979"
>5.5.3. DEBUG Notices</A
></H2
><A
NAME="AEN2981"
></A
><P
>Debug notices are of less interest, and will quite likely only
need to be shown if you are running into some problem with <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
>.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN2985"
>5.5.4. Thread name</A
></H2
><A
NAME="AEN2987"
></A
><P
> Notices are always prefaced by the name of the thread from
which the notice originates. You will see messages from the following
threads:
<P
></P
></P><DIV
CLASS="VARIABLELIST"
><DL
><DT
>localListenThread</DT
><DD
><P
> This is the local thread that listens for events on
the local node.</P
></DD
><DT
>remoteWorkerThread-X</DT
><DD
><P
> The thread processing remote events. You can expect
to see one of these for each node that this node communicates
with.</P
></DD
><DT
>remoteListenThread-X</DT
><DD
><P
>Listens for events on a remote node database. You may
expect to see one of these for each node in the
cluster.</P
></DD
><DT
>cleanupThread</DT
><DD
><P
> Takes care
of things like vacuuming, cleaning out the confirm and event tables,
and deleting old data.</P
></DD
><DT
>syncThread</DT
><DD
><P
> Generates SYNC
events.</P
></DD
></DL
></DIV
><P></P
><P
> How much information they display is controlled by the
<TT
CLASS="ENVAR"
>log_level</TT
> <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> parameter; ERROR/WARN/CONFIG/INFO
messages will always be displayed, while choosing increasing values
from 1 to 4 will lead to additional DEBUG level messages being
displayed. </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN3014"
>5.5.5. How to read <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> logs</A
></H2
><A
NAME="AEN3017"
></A
><P
> Note that as far as slon is concerned, there is no
<SPAN
CLASS="QUOTE"
>"master"</SPAN
> or <SPAN
CLASS="QUOTE"
>"slave."</SPAN
> They are just
nodes. </P
><P
>What you can expect, initially, is to see, on both nodes, some
events propagating back and forth. Firstly, there should be some
events published to indicate creation of the nodes and paths. If you
don't see those, then the nodes aren't properly communicating with one
another, and nothing else will happen... </P
><P
></P
><UL
><LI
><P
>Create the two nodes.</P
><P
> No slons are running yet, so there are no logs to look
at.</P
></LI
><LI
><P
> Start the two slons</P
><P
> The logs for each will start out very quiet, as neither node
has much to say, and neither node knows how to talk to another node.
Each node will periodically generate a <TT
CLASS="COMMAND"
>SYNC</TT
> event,
but recognize <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>nothing</I
></SPAN
> about what is going on on
other nodes.</P
></LI
><LI
><P
> Do the <A
HREF="stmtstorepath.html"
>SLONIK STORE
PATH</A
> to set up
communications paths. That will allow the nodes to start to become
aware of one another.</P
><P
> The slon logs should now start to receive events from
<SPAN
CLASS="QUOTE"
>"foreign"</SPAN
> nodes.</P
><P
> If you look at the contents of the tables <A
HREF="table.sl-node.html"
>sl_node</A
> and <A
HREF="table.sl-path.html"
>sl_path</A
> and <A
HREF="table.sl-listen.html"
>sl_listen</A
>, on each node, that should give a good idea
as to where things stand. Until the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> starts,
each node may only be partly configured. If there are two nodes,
there should be two entries in all three of these tables once the
communications configuration is set up properly. If there are fewer
entries than that, well, that should give you some idea of what is
missing.</P
></LI
><LI
><P
> You'll set up the set
(<A
HREF="stmtcreateset.html"
>SLONIK CREATE SET</A
>), add tables
(<A
HREF="stmtsetaddtable.html"
>SLONIK SET ADD TABLE</A
>), and sequences
(<A
HREF="stmtsetaddsequence.html"
>SLONIK SET ADD SEQUENCE</A
>), and will see relevant
events <A
HREF="loganalysis.html#LOGADDOBJECTS"
>Section 5.5.6.7</A
> only in the logs for the origin
node for the set. </P
></LI
><LI
><P
> Then, when you submit the <A
HREF="stmtsubscribeset.html"
>SLONIK SUBSCRIBE SET</A
> request, the event should go to both
nodes. </P
><P
> The origin node has little more to do, after that... The
subscriber will then have a <TT
CLASS="COMMAND"
>COPY_SET</TT
> event, which
will lead to logging information about adding each table and copying
its data. See <A
HREF="loganalysis.html#LOGSUBTIME"
>Section 5.5.6.4</A
> for more
details.</P
></LI
></UL
><P
>After that, you'll mainly see two sorts of behaviour:</P
><P
></P
><UL
><LI
><P
> On the origin, there won't be too terribly much
logged, just indication that some <TT
CLASS="COMMAND"
>SYNC</TT
> events are
being generated and confirmed by other nodes.
See <A
HREF="loganalysis.html#LOGNORMALSYNC"
>Section 5.5.6.6</A
> to see the sorts of log entries to
expect.</P
></LI
><LI
><P
> On the subscriber, there will be reports of
<TT
CLASS="COMMAND"
>SYNC</TT
> events, and that the subscriber pulls data
from the provider for the relevant set(s). This will happen
infrequently if there are no updates going to the origin node; it will
happen frequently when the origin sees heavy updates. </P
></LI
></UL
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN3064"
>5.5.6. Log Messages and Implications</A
></H2
><P
> This section lists numerous of the error messages found in
<SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
>, along with a brief explanation of implications. It is a
fairly comprehensive list, only leaving out some of the
<TT
CLASS="COMMAND"
>DEBUG4</TT
> messages that are almost always
uninteresting.</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="LOGSHIPLOG"
>5.5.6.1. Log Messages Associated with Log
Shipping</A
></H3
><A
NAME="AEN3071"
></A
><P
> Most of these represent errors that come up if
the <A
HREF="logshipping.html"
>Section 4.5</A
> functionality breaks. You may expect
things to break if the filesystem being used for log shipping fills,
or if permissions on that directory are wrongly set. </P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: log archive failed %s - %s\n</TT
> </P
><P
> This indicates that an error was encountered trying to write a
log shipping file. Normally the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> will retry, and hopefully
succeed. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: writing archive log...</TT
></P
><P
> This indicates that a log shipping archive log is being written for a particular <TT
CLASS="COMMAND"
>SYNC</TT
> set. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>INFO: remoteWorkerThread_%d: Run Archive Command %s</TT
></P
><P
> If <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> has been configured (<TT
CLASS="OPTION"
>-x</TT
>
aka <TT
CLASS="ENVAR"
>command_on_logarchive</TT
>) to run a command after
generating each log shipping archive log, this reports when that
process is spawned using <CODE
CLASS="FUNCTION"
>system()</CODE
>. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not open
COPY SET archive file %s - %s</TT
></P
><P
> Seems pretty self-explanatory... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not generate COPY SET archive header %s - %s</TT
></P
><P
> Probably means that we just filled up a filesystem... </P
></LI
><LI
><P
> <TT
CLASS="COMMAND"
>ERROR remoteWorkerThread_%d: "update "_slony_regress1".sl_archive_counter set ac_num = ac_num + 1, ac_timestamp = CURRENT_TIMESTAMP; select ac_num, ac_timestamp from "_slony_regress1".sl_archive_counter; " PGRES_FATAL_ERROR ERROR: could not serialize access due to concurrent update</TT
> </P
><P
> This may occasionally occur when using logshipping; this will
typically happen if there are 3 or more nodes, and there is an attempt
to concurrently process events sourced from different nodes. This
does not represent any serious problem; <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> will retry the event
which failed without the need for administrative intervention. </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="DDLLOGS"
>5.5.6.2. Log Messages - DDL scripts</A
></H3
><A
NAME="AEN3109"
></A
><P
> The handling of DDL is somewhat fragile, as described
in <A
HREF="ddlchanges.html"
>Section 3.3</A
>; here are both informational and error
messages that may occur in the progress of
an <A
HREF="stmtddlscript.html"
>SLONIK EXECUTE SCRIPT</A
> request.</P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: DDL preparation
failed - set %d - only on node %</TT
></P
><P
> Something broke when applying a DDL script on one of the nodes.
This is quite likely indicates that the node's schema differed from
that on the origin; you may need to apply a change manually to the
node to allow the event to proceed. The scary, scary alternative
might be to delete the offending event, assuming it can't possibly
work...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>SLON_CONFIG: remoteWorkerThread_%d: DDL request with %d statements</TT
></P
><P
> This is informational, indicating how many SQL statements were processed. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>SLON_ERROR: remoteWorkerThread_%d: DDL had invalid number of statements - %d</TT
></P
><P
> Occurs if there were < 0 statements (which should be impossible) or > MAXSTATEMENTS statements. Probably the script was bad...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: malloc()
failure in DDL_SCRIPT - could not allocate %d bytes of
memory</TT
></P
><P
> This should only occur if you submit some extraordinarily large
DDL script that makes a <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> run out of memory </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>CONFIG: remoteWorkerThread_%d: DDL Statement %d: [%s]</TT
></P
><P
> This lists each DDL statement as it is submitted. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: DDL Statement failed - %s</TT
></P
><P
> Oh, dear, one of the DDL statements that worked on the origin
failed on this remote node... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>CONFIG: DDL Statement success - %s</TT
></P
><P
> All's well... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not generate DDL archive tracker %s - %s</TT
></P
><P
> Apparently the DDL script couldn't be written to a log shipping file... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not submit DDL script %s - %s</TT
></P
><P
>Couldn't write the script to a log shipping file.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not close DDL script %s - %s</TT
></P
><P
>Couldn't close a log shipping file for a DDL script.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I ddlScript_prepare(): set % not found</TT
></P
><P
> Set wasn't found on this node; you probably gave the wrong ID number... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I ddlScript_prepare_int(): set % not found</TT
></P
><P
> Set wasn't found on this node; you probably gave the wrong ID number... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: alterTableForReplication(): Table with id % not found</TT
></P
><P
> Apparently the table wasn't found; could the schema be messed up? </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: alterTableForReplication(): Table % is already in altered state</TT
></P
><P
> Curious... We're trying to set a table up for replication
a <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>second</I
></SPAN
> time? </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: alterTableRestore(): Table with id % not found</TT
></P
><P
> This runs when a table is being restored to <SPAN
CLASS="QUOTE"
>"non-replicated"</SPAN
> state; apparently the replicated table wasn't found.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: alterTableRestore(): Table % is not in altered state</TT
></P
><P
> Hmm. The table isn't in altered replicated state. That shouldn't be, if replication had been working properly...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>NOTICE: Slony-I: alterTableForReplication(): multiple instances of trigger % on table %'',</TT
></P
><P
> This normally happens if you have a table that had a trigger attached to it that replication hid due to this being a subscriber node, and then you added a trigger by the same name back to replication. Now, when trying to "fix up" triggers, those two triggers conflict. </P
><P
> The DDL script will keep running and rerunning, or the UNINSTALL NODE will keep failing, until you drop the <SPAN
CLASS="QUOTE"
>"visible"</SPAN
> trigger, by hand, much as you must have added it, by hand, earlier. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: Unable to disable triggers</TT
></P
><P
> This is the error that follows the <SPAN
CLASS="QUOTE"
>"multiple triggers"</SPAN
> problem. </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN3193"
>5.5.6.3. Threading Issues</A
></H3
><A
NAME="AEN3195"
></A
><P
> There should not be any <SPAN
CLASS="QUOTE"
>"user-serviceable"</SPAN
> aspects
to the <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> threading model; each <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> creates a well-specified
set of helper threads to manage the various database connections that
it requires. The only way that anything should break on the threading
side is if you have not compiled <SPAN
CLASS="PRODUCTNAME"
>PostgreSQL</SPAN
> libraries to <SPAN
CLASS="QUOTE"
>"play
well"</SPAN
> with threading, in which case you will be unable to
compile <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> in the first place. </P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>FATAL: remoteWorkerThread_%d: pthread_create() - %s</TT
></P
><P
> Couldn't create a new remote worker thread. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1 remoteWorkerThread_%d: helper thread for provider %d created</TT
></P
><P
> This normally happens when the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> starts: a thread is created for each node to which the local node should be listening for events.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: helper thread for provider %d terminated </TT
></P
><P
> If subscriptions reshape such that a node no longer provides a
subscription, then the thread that works on that node can be
dropped. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: disconnecting
from data provider %d </TT
></P
><P
> A no-longer-used data provider may be dropped; if connection
information is changed, the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> needs to disconnect and
reconnect. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: ignore new events due to shutdown</TT
></P
><P
> If the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is shutting down, it is futile to process more events</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: node %d - no worker thread</TT
></P
><P
> Curious: we can't wake up the worker thread; there probably
should already be one... </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="LOGSUBTIME"
>5.5.6.4. Log Entries At Subscription Time</A
></H3
><A
NAME="AEN3234"
></A
><P
> Subscription time is quite a special time in <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
>. If you
have a large amount of data to be copied to subscribers, this may take
a considerable period of time. <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> logs a fairly considerable
amount of information about its progress, which is sure to be useful
to the gentle reader. In particular, it generates log output every
time it starts and finishes copying data for a given table as well as
when it completes reindexing the table. That may not make a 28 hour
subscription go any faster, but at least helps you have some idea of
how it is progressing. </P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: copy_set %d</TT
></P
><P
> This indicates the beginning of copying data for a new subscription. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: set %d not found in runtime configuration </TT
></P
><P
> <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> tried starting up a subscription; it couldn't find conninfo for the data source. Perhaps paths are not properly propagated?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: node %d has no pa_conninfo </TT
></P
><P
> Apparently the conninfo configuration
was <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>wrong</I
></SPAN
>...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: copy set %d cannot connect to provider DB node %d </TT
></P
><P
> <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> couldn't connect to the provider. Is the conninfo
wrong? Or perhaps authentication is misconfigured? Or perhaps the
database is down?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: connected to provider DB </TT
></P
><P
> Excellent: the copy set has a connection to its provider</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: sequenceSetValue(): sequence % not found</TT
></P
><P
> Curious; the sequence object is missing. Could someone have dropped it from the schema by hand (<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>e.g.</I
></SPAN
> - not using <A
HREF="stmtddlscript.html"
>SLONIK EXECUTE SCRIPT</A
>)?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: subscribeSet() must be called on provider</TT
></P
><P
> This function should only get called on the provider node. <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
> normally handles this right, unless one had wrong DSNs in a <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
> script...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: subscribeSet(): set % not found</TT
></P
><P
> Hmm. The provider node isn't aware of this set. Wrong parms to a <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
> script?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: subscribeSet(): set origin and receiver cannot be identical</TT
></P
><P
> Duh, an origin node can't subscribe to itself.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: subscribeSet(): set provider and receiver cannot be identical</TT
></P
><P
> A receiver must subscribe to a <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>different</I
></SPAN
> node...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: subscribeSet(): provider % is not an active forwarding node for replication set %</TT
></P
><P
> You can only use a live, active, forwarding provider as a data
source. </P
></LI
><LI
><P
>Slony-I: subscribeSet_int(): set % is not active, cannot change provider<TT
CLASS="COMMAND"
></TT
></P
><P
> You can't change the provider just yet...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: subscribeSet_int(): set % not found</TT
></P
><P
> This node isn't aware of the set... Perhaps you submitted wrong parms?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: unsubscribeSet() must be called on receiver</TT
></P
><P
> Seems obvious... This probably indicates a bad <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
> admin DSN...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: Cannot unsubscribe set % while being provider</TT
></P
><P
> This should seem obvious; <A
HREF="stmtunsubscribeset.html"
>SLONIK UNSUBSCRIBE SET</A
> will fail if a node has dependent subscribers for which it is the provider </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: cleanupEvent(): Single node - deleting events < %</TT
></P
><P
> If there's only one node, the cleanup event will delete old events so that you don't get <SPAN
CLASS="QUOTE"
>"build-up of crud."</SPAN
></P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: determineIdxnameUnique(): table % not found</TT
></P
><P
>Did you properly copy over the schema to a new node???</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: table % has no primary key</TT
></P
><P
> This likely signifies a bad loading of schema...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: table % has no unique index %</TT
></P
><P
> This likely signifies a bad loading of schema...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>WARN: remoteWorkerThread_%d: transactions
earlier than XID %s are still in progress</TT
></P
><P
> This indicates that some old transaction is in progress from before the earliest available <TT
CLASS="COMMAND"
>SYNC</TT
> on the provider. <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> cannot start replicating until that transaction completes. This will repeat until thetransaction completes...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: prepare to copy table %s </TT
></P
><P
> This indicates that <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is beginning preparations to set up subscription for a table.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not lock table %s on subscriber</TT
></P
><P
> For whatever reason, the table could not be locked, so the
subscription needs to be restarted. If the problem was something like
a deadlock, retrying may help. If the problem was otherwise, you may
need to intervene...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: all tables for set %d found on subscriber</TT
></P
><P
> An informational message indicating that the first pass through the tables found no problems... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: copy sequence %s</TT
></P
><P
> Processing some sequence... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: copy table %s</TT
></P
><P
> <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is starting to copy a table... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: table %s Slony-I serial key added local</TT
></P
><P
> Just added new column to the table to provide surrogate primary key.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: local table %s already has Slony-I serial key</TT
></P
><P
> Did not need to add serial key; apparently it was already there.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: table %s does not require Slony-I serial key</TT
></P
><P
> Apparently this table didn't require a special serial key... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: table %s Slony-I serial key added local</TT
></P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: Begin COPY of table %s</TT
></P
><P
> <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is about to start the COPY on both sides to copy a table... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: Could not generate copy_set request for %s - %s</TT
></P
><P
> This indicates that the <TT
CLASS="COMMAND"
>delete/copy</TT
> requests
failed on the subscriber. The <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> will repeat
the <TT
CLASS="COMMAND"
>COPY_SET</TT
> attempt; it will probably continue to
fail.. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: copy to stdout on provider - %s %s</TT
></P
><P
> Evidently something about the COPY to <TT
CLASS="FILENAME"
>stdout</TT
> on the provider node broke... The event will be retried... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: copy from stdin on local node - %s %s</TT
></P
><P
> Evidently something about the COPY into the table on the
subscriber node broke... The event will be
retried... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: %d bytes copied for table %s</TT
></P
><P
> This message indicates that the COPY of the table has
completed. This is followed by running <TT
CLASS="COMMAND"
>ANALYZE</TT
> and
reindexing the table on the subscriber.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: %.3f seconds
to copy table %s</TT
></P
><P
> After this message, copying and reindexing and analyzing the table on the subscriber is complete.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: set last_value of sequence %s (%s) to %s</TT
></P
><P
> As should be no surprise, this indicates that a sequence has been processed on the subscriber.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: %.3 seconds to copy sequences</TT
></P
><P
> Summarizing the time spent processing sequences in the <TT
CLASS="COMMAND"
>COPY_SET</TT
> event. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: query %s did not return a result </TT
></P
><P
> This indicates that the query, as part of final processing of <TT
CLASS="COMMAND"
>COPY_SET</TT
>, failed. The copy will restart... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: copy_set no previous SYNC found, use enable event</TT
></P
><P
> This takes place if no past SYNC event was found; the current
event gets set to the event point of
the <TT
CLASS="COMMAND"
>ENABLE_SUBSCRIPTION</TT
> event.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: copy_set SYNC found, use event seqno %s</TT
></P
><P
> This takes place if a SYNC event was found; the current
event gets set as shown. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: sl_setsync entry for set %d not found on provider</TT
></P
><P
> SYNC synchronization information was expected to be drawn from
an existing subscriber, but wasn't found. Something
replication-breakingly-bad has probably
happened... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: could not insert to sl_setsync_offline</TT
></P
><P
> Oh, dear. After setting up a subscriber, and getting pretty
well everything ready, some writes to a log shipping file failed.
Perhaps disk filled up... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: %.3f seconds to build initial setsync status</TT
></P
><P
> Indicates the total time required to get the copy_set event finalized...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: disconnected from provider DB</TT
></P
><P
> At the end of a subscribe set event, the subscriber's <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
>
will disconnect from the provider, clearing out
connections... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: copy_set %d done in %.3f seconds</TT
></P
><P
> Indicates the total time required to complete copy_set... This indicates a successful subscription!</P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="LOGMERGESET"
>5.5.6.5. Log Entries Associated with MERGE SET</A
></H3
><A
NAME="AEN3447"
></A
><P
> These various exceptions cause <A
HREF="stmtmergeset.html"
>SLONIK MERGE
SET</A
> to
be rejected; something ought to be corrected before submitting the request again. </P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: merged set ids cannot be identical</TT
></P
><P
> It is illogical to try to merge a set with itself. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: set % not found </TT
></P
><P
> A missing set cannot be merged. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: set % does not originate on local node</TT
></P
><P
> The <A
HREF="stmtmergeset.html"
>SLONIK MERGE
SET</A
> request must be submitted to
the origin node for the sets that are to be merged. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: subscriber lists of set % and % are different</TT
></P
><P
> Sets can only be merged if they have identical subscriber
lists. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: set % has subscriptions in progress - cannot merge</TT
></P
><P
> <A
HREF="stmtmergeset.html"
>SLONIK MERGE
SET</A
> cannot proceed until all
subscriptions have completed processing. If this message arises, that
indicates that the subscriber lists <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>are</I
></SPAN
> the same,
but that one or more of the nodes has not yet completed setting up its
subscription. It may be that waiting a short while will permit
resubmitting the <A
HREF="stmtmergeset.html"
>SLONIK MERGE
SET</A
> request.</P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="LOGNORMALSYNC"
>5.5.6.6. Log Entries Associated With Normal SYNC activity</A
></H3
><A
NAME="AEN3478"
></A
><P
> Some of these messages indicate exceptions, but
the <SPAN
CLASS="QUOTE"
>"normal"</SPAN
> stuff represents what you should expect to
see most of the time when replication is just plain working.</P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: forward confirm %d,%s received by %d</TT
></P
><P
> These events should occur frequently and routinely as nodes report confirmations of the events they receive. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: SYNC %d processing</TT
></P
><P
> This indicates the start of processing of a <TT
CLASS="COMMAND"
>SYNC</TT
> </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: No pa_conninfo
for data provider %d</TT
></P
><P
> Oh dear, we haven't connection information to connect to the
data provider. That shouldn't be possible,
normally...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteListenThread_%d: timeout for event selection</TT
></P
><P
> This means that the listener thread
(<TT
CLASS="FILENAME"
>src/slon/remote_listener.c</TT
>) timed out when
trying to determine what events were outstanding for it.</P
><P
> This could occur because network connections broke, in which case restarting the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> might help. </P
><P
> Alternatively, this might occur because the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> for this
node has been broken for a long time, and there are an enormous number
of entries in <TT
CLASS="ENVAR"
>sl_event</TT
> on this or other nodes for the
node to work through, and it is taking more than <A
HREF="slon-config-interval.html#SLON-CONFIG-REMOTE-LISTEN-TIMEOUT"
>slon_conf_remote_listen_timeout</A
> seconds to run the query.
In older versions of <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
>, that configuration parameter did not
exist; the timeout was fixed at 300 seconds. In newer versions, you
might increase that timeout in the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> config file to a larger
value so that it can continue to completion. And then investigate why
nobody was monitoring things such that replication broke for such a
long time... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: cannot connect to data provider %d on 'dsn'</TT
></P
><P
> Oh dear, we haven't got <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>correct</I
></SPAN
> connection
information to connect to the data provider.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: connected to data provider %d on 'dsn'</TT
></P
><P
> Excellent; the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> has connected to the provider. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>WARN: remoteWorkerThread_%d: don't know what ev_seqno node %d confirmed for ev_origin %d</TT
></P
><P
> There's no confirmation information available for this node's provider; need to abort the <TT
CLASS="COMMAND"
>SYNC</TT
> and wait a bit in hopes that that information will emerge soon...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d: data provider %d only confirmed up to ev_seqno %d for ev_origin %d </TT
></P
><P
> The provider for this node is a subscriber, and apparently that subscriber is a bit behind. The <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> will need to wait for the provider to catch up until it has <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
> new</I
></SPAN
> data. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: data provider %d confirmed up to ev_seqno %s for ev_origin %d - OK</TT
></P
><P
> All's well; the provider should have the data that the subscriber needs...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: syncing set %d with %d table(s) from provider %d</TT
></P
><P
> This is declaring the plans for a <TT
CLASS="COMMAND"
>SYNC</TT
>: we have a set with some tables to process.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: ssy_action_list value: %s length: %d</TT
></P
><P
> This portion of the query to collect log data to be applied has been known to <SPAN
CLASS="QUOTE"
>"bloat up"</SPAN
>; this shows how it has gotten compressed... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: Didn't add OR to provider</TT
></P
><P
> This indicates that there wasn't anything in a <SPAN
CLASS="QUOTE"
>"provider"</SPAN
> clause in the query to collect log data to be applied, which shouldn't be. Things are quite likely to go bad at this point... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: no sets need syncing for this event</TT
></P
><P
>This will be the case for all <TT
CLASS="COMMAND"
>SYNC</TT
> events generated on nodes that are not originating replication sets. You can expect to see these messages reasonably frequently. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: activate helper %d</TT
></P
><P
> We're about to kick off a thread to help process <TT
CLASS="COMMAND"
>SYNC</TT
> data...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG4: remoteWorkerThread_%d: waiting for log data</TT
></P
><P
> The thread is waiting to get data to consume (e.g. - apply to the replica).</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: %s %s - qualification was %s </TT
></P
><P
> Apparently an application of replication data to the subscriber failed... This quite likely indicates some sort of serious corruption.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: replication query did not affect one row (cmdTuples = %s) - query was: %s qualification was: %s</TT
></P
><P
> If <TT
CLASS="ENVAR"
> SLON_CHECK_CMDTUPLES</TT
> is set, <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> applies
changes one tuple at a time, and verifies that each change affects
exactly one tuple. Apparently that wasn't the case here, which
suggests a corruption of replication. That's a rather bad
thing...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: SYNC aborted</TT
></P
><P
>The <TT
CLASS="COMMAND"
>SYNC</TT
> has been aborted. The <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> will
likely retry this <TT
CLASS="COMMAND"
>SYNC</TT
> some time soon. If the
<TT
CLASS="COMMAND"
>SYNC</TT
> continues to fail, there is some continuing
problem, and replication will likely never catch up without
intervention. It may be necessary to unsubscribe/resubscribe the
affected slave set, or, if there is only one set on the slave node, it
may be simpler to drop and recreate the slave node. If application
connections may be shifted over to the master during this time,
application downtime may not be necessary. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: new sl_rowid_seq value: %s</TT
></P
><P
> This marks the progression of this internal <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> sequence. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: SYNC %d done in %.3f seconds</TT
></P
><P
> This indicates the successful completion of a <TT
CLASS="COMMAND"
>SYNC</TT
>. Hurray!</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG1: remoteWorkerThread_%d_d:%.3f seconds delay for first row </TT
></P
><P
> This indicates how long it took to get the first row from the LOG cursor that pulls in data from the sl_log tables.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d_d: large log_cmddata for actionseq %s not found</TT
></P
><P
> <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> could not find the data for one of the <SPAN
CLASS="QUOTE"
>"very large"</SPAN
> sl_log table tuples that are pulled individually. This shouldn't happen.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d_d:%.3f seconds until close cursor </TT
></P
><P
> This indicates how long it took to complete reading data from the LOG cursor that pulls in data from the sl_log tables.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d_d: inserts=%d updates=%d deletes=%d </TT
></P
><P
> This reports how much activity was recorded in the current <TT
CLASS="COMMAND"
>SYNC</TT
> set. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: compress_actionseq(list,subquery) Action list: %s</TT
></P
><P
> This indicates a portion of the LOG cursor query that is about to be compressed. (In some cases, this could grow to <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>enormous</I
></SPAN
> size, blowing up the query parser...) </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG3: remoteWorkerThread_%d: compressed actionseq subquery %s</TT
></P
><P
> This indicates what that subquery compressed into. </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="LOGADDOBJECTS"
>5.5.6.7. Log Entries - Adding Objects to Sets</A
></H3
><A
NAME="AEN3621"
></A
><P
> These entries will be seen on an origin node's logs at the time
you are configuring a replication set; some of them will be seen on
subscribers at subscription time. </P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: setAddTable_int(): table % has no index %</TT
></P
><P
> Apparently a PK index was specified that is absent on this node...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddTable_int(): table % not found</TT
></P
><P
> Table wasn't found on this node; did you load the schema in properly?. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddTable_int(): table % is not a regular table</TT
></P
><P
> You tried to replicate something that isn't a table; you can't do that! </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>NOTICE: Slony-I setAddTable_int(): table % PK column % nullable</TT
></P
><P
> You tried to replicate a table where one of the columns in the would-be primary key is allowed to be null. All PK columns must be <TT
CLASS="COMMAND"
>NOT NULL.</TT
> This request is about to fail. </P
><P
> A check for this condition was introduced in <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> version
1.2. If you have a 1.1 replica, it will continue to function after
upgrading to 1.2, but you will experience this complaint when you try
to add new subscribers. </P
><P
> You can look for table/index combinations on an existing
node that have NULLABLE columns in the primary key via the
following query:
</P><PRE
CLASS="SCREEN"
>select c.relname as table_name, ic.relname as index_name, att.attname, att2.attnotnull
from _cluster.sl_table t, pg_catalog.pg_class c, pg_index i, pg_catalog.pg_class ic, pg_catalog.pg_attribute att, pg_catalog.pg_attribute att2
where t.tab_reloid = c.oid
and t.tab_idxname = ic.relname
and ic.oid = i.indexrelid
and att.attrelid = i.indexrelid
and att2.attname = att.attname
and att2.attrelid = c.oid
and att2.attnotnull = 'f';</PRE
><P> </P
><P
> These may be rectified via submitting, for each one, a query of
the form: <TT
CLASS="COMMAND"
> alter table mytable alter column nullablecol set
not null; </TT
> Running this against a subscriber where the table
is empty will complete very quickly. It will take longer to apply this
change to a table that already contains a great deal of data, as the
alteration will scan the table to verify that there are no tuples
where the column is NULL.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddTable_int(): table % not replicable!</TT
></P
><P
> This happens because of the NULLable PK column. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddTable_int(): table id % has already been assigned!</TT
></P
><P
> The table ID value needs to be assigned uniquely
in <A
HREF="stmtsetaddtable.html"
>SLONIK SET ADD TABLE</A
>; apparently you requested a value
already in use.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence(): set % not found</TT
></P
><P
> Apparently the set you requested is not available...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence(): set % has remote origin</TT
></P
><P
> You may only add things at the origin node.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence(): cannot add sequence to currently subscribed set %</TT
></P
><P
> Apparently the set you requested has already been subscribed. You cannot add tables/sequences to an already-subscribed set. You will need to create a new set, add the objects to that new set, and set up subscriptions to that.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence_int(): set % not found</TT
></P
><P
> Apparently the set you requested is not available...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence_int(): sequence % not found</TT
></P
><P
> Apparently the sequence you requested is not available on this node. How did you set up the schemas on the subscribers???</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence_int(): % is not a sequence</TT
></P
><P
> Seems pretty obvious :-).</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setAddSequence_int(): sequence ID % has already been assigned</TT
></P
><P
> Each sequence ID added must be unique; apparently you have reused an ID.</P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN3685"
>5.5.6.8. Logging When Moving Objects Between Sets</A
></H3
><A
NAME="AEN3687"
></A
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveTable_int(): table % not found</TT
></P
><P
> Table wasn't found on this node; you probably gave the wrong ID number... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveTable_int(): set ids cannot be identical</TT
></P
><P
> Does it make sense to move a table from a set into the very same set? </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveTable_int(): set % not found</TT
></P
><P
> Set wasn't found on this node; you probably gave the wrong ID number... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveTable_int(): set % does not originate on local node</TT
></P
><P
> Set wasn't found to have origin on this node; you probably gave the wrong EVENT NODE... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveTable_int(): subscriber lists of set % and % are different</TT
></P
><P
> You can only move objects between sets that have identical subscriber lists. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveSequence_int(): sequence % not found</TT
></P
><P
> Sequence wasn't found on this node; you probably gave the wrong ID number... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveSequence_int(): set ids cannot be identical</TT
></P
><P
> Does it make sense to move a sequence from a set into the very same set? </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveSequence_int(): set % not found</TT
></P
><P
> Set wasn't found on this node; you probably gave the wrong ID number... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveSequence_int(): set % does not originate on local node</TT
></P
><P
> Set wasn't found to have origin on this node; you probably gave the wrong EVENT NODE... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setMoveSequence_int(): subscriber lists of set % and % are different</TT
></P
><P
> You can only move objects between sets that have identical subscriber lists. </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN3730"
>5.5.6.9. Issues with Dropping Objects</A
></H3
><A
NAME="AEN3732"
></A
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setDropTable(): table % not found</TT
></P
><P
> Table wasn't found on this node; are you sure you had the ID right? </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setDropTable(): set % not found</TT
></P
><P
> The replication set wasn't found on this node; are you sure you had the ID right? </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setDropTable(): set % has remote origin</TT
></P
><P
> The replication set doesn't originate on this node; you probably need to specify an <TT
CLASS="COMMAND"
>EVENT NODE</TT
> in the <A
HREF="stmtsetdroptable.html"
>SLONIK SET DROP TABLE</A
> command. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setDropSequence_int(): sequence % not found</TT
></P
><P
> Could this sequence be in another set?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setDropSequence_int(): set % not found</TT
></P
><P
> Could you have gotten the set ID wrong?</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I setDropSequence_int(): set % has origin at another node - submit this to that node</TT
></P
><P
> This message seems fairly self-explanatory...</P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN3761"
>5.5.6.10. Issues with MOVE SET, FAILOVER, DROP NODE</A
></H3
><A
NAME="AEN3763"
></A
><P
> Many of these errors will occur if you submit a <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
>
script that describes a reconfiguration incompatible with your
cluster's current configuration. Those will lead to the
feeling: <SPAN
CLASS="QUOTE"
>"Whew, I'm glad <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
> caught that for me!"</SPAN
> </P
><P
> Some of the others lead to a <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> telling itself to fall
over; all <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>should</I
></SPAN
> be well when you restart it, as
it will read in the revised, newly-correct configuration when it
starts up.</P
><P
> Alas, a few indicate that <SPAN
CLASS="QUOTE"
>"something bad
happened,"</SPAN
> for which the resolution may not necessarily be
easy. Nobody said that replication was easy, alas...</P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: DROP_NODE cannot initiate on the dropped node</TT
></P
><P
> You need to have an EVENT NODE other than the node that is to be dropped.... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: Node % is still configured as a data provider</TT
></P
><P
> You cannot drop a node that is in use as a data provider; you
need to reshape subscriptions so no nodes are dependent on it first. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: Node % is still origin of one or more sets</TT
></P
><P
> You can't drop a node if it is the origin for a set! Use <A
HREF="stmtmoveset.html"
>SLONIK MOVE SET</A
> or <A
HREF="stmtfailover.html"
>SLONIK FAILOVER</A
> first. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: cannot failover - node % has no path to the backup node</TT
></P
><P
> You cannot failover to a node that isn't connected to all the subscribers, at least indirectly. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: cannot failover - node % is not subscribed to set %</TT
></P
><P
> You can't failover to a node that doesn't subscribe to all the relevant sets. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: cannot failover - subscription for set % is not active</TT
></P
><P
> If the subscription has been set up, but isn't yet active, that's still no good.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: cannot failover - node % is not a forwarder of set %</TT
></P
><P
> You can only failover or move a set to a node that has
forwarding turned on. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>NOTICE: failedNode: set % has no other direct receivers - move now</TT
></P
><P
> If the backup node is the only direct subscriber, then life is a bit simplified... No need to reshape any subscriptions!</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>NOTICE: failedNode set % has other direct receivers - change providers only</TT
></P
><P
> In this case, all direct subscribers are pointed to the backup node, and the backup node is pointed to receive from another node so it can get caught up.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>NOTICE: Slony-I: Please drop schema _@CLUSTERNAME@</TT
></P
><P
> A node has been uninstalled; you may need to drop the schema... </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN3817"
>5.5.6.11. Log Switching</A
></H3
><A
NAME="AEN3819"
></A
><P
> These messages relate to the new-in-1.2 facility whereby
<SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> periodically switches back and forth between storing data
in <TT
CLASS="ENVAR"
>sl_log_1</TT
> and <TT
CLASS="ENVAR"
>sl_log_2</TT
>.</P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: Logswitch to sl_log_2 initiated'</TT
></P
><P
> Indicates that <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is in the process of switching over to this log table.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Slony-I: Logswitch to sl_log_1 initiated'</TT
></P
><P
> Indicates that <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is in the process of switching over to this log table.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>Previous logswitch still in progress</TT
></P
><P
> An attempt was made to do a log switch while one was in progress...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: remoteWorkerThread_%d: cannot determine current log status</TT
></P
><P
> The attempt to read from sl_log_status, which determines
whether we're working on <TT
CLASS="ENVAR"
>sl_log_1</TT
>
or <TT
CLASS="ENVAR"
>sl_log_2</TT
> got no results; that can't be a good thing,
as there certainly should be data here... Replication is likely about
to halt...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: current local log_status is %d</TT
></P
><P
> This indicates which of <TT
CLASS="ENVAR"
>sl_log_1</TT
> and <TT
CLASS="ENVAR"
>sl_log_2</TT
> are being used to store replication data. </P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN3852"
>5.5.6.12. Miscellanea</A
></H3
><A
NAME="AEN3854"
></A
><P
> Perhaps these messages should be categorized further; that
remains a task for the documentors.</P
><P
></P
><UL
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slonik version: @MODULEVERSION@ != Slony-I version in PG build %</TT
></P
><P
> This is raised in <CODE
CLASS="FUNCTION"
>checkmoduleversion()</CODE
> if there is a mismatch between the version of <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> as reported by <A
HREF="slonik.html"
><SPAN
CLASS="APPLICATION"
>slonik</SPAN
></A
> versus what the <SPAN
CLASS="PRODUCTNAME"
>PostgreSQL</SPAN
> build has.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: registry key % is not an int4 value</TT
></P
><P
> Raised in <CODE
CLASS="FUNCTION"
>registry_get_int4()</CODE
>, this complains if a requested value turns out to be NULL.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: registry key % is not a text value</TT
></P
><P
> Raised in <CODE
CLASS="FUNCTION"
>registry_get_text()</CODE
>, this complains if a requested value turns out to be NULL.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: registry key % is not a timestamp value</TT
></P
><P
> Raised in <CODE
CLASS="FUNCTION"
>registry_get_timestamp()</CODE
>, this complains if a requested value turns out to be NULL.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>NOTICE: Slony-I: cleanup stale sl_nodelock entry for pid=%</TT
></P
><P
> This will occur when a <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> starts up after another has crashed; this is routine cleanup.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: This node is already initialized</TT
></P
><P
> This would typically happen if you submit <A
HREF="stmtstorenode.html"
>SLONIK STORE NODE</A
> against a node that has already been set up with the <SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> schema. </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: node % not found</TT
></P
><P
> An attempt to mark a node not listed locally as enabled should fail...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>ERROR: Slony-I: node % is already active</TT
></P
><P
> An attempt to mark a node already marked as active as active should fail...</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG4: remoteWorkerThread_%d: added active set %d to provider %d</TT
></P
><P
> Indicates that this set is being provided by this
provider.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: event %d
ignored - unknown origin</TT
></P
><P
> Probably happens if events arrive before
the <TT
CLASS="COMMAND"
>STORE_NODE</TT
> event that tells that the new node
now exists... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>WARN: remoteWorkerThread_%d: event %d ignored - origin inactive</TT
></P
><P
> This shouldn't occur now (2007) as we don't support the notion
of deactivating a node... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: event %d ignored - duplicate </TT
></P
><P
> This might be expected to happen if the event notification
comes in concurrently from two sources... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>DEBUG2: remoteWorkerThread_%d: unknown node %d</TT
></P
><P
> Happens if the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> is unaware of this node; probably a sign
of <TT
CLASS="COMMAND"
>STORE_NODE</TT
> requests not
propagating... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>insert or update on table "sl_path" violates
foreign key constraint "pa_client-no_id-ref". DETAIL: Key
(pa_client)=(2) is not present on table "s1_node</TT
></P
><P
> This happens if you try to do <A
HREF="stmtsubscribeset.html"
>SLONIK SUBSCRIBE SET</A
>
when the node unaware of a would-be new node; probably a sign of
<TT
CLASS="COMMAND"
>STORE_NODE</TT
> and <TT
CLASS="COMMAND"
>STORE_PATH</TT
>
requests not propagating... </P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>monitorThread: stack reallocation - size %d > warning threshold of 100. Stack perhaps isn't getting processed properly by monitoring thread</TT
></P
><P
> This is liable to occur if the monitoring thread isn't properly
consuming updates from the stack, so the stack is growing in memory.</P
></LI
><LI
><P
><TT
CLASS="COMMAND"
>monitor_state - unable to allocate memory for actor (len %d)</TT
></P
><P
> This occurs when the <A
HREF="slon.html"
><SPAN
CLASS="APPLICATION"
>slon</SPAN
></A
> function
<CODE
CLASS="FUNCTION"
>monitor_state()</CODE
> is unable to allocate memory,
which likely indicates that something has grown in memory in an
unbounded way. </P
><P
> Similar log entries may also occur for event types.</P
></LI
></UL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="slonyupgrade.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="performance.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><SPAN
CLASS="PRODUCTNAME"
>Slony-I</SPAN
> Upgrade</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="deploymentconcerns.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Performance Considerations</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
|