Getting an unexpected warning and a syntax error when installing

Bug #497385 reported by ctcarton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ebox (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ebox

When installing ebox via apt-get from the command line I got this displayed in the output:

Adding new user `ebox' (UID 114) with group `ebox' ...
The home directory `/var/lib/ebox/' already exists. Not copying from `/etc/skel'.
adduser: Warning: The home directory `/var/lib/ebox/' does not belong to the user that you are currently creating.
Adding user `ebox' to group `adm' ...
Adding user ebox to group adm
Done.
sh: Syntax error: "(" unexpected

The warning is a little worrying and the syntax error is obviously a bug. The package did install though and everything seems to work.

ProblemType: Bug
Architecture: i386
Date: Wed Dec 16 07:56:53 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: ebox 1.3.5-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: ebox
Uname: Linux 2.6.31-16-generic i686
XsessionErrors:
 (gnome-settings-daemon:1527): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1527): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:1567): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:1559): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (nautilus:2559): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

Revision history for this message
ctcarton (ctcarton) wrote :
Revision history for this message
jehon (jeanhonlet) wrote :

I did install ebox successfully one month ago, but now, I got the same problem when starting ebox...

$ sudo /etc/init.d/ebox usage
sh: Syntax error: "(" unexpected

$ sudo /usr/bin/perl /etc/init.d/ebox usage
sh: Syntax error: "(" unexpected

Which let me think it run under sh (instead of perl as indicated at first line of ebox)

$ sudo sh -x /etc/init.d/ebox usage
+ use strict
/etc/init.d/ebox: 1: use: not found
+ use warnings
/etc/init.d/ebox: 1: use: not found
+ use EBox::Global
/etc/init.d/ebox: 1: use: not found
+ use EBox
/etc/init.d/ebox: 1: use: not found
+ use EBox::Sudo
/etc/init.d/ebox: 1: use: not found
+ use File::Slurp
/etc/init.d/ebox: 1: use: not found
/etc/init.d/ebox: 18: Syntax error: "(" unexpected

Which confirm my idea: it run under sh instead of perl

Note that, strangely, if you run it without root priviledges (as normal user), it says:
$ /usr/bin/perl /etc/init.d/ebox usage
Cannot change user to ebox at /usr/share/perl5/EBox.pm line 137.

Which let me think it run correctly as perl executable.

Revision history for this message
Javier Uruen Val (juruen) wrote :

Actually, the issue was a debug line that shouldn't be there.

It does not affect the normal working of eBox though.

It's already fixed in trunk:

http://trac.ebox-platform.com/changeset/15650

You can easily get rid of it by removing from /usr/share/ebox/ebox-dbus-check a line containing:

system("echo $@ >> /tmp/fok");

papukaija (papukaija)
tags: added: karmic
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.