[Resolved] [DNS320L-REVA] Error while installing aMule (/var/lib/amule/amule.conf: No such file or directory)

248 views
Skip to first unread message

Guillaume Veys

unread,
May 12, 2020, 1:55:17 AM5/12/20
to al...@googlegroups.com
Hello and thanks for the hard work. 😊 I installed aMule 2.3.2 and got this message :

Installing Alt-F package amule
When done you must save settings help

Installing amule (2.3.2) to /Alt-F...
Downloading https://downloads.sourceforge.net/project/alt-f/pkgs/unstable/amule_2.3.2_arm.ipk
Configuring amule
sed: /var/lib/amule/amule.conf: No such file or directory
awk: /var/lib/amule/amule.conf: No such file or directory

BusyBox v1.20.2 (2017-09-22 20:15:53 WEST) multi-call binary.

Usage: dirname FILENAME

Strip non-directory suffix from FILENAME

amuled stopped
Successfully terminated.

Success

When I go to "Services... > User" and configure aMule, I get the same error message, right above the "aMule folder" field : "awk: /var/lib/amule/amule.conf: No such file or directory"

If I ssh to the box and run amuled, it says "amuled: can't load library 'libcryptopp.so.5.6'"

I installed the  Entware-ng libcryptoxx package but that didn't work change anything.

I uninstalled and re-installed the package, and the /var/lib/amule folder exists.

What am I missing?

Thanks.

João Cardoso

unread,
May 12, 2020, 2:05:14 PM5/12/20
to Alt-F

I can't completely reproduce that.

Installing amule should deploy installation of dependent packages, and that does not appear in your log.

[root@DNS-320L]# ipkg install amule
Installing amule (2.3.2) to /Alt-F...
Downloading http://silver/~jcard/pkgs//amule_2.3.2_arm.ipk
Installing libupnp (1.6.6-4) to /Alt-F...
Downloading http://silver/~jcard/pkgs//libupnp_1.6.6-4_arm.ipk
Installing cryptopp (5.6.5) to /Alt-F...
Downloading http://silver/~jcard/pkgs//cryptopp_5.6.5_arm.ipk
Installing wxwidgets (2.8.12) to /Alt-F...
Downloading http://silver/~jcard/pkgs//wxwidgets_2.8.12_arm.ipk
Configuring amule
Fail: you have to configure aMule first.  # that's expected. Using the webui to create and assign a home folder to amule allows starting it and it showing its webUI.
Configuring cryptopp
Configuring libupnp
Configuring wxwidgets
Successfully terminated.

However, the cryptopp package is in error, I didn't release it as it had some compilation issues.

[root@DNS-320L]# ldd /usr/bin/amuled  
       libpthread.so.0 => /lib/libpthread.so.0 (0xb6fa0000)
       libz.so.1 => /usr/lib/libz.so.1 (0xb6f84000)
       libcryptopp.so.5.6 => /usr/lib/libcryptopp.so.5.6 (0xb6bf4000)  # you should be missing that, and it explains the 'can't load library 'libcryptopp.so.5.6'"
       libupnp.so.3 => /usr/lib/libupnp.so.3 (0xb6bd1000)
       libthreadutil.so.2 => /usr/lib/libthreadutil.so.2 (0xb6bc5000)
       libixml.so.2 => /usr/lib/libixml.so.2 (0xb6bb5000)
       libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb6a61000)
       libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb69b5000)
       libm.so.0 => /lib/libm.so.0 (0xb699c000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6989000)
       libc.so.0 => /lib/libc.so.0 (0xb6926000)
       libdl.so.0 => /lib/libdl.so.0 (0xb691c000)
       libiconv.so.2 => /usr/lib/libiconv.so.2 (0xb6834000)
       libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6809000)
       ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6fba000)

[root@DNS-320L]# amuled --version
aMuleD 2.3.2 compiled with wxBase v2.8.12 (Debugging) (OS: Linux)

[root@DNS-320L]# rcamule status
Fail: you have to configure aMule first.

Configuring by using the webUI, by creating and specifying a folder on disk for amule usage and submiting allows amule to start. The password is the same as the Alt-F webUI.

