package moodle 1.8.2-1.2ubuntu2 failed to install/upgrade: CREATE ROLE fails with hyphen

Bug #304061 reported by miquel
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
moodle (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: moodle

E: moodle: el subproceso post-installation script devolvió el código de salida de error 1
E: moodle-book: problemas de dependencias - se deja sin configurar

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: el subproceso post-installation script devolvió el código de salida de error 1
Package: moodle 1.8.2-1.2ubuntu2
PackageArchitecture: all
SourcePackage: moodle
Title: package moodle 1.8.2-1.2ubuntu2 failed to install/upgrade: el subproceso post-installation script devolvió el código de salida de error 1
Uname: Linux 2.6.27-9-generic i686

Revision history for this message
miquel (ubunteacher) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report

The error is
=====
Configurando moodle (1.8.2-1.2ubuntu2) ...
 * Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
   ...done.
uid=113(moodle-miquel) gid=65534(nogroup) grupos=65534(nogroup)
ERROR: error de sintaxis en o cerca de «-»
LINE 1: CREATE ROLE moodle-miquel PASSWORD 'murphyaiken' NOSUPERUSER...
                          ^
dpkg: error al procesar moodle (--configure):
 el subproceso post-installation script devolvió el código de salida de error 1
=====

It looks like the role "moodle-miquel" is invalid. Could you please retry with a role name without the "-"

Thanks.

Changed in moodle:
status: New → Incomplete
petru (cojeap)
Changed in moodle:
assignee: nobody → cojeap
Revision history for this message
LaserJock (laserjock) wrote :

Looks like we need to quote DB usernames in postinst. See also bug #303070

Revision history for this message
LaserJock (laserjock) wrote :

I think I've got this bug figured out but please do respond to Jean-Baptiste's request as that should confirm the problem.

Changed in moodle:
assignee: cojeap → laserjock
importance: Undecided → High
milestone: none → ubuntu-9.04
status: Incomplete → Triaged
importance: High → Medium
LaserJock (laserjock)
Changed in moodle:
assignee: laserjock → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.