Bug 10830 - proftpd: incorrect work in drakwizard
Summary: proftpd: incorrect work in drakwizard
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA2TOO MGA3-32-OK MGA3-64-OK MGA2-32...
Keywords: Junior_job, validated_update
Depends on: 10934
Blocks: 10981
  Show dependency treegraph
 
Reported: 2013-07-24 08:01 CEST by Alex Loginov
Modified: 2013-09-03 21:48 CEST (History)
7 users (show)

See Also:
Source RPM: drakwizard
CVE:
Status comment:


Attachments

Description Alex Loginov 2013-07-24 08:01:15 CEST
Description of problem: If proftpd service is not running, then drakwizard can not configure FTP via the first time, but can configure FTP via the second time. It means drakwizard must run proftpd service before apply settings. And there are no mechanism for run proftpd service on every boot.

"Configure web server" in drakwizard have:

*******************************************************************************
* Would you like to start the httpd service automatically on every boot?      *
* Yes                                                                         *
* No                                                                          *
*******************************************************************************

But "Configure FTP" in drakwizard have no this question:

*******************************************************************************
* Would you like to start the proftpd service automatically on every boot?    *
* Yes                                                                         *
* No                                                                          *
*******************************************************************************

Version-Release number of selected component (if applicable): drakwizard-3.7.5-1.mga1.noarch.rpm


How reproducible: always


Steps to Reproduce:
1. to stop or/and disable proftpd service
2. to run "Configure FTP"


Reproducible: 

Steps to Reproduce:
Alex Loginov 2013-07-24 08:03:03 CEST

Summary: proftpd: failure to Configure FTP => proftpd: incorrect work in drakwizard

Comment 1 Manuel Hiebel 2013-07-26 18:38:01 CEST
according to changelogs it seems to be fixed in mga > 2 http://svnweb.mageia.org/soft/drakwizard/trunk/

Keywords: (none) => Junior_job

Comment 2 David Walser 2013-08-11 02:22:45 CEST
Is this related to Bug 10934?

CC: (none) => derekjenn