On Tuesday, 12 May 2020 06:55:17 UTC+1, Guillaume Veys wrote:
Hello and thanks for the hard work. 😊 I installed aMule 2.3.2 and got this message :

Installing Alt-F package amule
When done you must save settings help

Installing amule (2.3.2) to /Alt-F...
Downloading https://downloads.sourceforge.net/project/alt-f/pkgs/unstable/amule_2.3.2_arm.ipk
Configuring amule
sed: /var/lib/amule/amule.conf: No such file or directory
awk: /var/lib/amule/amule.conf: No such file or directory

This file, /var/lib/amule/amule.conf, is created by the initscript "rcamule start|stop|status". Don't start amule (or any other service) from the command line unless you know ehat you are doing.


BusyBox v1.20.2 (2017-09-22 20:15:53 WEST) multi-call binary.

Usage: dirname FILENAME

Strip non-directory suffix from FILENAME

amuled stopped
Successfully terminated.

Success

When I go to "Services... > User" and configure aMule, I get the same error message, right above the "aMule folder" field : "awk: /var/lib/amule/amule.conf: No such file or directory"

Perhaps a previous broken install?


If I ssh to the box and run amuled, it says "amuled: can't load library 'libcryptopp.so.5.6'"

That I could reproduce.
But when doing that sort of thing always try to use an inocuos option, such as 'amuled --help' or 'amuled --version'. Otherwise the service might create files in places where you don't intend to, and is unaware, and later that will conflict with the initscript.
 

I installed the  Entware-ng libcryptoxx package but that didn't work change anything.

Of course not, "Entware is alien to Alt-F". It's clearly said. It is installed in a completely different place, uses its own libraries and configuration files, etc.
 

I uninstalled and re-installed the package, and the /var/lib/amule folder exists.

Probably from previous installations. Uninstalling the package will not remove that, as it might contain user modified files. You have to uninstall the package, remove the folder and existing files and start fresh.
 

What am I missing?

I uploaded a new cryptopp package, please try it.

You have to remove the amule and cryptopp packages, remove folder /var/lib/amule and files (using the command 'rm -rf /var/lib/amule'), update the package feed, then reinstall amule. Please post the full installation log if there are any errors or you couldn't configure, start and then use it using the webUI. The button "WebPage" should display it (or opening it in another browser tab at port 8087 (http://<yourbox>:8087) if the webUI is running under https://, as http:// and https:// pages can't be displayed together)

Thanks
 

Thanks.

Guillaume Veys

unread,
May 13, 2020, 5:07:08 AM5/13/20
to Alt-F
Thanks a lot João, I'll try that as soon as possible and I'll let you know. 😀

Guillaume Veys

unread,
May 14, 2020, 5:02:22 AM5/14/20
to al...@googlegroups.com
Good news João, it worked ! 😀
The problem was related to cryptopp : the Web UI showed that version "562" was installed (without the dots) but no update available. As you suggested I removed it and reinstalled amule and it worked (and cryptopp "5.6.5" (with the dots) came along).
There may be something wrong with the repo if version 5.6.5 isn't available, no? It could be that version "562" isn't considered as "5.6.2".

I think it could be because Alt-F the first version of amule I got was 2.3.1 and I updated it straight away, without removing cryptopp.

So, for future reference, for people who get the same error:
  • Uninstall amule
  • Uninstall cryptopp
  • remove the amule folder to be on the safe side: rm -rf /var/lib/amule
  • Reinstall amule

How do I mark this issue as resolved?

Cheers. 😊

João Cardoso

unread,
May 14, 2020, 12:29:36 PM5/14/20
to Alt-F


On Thursday, 14 May 2020 10:02:22 UTC+1, Guillaume Veys wrote:
Good news João, it worked ! 😀
The problem was related to cryptopp : the Web UI showed that version "562" was installed (without the dots) but no update available. As you suggested I removed it and reinstalled amule and it worked (and cryptopp "5.6.5" (with the dots) came along).
There may be something wrong with the repo if version 5.6.5 isn't available, no? It could be that version "562" isn't considered as "5.6.2".

Actually half the fault was mine. For ipkg cryptopp-562 is more recent than cryptopp-5.6.5 (it is a higher number), so it was installed instead. I had to remove cryptopp-562 from the repo.
Reply all
Reply to author
Forward
0 new messages