[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704521: marked as done (virtuoso-opensource-6.1: Virtuoso server stop script fails to stop server cleanly, potentially causing database corruption)



Your message dated Thu, 18 Apr 2013 12:33:32 +0000
with message-id <E1USo1s-0002xn-IV@franck.debian.org>
and subject line Bug#704521: fixed in virtuoso-opensource 6.1.4+dfsg1-7
has caused the Debian Bug report #704521,
regarding virtuoso-opensource-6.1: Virtuoso server stop script fails to stop server cleanly, potentially causing database corruption
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
704521: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704521
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: virtuoso-opensource-6.1
Severity: critical
Justification: causes serious data loss

Dear Maintainer.

When calling '/etc/init.d/virtuoso-opensource-6.1 stop', virtuoso may still
be running after the script completes. This might lead to database corruption,
e.g. on system reboot.

Seemingly, the script fails to wait for a clean exit of the server in this section:

<quote>
  stop)
        log_daemon_msg "Stopping $DESC" "$NAME"
        if running ; then
            # Only stop the server if we see it running
            errcode=0
            stop_server || errcode=$?
            log_end_msg $errcode
        else
            # If it's not running don't do anything
            log_progress_msg "apparently not running"
            log_end_msg 0
            exit 0
        fi
        ;;
</quote>

I have modified the script to temporarily circumvent the situation on my system
by enclosing part of this snippet in a while-loop, as below:

<quote>
  stop)
        log_daemon_msg "Stopping $DESC" "$NAME"
        # keep stopping the server if it fails to stop
        while running; do
            if running ; then
                # Only stop the server if we see it running
                errcode=0
                stop_server || errcode=$?
                log_end_msg $errcode
            else
                # If it's not running don't do anything
                log_progress_msg "apparently not running"
                log_end_msg 0
                exit 0
            fi
        sleep 2 # wait two seconds before looping
        done
        ;;
</quote>

As my knowledge of rc.d scripts is limited, this was a quick hack to prevent
my database to suffer corruption. My solution does not cater for the need to
force-stop virtuoso. If the server does not exit cleanly at some point, I have 
effectively created an infinite loop.

Please fix this situation in a more proper fashion.

Regards
;)Frode
Frode Severin Hatlevik

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
Source: virtuoso-opensource
Source-Version: 6.1.4+dfsg1-7

