Bug#389806: moodle: fails to install
On Thu, Sep 28, 2006 at 05:12:44PM +0100, Isaac Clerencia wrote: > > If you really have to fail if the webserver is not configured before the > > package you should at least give a clear notice explaining the situation > > and how to fix it, not just > > ln: creating symbolic link `/etc/apache/conf.d/moodle' to > > `/etc/moodle/apache.conf': No such file or directory dpkg: error > > processing > Yeah, I agree on this. Thanks and sorry for the previous mail. I have done so many failed upgrade that my head spins. Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#389806: moodle: fails to install
On Thursday, 28 September 2006 16:39, Bill Allombert wrote: > What if the question, while being priority high, does have a reasonable > default ? Gratuituous high-priority questions is a major issue for any > attempt to perform test upgrade between release. > > Since there can be only one webserver installed That's wrong and thus the rest of the message is wrong too. Try apt-get install apache apache2 lighttpd boa to get a bunch of www servers installed :) > there is a reasonable > default: the webserver which is installed. > > The user do not know they need to install a webserver prior > seeing the debconf question, so they should be given a chance to > complete the install and then install the webserver they specified, > else the debconf question is useless. Alternatively, if you assume the > user will not actually install the webserver he specified, then the > debconf question is still useless. Well, it may be the most useless question out there but people have been using the package successfully for several years already :) Moodle's target users (system administrators willing to run Moodle as a web application) know perfectly what server are they using. > If you really have to fail if the webserver is not configured before the > package you should at least give a clear notice explaining the situation > and how to fix it, not just > ln: creating symbolic link `/etc/apache/conf.d/moodle' to > `/etc/moodle/apache.conf': No such file or directory dpkg: error > processing Yeah, I agree on this. Best regards P.S. I'm at aKademy just now, so I'm in "kde-only" mode, I will fix this as soon as I'm back| -- Isaac Clerencia at Warp Networks, http://www.warp.es Work: <[EMAIL PROTECTED]> | Debian: <[EMAIL PROTECTED]> pgpnBcs12l2Ih.pgp Description: PGP signature
Bug#389806: moodle: fails to install
On Wed, Sep 27, 2006 at 03:18:51PM -0700, Steve Langasek wrote: > On Wed, Sep 27, 2006 at 11:02:32PM +0200, Bill Allombert wrote: > > On Wed, Sep 27, 2006 at 09:50:17PM +0100, Isaac Clerencia wrote: > > > On Wednesday, 27 September 2006 21:07, Bill Allombert wrote: > > > > Package: moodle > > > > Version: 1.6.2-1 > > > > Severity: serious > > > > > > > > Hello Isaac, > > > > > > > > There is an error when attempting to install moodle: > > > > Setting up moodle (1.6.2-1) ... > > > > > > > > Creating config file /etc/moodle/config.php with new version > > > > ln: creating symbolic link `/etc/apache/conf.d/moodle' to > > > > `/etc/moodle/apache.conf': No such file or directory dpkg: error > > > > processing > > > > moodle (--configure): > > > >subprocess post-installation script returned error exit status 1 > > > Did you get the debconf dialog to ask you which server do you wanted to > > > configure? > > > It was non-interactive install, so no. > > Priorities >[...] >high Questions that don't have a reasonable default. > > debconf(7) > > There is no release requirement that a package be installable when > high-priority debconf questions are skipped. What if the question, while being priority high, does have a reasonable default ? Gratuituous high-priority questions is a major issue for any attempt to perform test upgrade between release. Since there can be only one webserver installed, there is a reasonable default: the webserver which is installed. > > > Did you choose apache 1? Do you have apache installed? > > > Neither. The offending code is there: > > > if [ ! -e /etc/${webserver}/conf.d/moodle ] > > then > >ln -s /etc/moodle/apache.conf /etc/${webserver}/conf.d/moodle > > fi > > > Either check /etc/${webserver}/conf.d/ exist or mkdir it. > > That would still result in an unusable package if the webserver chosen in > the debconf interface is not the one actually installed; so there's no In that case the debconf question should be replaced by a script that check what httpd is installed. There is no point asking trick questions to the user. > reason that mkdir (postponing the failure) is inherently preferable to an > immediate failure in the maintainer script. The user do not know they need to install a webserver prior seeing the debconf question, so they should be given a chance to complete the install and then install the webserver they specified, else the debconf question is useless. Alternatively, if you assume the user will not actually install the webserver he specified, then the debconf question is still useless. If you really have to fail if the webserver is not configured before the package you should at least give a clear notice explaining the situation and how to fix it, not just ln: creating symbolic link `/etc/apache/conf.d/moodle' to `/etc/moodle/apache.conf': No such file or directory dpkg: error processing Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#389806: moodle: fails to install
severity 389806 important thanks On Wed, Sep 27, 2006 at 11:02:32PM +0200, Bill Allombert wrote: > On Wed, Sep 27, 2006 at 09:50:17PM +0100, Isaac Clerencia wrote: > > On Wednesday, 27 September 2006 21:07, Bill Allombert wrote: > > > Package: moodle > > > Version: 1.6.2-1 > > > Severity: serious > > > > > > Hello Isaac, > > > > > > There is an error when attempting to install moodle: > > > Setting up moodle (1.6.2-1) ... > > > > > > Creating config file /etc/moodle/config.php with new version > > > ln: creating symbolic link `/etc/apache/conf.d/moodle' to > > > `/etc/moodle/apache.conf': No such file or directory dpkg: error > > > processing > > > moodle (--configure): > > >subprocess post-installation script returned error exit status 1 > > Did you get the debconf dialog to ask you which server do you wanted to > > configure? > It was non-interactive install, so no. Priorities [...] high Questions that don't have a reasonable default. debconf(7) There is no release requirement that a package be installable when high-priority debconf questions are skipped. > > Did you choose apache 1? Do you have apache installed? > Neither. The offending code is there: > if [ ! -e /etc/${webserver}/conf.d/moodle ] > then >ln -s /etc/moodle/apache.conf /etc/${webserver}/conf.d/moodle > fi > Either check /etc/${webserver}/conf.d/ exist or mkdir it. That would still result in an unusable package if the webserver chosen in the debconf interface is not the one actually installed; so there's no reason that mkdir (postponing the failure) is inherently preferable to an immediate failure in the maintainer script. Of course, the debconf default should probably at least be changed to match the dependency default (i.e., apache2). Cheers, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#389806: moodle: fails to install
On Wednesday, 27 September 2006 21:07, Bill Allombert wrote: > Package: moodle > Version: 1.6.2-1 > Severity: serious > > Hello Isaac, > > There is an error when attempting to install moodle: > Setting up moodle (1.6.2-1) ... > > Creating config file /etc/moodle/config.php with new version > ln: creating symbolic link `/etc/apache/conf.d/moodle' to > `/etc/moodle/apache.conf': No such file or directory dpkg: error processing > moodle (--configure): >subprocess post-installation script returned error exit status 1 Did you get the debconf dialog to ask you which server do you wanted to configure? Did you choose apache 1? Do you have apache installed? Best regards| -- Isaac Clerencia at Warp Networks, http://www.warp.es Work: <[EMAIL PROTECTED]> | Debian: <[EMAIL PROTECTED]> pgpkz7PZlVVfW.pgp Description: PGP signature
Bug#389806: moodle: fails to install
On Wed, Sep 27, 2006 at 09:50:17PM +0100, Isaac Clerencia wrote: > On Wednesday, 27 September 2006 21:07, Bill Allombert wrote: > > Package: moodle > > Version: 1.6.2-1 > > Severity: serious > > > > Hello Isaac, > > > > There is an error when attempting to install moodle: > > Setting up moodle (1.6.2-1) ... > > > > Creating config file /etc/moodle/config.php with new version > > ln: creating symbolic link `/etc/apache/conf.d/moodle' to > > `/etc/moodle/apache.conf': No such file or directory dpkg: error processing > > moodle (--configure): > >subprocess post-installation script returned error exit status 1 > Did you get the debconf dialog to ask you which server do you wanted to > configure? It was non-interactive install, so no. > Did you choose apache 1? Do you have apache installed? Neither. The offending code is there: if [ ! -e /etc/${webserver}/conf.d/moodle ] then ln -s /etc/moodle/apache.conf /etc/${webserver}/conf.d/moodle fi Either check /etc/${webserver}/conf.d/ exist or mkdir it. Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#389806: moodle: fails to install
Package: moodle Version: 1.6.2-1 Severity: serious Hello Isaac, There is an error when attempting to install moodle: Setting up moodle (1.6.2-1) ... Creating config file /etc/moodle/config.php with new version ln: creating symbolic link `/etc/apache/conf.d/moodle' to `/etc/moodle/apache.conf': No such file or directory dpkg: error processing moodle (--configure): subprocess post-installation script returned error exit status 1 Cheers, -- Bill. <[EMAIL PROTECTED]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]