Comment 3 Derek Jennings 2013-08-19 15:47:45 CEST
(In reply to David Walser from comment #2)
> Is this related to Bug 10934?

Only to the extent that I was investigating this bug when I found Bug 10934.

Bug 10934 only affects Mga3 and Cauldron, while this bug affects mga2
Comment 4 Derek Jennings 2013-08-19 22:20:21 CEST
I have taken a look at this problem, and it is the same as Bug 6009.

The fix for 6009 was never backported to mga2. I will update drakwizard in mga2 to drakwizard-3.9-1 to resolve it.

Assignee: bugsquad => derekjenn
Status: NEW => ASSIGNED
CC: (none) => jani.valimaa

Comment 5 Derek Jennings 2013-08-23 02:23:32 CEST
drakwizard-3.9-1.mga2 is in mga2 core/updates_testing
Only Mga2 is affected, and the package is noarch so no need to test on all platforms.

SRPM
----
drakwizard-3.9-1.mga2.src.rpm

RPMS
---
drakwizard-3.9-1.mga2.noarch.rpm
drakwizard-base-3.9-1.mga2.noarch.rpm

Advisory
--------
This is a bugfix update for drakwizard to fix an error message at the completion of the wizard the first time it is run to set up an FTP server. (mga#10830)

Test Procedure
--------------
1/ Ensure that drakwizard and proftp are not installed.
2/ Install drakwizard from the core repository and run it with the command 'drakwizard'
3/ Select FTP server and go through the wizard. Default configuration settings are fine.
4/ Observe that at the end of the wizard you see a message saying installation has failed, but if you check the status of proftpd it is actually running.

5/ Uninstall proftp and drakwizard
6/ Install drakwizard-3.9-1 from core/updates_testing and repeat going through the wizard.
7/ Observe there is no error message at the completion of the wizard and proftpd is running.

Assignee: derekjenn => qa-bugs
Hardware: i586 => All

Comment 6 claire robinson 2013-08-23 14:47:24 CEST
Sorry Derek, this still fails. Webserver configuration also fails in the same place.
claire robinson 2013-08-23 14:47:40 CEST

Whiteboard: (none) => feedback

Comment 7 Derek Jennings 2013-08-23 22:08:56 CEST
(In reply to claire robinson from comment #6)
> Sorry Derek, this still fails. Webserver configuration also fails in the
> same place.

OK Thanks. Then I had better merge this bug with Bug 10934 and fix them both together.

The problem is caused by a timing race condition. It starts the service and then immediately checks if it is running before the service has had a chance to get started properly.

Depends on: (none) => 10934
Assignee: qa-bugs => derekjenn

Comment 8 Derek Jennings 2013-09-01 00:14:21 CEST
New Packages are in mga2 and mga3 core/updates_testing
The packages are 'noarch' and do not need testing on all platforms.

MGA2
----

SRPM  drakwizard-3.7.7-1.mga2

RPMS drakwizard-3.7.7-1.mga2.noarch
     drakwizard-base-3.7.7-1.mga2.noarch


MGA3
----

SRPM  drakwizard-3.9.2-1.mga3

RPMS drakwizard-3.9.2-1.mga3.noarch
     drakwizard-base-3.9.2-1.mga3.noarch



Advisory
--------
This is a bugfix update for drakwizard to fix several bugs with the server wizards that cause failure messages at the completion of the wizards (mga#10830).

Test Procedure
--------------
1/ Ensure that drakwizard and proftpd are not installed.
2/ Install drakwizard from the core repository and run it with the command 'drakwizard'
3/ Select FTP server and go through the wizard. Default configuration settings are fine.
4/ Observe that at the end of the wizard you see a message saying installation has failed, but if you check the status of proftpd it is actually running.

5/ Uninstall proftp and drakwizard
6/ Install drakwizard-3.9-1 from core/updates_testing and repeat going through the wizard.
7/ Observe there is no error message at the completion of the wizard and proftpd is running.
8/ Run the web server wizard using default settings. Ovserve the wizard completes correctly and you can browse to http://localhost and see the "It works" message
9/ Run the proxy wizard selecting default settings. On successful completion set your browser to use a proxy server on localhost port 3128 and observe you can browse normally.
10/ Make a backup of your /etc/hosts and /etc/resolv.conf files. Run the DNS server selecting default settings, but give the IP address of your router as the external DNS server.  On completion of the wizard observe you can continue to browse and the command 'host www.yahoo.com localhost' returns Yahoo DNS information.  Uninstall the bind package and restore your hosts and resolv.conf files to return to normal operation.

NOTE:  If your domain name is 'localdomain' or none, then the DNS and proxy server wizards will not run.  Temporarily set your host/domain name with the command
hostname name.domain
After doing this you may find drakwizard now works in text mode, not graphical mode. This is normal and is due to your changing your host/domainname since you first booted.

Assignee: derekjenn => qa-bugs
Whiteboard: feedback => MGA3TOO

Derek Jennings 2013-09-01 00:34:09 CEST

Blocks: (none) => 10981

Comment 9 David GEIGER 2013-09-01 08:42:13 CEST
Seems a small problem from media Core_Updates_Testing sync. :

# LC_ALL=C urpmi.update -a -ff
    $MIRRORLIST: media/core/release/media_info/20130521-174949-synthesis.hdlist.cz
updated medium "Core Release (distrib1)"                                                                  
    $MIRRORLIST: media/core/updates/media_info/20130822-183223-synthesis.hdlist.cz
updated medium "Core Updates (distrib3)"                                                                  
    $MIRRORLIST: media/core/updates_testing/media_info/20130825-170142-synthesis.hdlist.cz
updated medium "Core Updates Testing (distrib5)"                                                          
    $MIRRORLIST: media/nonfree/release/media_info/20130518-182036-synthesis.hdlist.cz
updated medium "Nonfree Release (distrib11)"                                                              
    $MIRRORLIST: media/nonfree/updates/media_info/20130709-183843-synthesis.hdlist.cz
updated medium "Nonfree Updates (distrib13)"                                                              
    $MIRRORLIST: media/nonfree/updates_testing/media_info/20130709-183843-synthesis.hdlist.cz
updated medium "Nonfree Updates Testing (distrib15)"                                                      
    $MIRRORLIST: media/tainted/release/media_info/20130518-182058-synthesis.hdlist.cz
updated medium "Tainted Release (distrib21)"                                                              
    $MIRRORLIST: media/tainted/updates/media_info/20130817-085059-synthesis.hdlist.cz
updated medium "Tainted Updates (distrib23)"                                                              
    $MIRRORLIST: media/tainted/updates_testing/media_info/20130817-085059-synthesis.hdlist.cz
updated medium "Tainted Updates Testing (distrib25)" 
---------------------------------------------------------------------------
# LC_ALL=C urpmi --test drakwizard
To satisfy dependencies, the following packages are going to be installed:
(test only, installation will not be actually done)
  Package                        Version      Release       Arch    
(medium "Core Updates Testing (distrib5)")
  drakwizard                     3.10         1.mga3        noarch  
  drakwizard-base                3.10         1.mga3        noarch  
5.5MB of additional disk space will be used.
884KB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y


    $MIRRORLIST: media/core/updates_testing/drakwizard-base-3.10-1.mga3.noarch.rpm
    $MIRRORLIST: media/core/updates_testing/drakwizard-3.10-1.mga3.noarch.rpm                             
installing drakwizard-base-3.10-1.mga3.noarch.rpm drakwizard-3.10-1.mga3.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     ########################################################################
Installation is possible
---------------------------------------------------------------------------

It will installed drakwizard-3.10 instead of 3.9.2, why ?
By MCC same too.

CC: (none) => geiger.david68210

Comment 10 James Kerr 2013-09-01 10:19:31 CEST
Your mirror is not up to date. Wait until it sync's again or try a different mirror. (IIRC 3.10 was uploaded to mga3 in error.)
Comment 11 William Kenney 2013-09-03 17:35:58 CEST
In VirtualBox and KDE

Package(s) under test:
drakwizard proftpd

Drakwizard & Proftpd not installed
Install drakwizard
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.9-1.mga3.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Failed, Please relaunch drakwizard, and try to change some parameters
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.4c-2.mga3.i586 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Drakwizard & Proftpd not installed
Install updates from core updates_testing
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.9.2-1.mga3.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Congratulations - The wizard successfully configured your intranet/Internet FTP server
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.4c-2.mga3.i586 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Test platform:
Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
VirtualBox 4.2.16-1.mga3.x86_64.rpm

CC: (none) => wilcal.int
Whiteboard: MGA3TOO => MGA3TOO MGA3-32-OK

Comment 12 William Kenney 2013-09-03 18:02:00 CEST
In VirtualBox and KDE

Package(s) under test:
drakwizard proftpd

Drakwizard & Proftpd not installed
Install drakwizard
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.9-1.mga3.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Failed, Please relaunch drakwizard, and try to change some parameters
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.4c-2.mga3.x86_64 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Drakwizard & Proftpd not installed
Install updates from core updates_testing
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.9.2-1.mga3.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Congratulations - The wizard successfully configured your Intranet/Internet FTP server
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.4c-2.mga3.x86_64 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Test platform:
Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
VirtualBox 4.2.16-1.mga3.x86_64.rpm

Whiteboard: MGA3TOO MGA3-32-OK => MGA3TOO MGA3-32-OK MGA3-64-OK

Comment 13 William Kenney 2013-09-03 18:34:39 CEST
In VirtualBox and KDE

Package(s) under test:
drakwizard proftpd

Drakwizard & Proftpd not installed
Install drakwizard
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.7.5-1.mga1.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Failed, Please relaunch drakwizard, and try to change some parameters
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.3g-1.2.mga2.i586 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Drakwizard & Proftpd not installed
Install updates from core updates_testing
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.7.7-1.mga2.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Congratulations - The wizard successfully configured your intranet/Internet FTP server
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.3g-1.2.mga2.i586 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Test platform:
Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
VirtualBox 4.2.16-1.mga3.x86_64.rpm

Whiteboard: MGA3TOO MGA3-32-OK MGA3-64-OK => MGA3TOO MGA3-32-OK MGA3-64-OK MGA2-32-OK

Comment 14 William Kenney 2013-09-03 18:52:31 CEST
In VirtualBox and KDE

Package(s) under test:
drakwizard proftpd

Drakwizard & Proftpd not installed
Install drakwizard
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.7.5-1.mga1.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Failed, Please relaunch drakwizard, and try to change some parameters
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.3g-1.2.mga2.x86_64 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Drakwizard & Proftpd not installed
Install updates from core updates_testing
[root@localhost wilcal]# urpmi drakwizard
Package drakwizard-3.7.7-1.mga2.noarch is already installed
MCC -> Sharing -> Configure FTP -> install
Congratulations - The wizard successfully configured your Intranet/Internet FTP server
[root@localhost wilcal]# urpmi proftpd
Package proftpd-1.3.3g-1.2.mga2.x86_64 is already installed
Remote test of proftpd from another M3 on the LAN test ok

Test platform:
Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
VirtualBox 4.2.16-1.mga3.x86_64.rpm

CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update
Whiteboard: MGA3TOO MGA3-32-OK MGA3-64-OK MGA2-32-OK => MGA3TOO MGA3-32-OK MGA3-64-OK MGA2-32-OK MGA2-64-OK

Comment 15 William Kenney 2013-09-03 18:52:57 CEST
Testing complete mga2/3 32 & 64
Validating the update.
Could someone from the sysadmin team push 10830.adv to updates.
Thanks
Comment 16 claire robinson 2013-09-03 19:34:26 CEST
Derek, could you see bug 11134 please and let us know if that's something worth tackling as part of this update.

Thanks!
claire robinson 2013-09-03 19:35:06 CEST

Whiteboard: MGA3TOO MGA3-32-OK MGA3-64-OK MGA2-32-OK MGA2-64-OK => MGA2TOO MGA3-32-OK MGA3-64-OK MGA2-32-OK MGA2-64-OK
Version: 2 => 3

Comment 17 Dave Hodgins 2013-09-03 20:08:06 CEST
Advisory 10830.adv uploaded to svn.

Someone from the sysadmin team please push 10830 to updates

CC: (none) => davidwhodgins

Comment 18 Thomas Backlund 2013-09-03 21:48:49 CEST
Update pushed:
http://advisories.mageia.org/MGAA-2013-0099.html

CC: (none) => tmb
Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.