We believe that the bug you reported is fixed in the latest version of
virtuoso-opensource, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 704521@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Debian Krap Maintainers <debian-qt-kde@lists.debian.org> (supplier of updated virtuoso-opensource package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 17 Apr 2013 21:30:26 +0200
Source: virtuoso-opensource
Binary: virtuoso-opensource virtuoso-server virtuoso-minimal virtuoso-opensource-6.1 virtuoso-opensource-6.1-common virtuoso-opensource-6.1-bin virtuoso-vsp-startpage virtuoso-vad-conductor virtuoso-vad-doc virtuoso-vad-demo virtuoso-vad-tutorial virtuoso-vad-rdfmappers virtuoso-vad-sparqldemo virtuoso-vad-syncml virtuoso-vad-bpel virtuoso-vad-isparql virtuoso-vad-ods libvirtodbc0 libvirtuoso5.5-cil
Architecture: source all amd64
Version: 6.1.4+dfsg1-7
Distribution: unstable
Urgency: low
Maintainer: Debian Krap Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Debian Krap Maintainers <debian-qt-kde@lists.debian.org>
Description: 
 libvirtodbc0 - high-performance database - ODBC libraries
 libvirtuoso5.5-cil - high-performance database - Mono assemblies
 virtuoso-minimal - high-performance database - core dependency package
 virtuoso-opensource - high-performance database
 virtuoso-opensource-6.1 - high-performance database - support files
 virtuoso-opensource-6.1-bin - high-performance database - binaries
 virtuoso-opensource-6.1-common - high-performance database - common files
 virtuoso-server - high-performance database - server dependency package
 virtuoso-vad-bpel - high-performance database - BPEL module
 virtuoso-vad-conductor - high-performance database - conductor module
 virtuoso-vad-demo - high-performance database - demo module
 virtuoso-vad-doc - high-performance database - documentation module
 virtuoso-vad-isparql - high-performance database - iSPARQL module
 virtuoso-vad-ods - high-performance database - Open Data Spaces module
 virtuoso-vad-rdfmappers - high-performance database - RDF mappers module
 virtuoso-vad-sparqldemo - high-performance database - SPARQL demo module
 virtuoso-vad-syncml - high-performance database - SyncML module
 virtuoso-vad-tutorial - high-performance database - tutorial module
 virtuoso-vsp-startpage - high-performance database - web interface files
Closes: 704521
Changes: 
 virtuoso-opensource (6.1.4+dfsg1-7) unstable; urgency=low
 .
   [ Lisandro Damián Nicanor Pérez Meyer ]
   * Add Sune and myself to Uploaders.
 .
   [ Ralf Jung ]
   * init script: Use start-stop-daemon (Closes: 704521)
   * init script: Do not use "set -e", that's incompatible with
     lsb/init-scripts
   * init script: Stop attemtping to restart when stopping failed
   * Change maintainer to Debian Krap team
   * Remove obsolete DM-Upload-Allowed
Checksums-Sha1: 
 2a82b3c6a51e5fdcd642841f98a4d1847d3e077d 3910 virtuoso-opensource_6.1.4+dfsg1-7.dsc
 a4863a7dd7811f48007a23437bdd05007a3277dd 74315 virtuoso-opensource_6.1.4+dfsg1-7.debian.tar.gz
 51e6625a130f7a83a5a338a1d286bac4544cb02e 85150 virtuoso-opensource_6.1.4+dfsg1-7_all.deb
 c4621e95d3de9658118c8fa7c737e1d9abae46b0 82522 virtuoso-server_6.1.4+dfsg1-7_all.deb
 9dcdb2d20b6cf21b7192fce5c9edc178b493b1ca 82552 virtuoso-minimal_6.1.4+dfsg1-7_all.deb
 be1922f56d00efe7749f0756c00ae2059a3c6f95 569566 virtuoso-vsp-startpage_6.1.4+dfsg1-7_all.deb
 39a842cc47bd1c222f3ee18ed213d08279d529d3 1346874 virtuoso-vad-conductor_6.1.4+dfsg1-7_all.deb
 2106e3843bda808bcc86fa88d161faa148fa5751 63707258 virtuoso-vad-doc_6.1.4+dfsg1-7_all.deb
 2cb5d5a85207ee93717e219aaafbc5e37a93609c 12025066 virtuoso-vad-demo_6.1.4+dfsg1-7_all.deb
 9b2fa4db24adcbb5cd3413770d8f4a7098df1f15 5250850 virtuoso-vad-tutorial_6.1.4+dfsg1-7_all.deb
 ba6b8f8c93e6a00ea7854a2d7ee724664be1e754 2586156 virtuoso-vad-rdfmappers_6.1.4+dfsg1-7_all.deb
 442e8e43bdfebedbe689caaa02246394c1a0f2b6 647330 virtuoso-vad-sparqldemo_6.1.4+dfsg1-7_all.deb
 ce268d4206a0299f7c40ad46044b2a22c33754bf 102682 virtuoso-vad-syncml_6.1.4+dfsg1-7_all.deb
 80d7166fd39f0023df0ce5124a16184f6f4291d5 369696 virtuoso-vad-bpel_6.1.4+dfsg1-7_all.deb
 2b4d5bea94573c10b42044f0c61974ffe67aefbe 811930 virtuoso-vad-isparql_6.1.4+dfsg1-7_all.deb
 f6d0eb24911742915c0381e0613c2f1b3ef10198 5831152 virtuoso-vad-ods_6.1.4+dfsg1-7_all.deb
 bbcce37707788729f4fc49c12395917642359678 317322 virtuoso-opensource-6.1_6.1.4+dfsg1-7_amd64.deb
 bf34ee21c24877c44913115124291bcee7da1f75 100022 virtuoso-opensource-6.1-common_6.1.4+dfsg1-7_amd64.deb
 d9aaa1e3ca1852927d2c9e38aeac5f85b885d054 4125832 virtuoso-opensource-6.1-bin_6.1.4+dfsg1-7_amd64.deb
 4128d279c0ac0029b94c5f8f4e95d65935eeb274 882204 libvirtodbc0_6.1.4+dfsg1-7_amd64.deb
 d159d7df43d57b6902168aede6886965a1663841 154204 libvirtuoso5.5-cil_6.1.4+dfsg1-7_amd64.deb
Checksums-Sha256: 
 7688bc88501db8fd26666ef800629c2b8a011aedf6021f61ed66fb31650f62bf 3910 virtuoso-opensource_6.1.4+dfsg1-7.dsc
 0da958562e54be6def7d56cc16bc56e9240b0743794d35540237b032c2c5b22c 74315 virtuoso-opensource_6.1.4+dfsg1-7.debian.tar.gz
 9981c8ed1a81cf69f12ae43f8641b13f25d292843f3110a447c003b37d4fd3fc 85150 virtuoso-opensource_6.1.4+dfsg1-7_all.deb
 0ed67c9ce9e6626f90249be5e3f756c6160b2eeb286f12f55b58b6b68f48aa4b 82522 virtuoso-server_6.1.4+dfsg1-7_all.deb
 48b43f752ad9451ca11518814d19644fcc42c13146eaf3c4893eeeb1fd42059a 82552 virtuoso-minimal_6.1.4+dfsg1-7_all.deb
 2fbd9c557745163b7420b8ebb3394c4373c6d008837e4a9d456e6adc625b2f75 569566 virtuoso-vsp-startpage_6.1.4+dfsg1-7_all.deb
 8480d30b6112a5cad7a56625565b5604b526d4f9a14a7b47fd828a612c8d0bbd 1346874 virtuoso-vad-conductor_6.1.4+dfsg1-7_all.deb
 45cf166655db76b704bcb859edcabaf8b572c7b64ec886c7ef039e636335d9cd 63707258 virtuoso-vad-doc_6.1.4+dfsg1-7_all.deb
 5616e436d3fe73a886fdba5c2470777e3af58686eeb38cd5de6e3f78c267c669 12025066 virtuoso-vad-demo_6.1.4+dfsg1-7_all.deb
 a2ee055de4144f0f1081b46a5bf408f8735539d8145d9a63e6eaaee3cea3cfd0 5250850 virtuoso-vad-tutorial_6.1.4+dfsg1-7_all.deb
 db51125a8f431411df8a6bafb565f3d739fb6cf48b6705d2a272830d247022a0 2586156 virtuoso-vad-rdfmappers_6.1.4+dfsg1-7_all.deb
 c15d5f4efad8107f2478f358c1febfba8fc7df1131c933f571d387af89f3386d 647330 virtuoso-vad-sparqldemo_6.1.4+dfsg1-7_all.deb
 c3b642b57b1cf7ed53e9e8cb360634a5e48393c91053db4d0860713f2108f46c 102682 virtuoso-vad-syncml_6.1.4+dfsg1-7_all.deb
 09738ba66ebdce5febfc240655c2c6310a77508f6f32346cb8b72df3ae1d329e 369696 virtuoso-vad-bpel_6.1.4+dfsg1-7_all.deb
 a0b37964118b0c7466b900cbb4e2fbbab1b3149138dbd96787cfdebdbe8474eb 811930 virtuoso-vad-isparql_6.1.4+dfsg1-7_all.deb
 89597b1f3823fef231d0b4f04ab9b00640519359c4038a799cbb26b691aca0cd 5831152 virtuoso-vad-ods_6.1.4+dfsg1-7_all.deb
 6020a710b4c0e14f4be2ac4361eea2b32d5c588dc854e57b4da30d862af81a55 317322 virtuoso-opensource-6.1_6.1.4+dfsg1-7_amd64.deb
 938621e7154f9dbfcbf15d88524548b07132dc5a48d250a00969fc2cf148a2d1 100022 virtuoso-opensource-6.1-common_6.1.4+dfsg1-7_amd64.deb
 5abb7b08e6b4aeff86c4daa299bc219d03f7497737495db19a205c3ed6c312c8 4125832 virtuoso-opensource-6.1-bin_6.1.4+dfsg1-7_amd64.deb
 5d436eea4ff59fd5bc2cc43e9c8554d2f4b297f3723e2942e45af3045d70267f 882204 libvirtodbc0_6.1.4+dfsg1-7_amd64.deb
 844d39db8eb790ea30e1fd6274a20942c9a9f9111c6ed33a06297a2feb7f1fe2 154204 libvirtuoso5.5-cil_6.1.4+dfsg1-7_amd64.deb
Files: 
 661146ff46506b8dc99de662459911bd 3910 database optional virtuoso-opensource_6.1.4+dfsg1-7.dsc
 fde1f651f88e2b6682859fc50eb8a480 74315 database optional virtuoso-opensource_6.1.4+dfsg1-7.debian.tar.gz
 35d5b420a3714c6ae8c04b2b222b7381 85150 metapackages optional virtuoso-opensource_6.1.4+dfsg1-7_all.deb
 4d93b589a5c1cf2568cd42061e82427e 82522 metapackages optional virtuoso-server_6.1.4+dfsg1-7_all.deb
 42fa4e5fbcb519d3b8485218cc87f9d4 82552 metapackages optional virtuoso-minimal_6.1.4+dfsg1-7_all.deb
 190418822cbbef4c177e0fe0aca28a5d 569566 database optional virtuoso-vsp-startpage_6.1.4+dfsg1-7_all.deb
 f5408ee9240491ff62a56420f5004fcd 1346874 database optional virtuoso-vad-conductor_6.1.4+dfsg1-7_all.deb
 d2109420e644139278705cbcb59db521 63707258 doc optional virtuoso-vad-doc_6.1.4+dfsg1-7_all.deb
 de1c0411d6f56cd86c0520935d6cb316 12025066 doc optional virtuoso-vad-demo_6.1.4+dfsg1-7_all.deb
 9e125cf9cdef70bb6cdd1369bf5d72c7 5250850 doc optional virtuoso-vad-tutorial_6.1.4+dfsg1-7_all.deb
 115265b11358f8c01c680ca039857e09 2586156 database optional virtuoso-vad-rdfmappers_6.1.4+dfsg1-7_all.deb
 6513dda533345bfee4c06c6f6b48287d 647330 database optional virtuoso-vad-sparqldemo_6.1.4+dfsg1-7_all.deb
 4ee66eedb354fc4aaac04e9d68020181 102682 database optional virtuoso-vad-syncml_6.1.4+dfsg1-7_all.deb
 0a286b0572c0a725da4f66bf61cddbea 369696 database optional virtuoso-vad-bpel_6.1.4+dfsg1-7_all.deb
 101e3a7e6912cac93a4843fd5467c630 811930 database optional virtuoso-vad-isparql_6.1.4+dfsg1-7_all.deb
 c6d4b36771224e5ec1833c0525e833ba 5831152 database optional virtuoso-vad-ods_6.1.4+dfsg1-7_all.deb
 0c33f6baa737948ea8acabd48cdbc428 317322 database optional virtuoso-opensource-6.1_6.1.4+dfsg1-7_amd64.deb
 fb4aec25c6241ea92331013e6b148e9a 100022 database optional virtuoso-opensource-6.1-common_6.1.4+dfsg1-7_amd64.deb
 0a81cea9f35a69e0d7e4b27bdccad3e7 4125832 database optional virtuoso-opensource-6.1-bin_6.1.4+dfsg1-7_amd64.deb
 2ae2ad7b88aff0505a2e093aa2746857 882204 database optional libvirtodbc0_6.1.4+dfsg1-7_amd64.deb
 1abd6677aaae5261521e001c388cc36e 154204 cli-mono optional libvirtuoso5.5-cil_6.1.4+dfsg1-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJRb+PqAAoJEMcZdpmymyMqd8gP/0vCBLXceOzKpLUEI38bYv6G
0mwXZoq00A7GVl1ZnkpQGtSeaREJZtHePbHqHFmM3Bh/Ul8fMhuJqZEvZPnStvZU
ZPzUwZUoqZl9YYH3JzFCuQbHKNHFvqzNOa+Q7CQulmgi5Rbg98XUUZrwgb8OR6uV
TC34M9Lh44GOwANY85lB3TuyAaBjqFHYXD4bY6w0Wavq2ATlQluw14WZtU0gZkLj
ovcXrbJsMwF9YcGbKqCgG0UuN1YGnyVaI/5fFZ+cRXwLhqooNYeU7ZkEdS0WYnIY
ghvhlOjFZQ+b/n22EFaJdxjuqA/Wi2892QfE+fokckBV+TxqM+pFdw7QlBH3ZV9V
UJRblNbltVGtjys4xY9mbBkWsYVuoNL67H6yF2MbjvjmQJd1IrQXJ+KlT94tLYNp
a7rYrKEI+z9b2gXqJG7qofjAIn/B4rSBcO99cvfuy6VmE5OH/NeJPWL8YPoQbN+K
ty0c5RMUrP641Q7oQNcnSjwqtI026eUi+OZUP0ook35AXnMptFk0R+ObBhTL7E2G
kED7TGtbXugFceLYGZO6z0Lr499yDjlgz3VV1AGX2MoKwCF1csI/a+bW4anQbiH9
I2QwfzdkEY9p5Bp5VkLjFRq7KYZUQ1kVlZiEzHuAfTAuLwWb3YmT5ZACrArRSeEJ
CNEgs4WwOijQUqcRJVJR
=xdJw
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: