mldonkey not starting /var/run right troubles

Bug #37914 reported by chantra
8
Affects Status Importance Assigned to Milestone
mldonkey (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

while starting mldonkey-server with
/etc/init.d/mldonkey-server start
mldonkey reports:
Starting MLDonkey: mlnet file[s] not owned by user 113 or group 1001: /var/run -- reown it first

I've submitted a workaround on my blog:
http://debuntu.org/2006/04/03/14-how-to-dapper-and-starting-mldonkey-mlnet-file-s-not-owned-by-user-113-or-group-1001-var-run-reown-it-first

Revision history for this message
chantra (chantra) wrote :
Revision history for this message
kog (tbakiera) wrote :

I can confirm that link which 'chantra' gives, solving the bug.

Revision history for this message
JustusWinter (4winter) wrote : Confirmation and patch

I can confirm this bug and the fact that chantras workaround solves it. For your convenience I created a small patch.

kog (tbakiera)
Changed in mldonkey:
status: Unconfirmed → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

Added patch. Thanks

Changed in mldonkey:
status: Confirmed → Fix Released
Revision history for this message
kog (tbakiera) wrote : Error when updating

I'm trying to update to mldonkey-2.7.1-2ubuntu2 and I got
error message from synaptic:

E: mldonkey-server: podproces pre-removal script zwrócił kod błędu 1

I got polish ver so translation is "mldonkey server :subproces pre-removal script returns error code 1"

So, I use 'sudo apt-get remove --purge mldonkey-server'

It finished o.k.

and again 'sudo apt-get update' - to be sure I got latest ver

and then 'sudo apt-get install mldonkey-server'

It ask me to start mldonkey as service, password for admin and then I got:

Unpacking mldonkey-server (z .../mldonkey-server_2.7.1-2ubuntu2_i386.deb) ...
Configuring mldonkey-server (2.7.1-2ubuntu2) ...
Fatal error: exception Failure("lexing: empty token")
dpkg: error processing mldonkey-server (--configure):
 podproces post-installation script return error code 2
There was errors during processing:
 mldonkey-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

This installation steps are my translation from polish, but I hope they good.

Changed in mldonkey:
status: Fix Released → Confirmed
Revision history for this message
kog (tbakiera) wrote : there is no patch added in nev ver

I browse the package version mldonkey-2.7.1-2ubuntu2 and I saw that 'changelog.DEBIAN.gz' inform that patch for ovnership was added, so I wnt to /etc/init.d inside package file and there is no change ...

Revision history for this message
kog (tbakiera) wrote :

The backage can't be installed using package tools

Changed in mldonkey:
status: Confirmed → Unconfirmed
Revision history for this message
chantra (chantra) wrote :

I could install the ackage, but can't remove it :s
here is the dump:

sudo apt-get remove mldonkey-server --purge
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  mldonkey-server*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 8151kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 184635 files and directories currently installed.)
Removing mldonkey-server ...
Stopping MLDonkey: mlnetNo process in pidfile `/var/run/mlnet.pid' found running; none killed.
invoke-rc.d: initscript mldonkey-server, action "stop" failed.
dpkg: error processing mldonkey-server (--purge):
 subprocess pre-removal script returned error exit status 1
Starting MLDonkey: mlnet (unset) is not a valid directory.
invoke-rc.d: initscript mldonkey-server, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 mldonkey-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
chantra (chantra) wrote :

to work around this error, you can modify
/var/lib/dpkg/info/mldonkey-server.prerm
and enter exit 0 before the if condition.

As my server wasn't running when I wanted to remove the package, it didn't matter to stop mldonkey.

Revision history for this message
Jérémie Corbier (jcorbier) wrote :

Fixed package uploaded to edgy.

Changed in mldonkey:
status: Unconfirmed → Fix Committed
Revision history for this message
Jérémie Corbier (jcorbier) wrote :
Download full text (3.3 KiB)

mldonkey (2.7.7-5) unstable; urgency=low

  * Retry to stop the deamon with the --oknodo option of start-stop-daemon if
    stopping fails in order to work around an old bug in the init.d script,
    closes: #378934.
  * chown /var/run/mldonkey only if both variables MLDONKEY_USER and
    MLDONKEY_GROUP are set, closes: #378603.
  * Added arm_dynamic_loop_delay.dpatch on arm only to avoid a freeze of
    mldonkey, closes: #370107.

mldonkey (2.7.7-4) unstable; urgency=low

  * Import patch from Ubuntu (thanks Reinhard Tartler) to handle systems where
    /var/run is cleaned on reboot, closes: #354701.
    - Introduce new config variable in /etc/default/mldonkey-server:
      MLDONKEY_USER. This variable is only used by the init script.
    - Mke the initscript create /var/run/mldonkey-server, setting correct
      owner and permissions.
  * Added 04_cfs.dpatch (thanks spiralvoice) to handle CFS filesystems which
    incorrectly report freespace, closes: #377865.
  * Added a build-dependency on libmagic-dev, closes: #378150.
  * Added a build-dependency on ocaml-best-compilers since mldonkey is a
    fairly big package to build.
  * We don't need to remove rpaths anymore.

mldonkey (2.7.7-3) unstable; urgency=low

  * Added 03_lock_config_files_space.dpatch in order to handle leftover
    config_files_space.tmp files, closes: #359237.
  * Removed obsolete configure options, closes: #375921. Also removed Soulseek
    and Opennap from the description.
  * Updated french debconf templates translation, closes: #377574.
  * Depend on ocaml-base-nox instead of ocaml-base on non native archs.

mldonkey (2.7.7-2) unstable; urgency=low

  * mldonkey_options now correctly handles \" in strings, closes: #354433.
  * Disabling DirectConnect plugin for now since it is unstable and does not
    support uploading, closes: #224836.
  * Use ucf in postrm only if present, closes: #333314.

mldonkey (2.7.7-1) unstable; urgency=low

  * New maintainter:
    Debian OCaml Maintainers <email address hidden>.
  * New upstream release, closes: #361173.
  * Build-depend on ocaml-nox (>= 3.09.2), closes: #369770.
  * init.d script of mldonkey-server called with stop now exits with 0 even
    when the server was not running, closes: #338875.
  * Correcly set $HOME in mldonkey_server, closes: #355913.
  * Updated debconf templates and removed mldonkey-server/mldonkey_umask,
    mldonkey-server/client_name and mldonkey-server/plugin.
  * Removed unused debconf templates: mldonkey-server/config_exist_no_options,
    mldonkey-server/config_exist_no_dir and
    mldonkey-server/shared_directories, closes: #332320.
  * Updated the Czech debconf templates translation, closes: #335353.
  * Added a .desktop file for mldonkey-gui.
  * Updated standards version to 3.7.2, no changes needed.
  * Updated the watch file.

mldonkey (2.7.3-2) unstable; urgency=low

  * Fix the build on alpha by using a workaround when opt compilation
    has failed (Closes: #345793)

mldonkey (2.7.3-1) unstable; urgency=low

  * New upstream release
  * Test the presence of mlnet and mlgui, to fail ASAP if the compilation o...

Read more...

Changed in mldonkey:
status: Fix Committed → Fix Released
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.