aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: AmuleWeb: wrong file sizes and speeds on NSLU2  (Read 5770 times)

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
AmuleWeb: wrong file sizes and speeds on NSLU2
« on: June 18, 2008, 01:32:05 PM »

Hi everyone!
I have aMule installed on my Linksys NSLU2, and it works fine.
The problem is that file sizes are wrong (always either 0 Mb or 1024 Mb) and so are upload/download speed, always locked at  Kb/s though the file gets downloaded.

How can I solve this?

Thanks in advance.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #1 on: June 18, 2008, 05:54:20 PM »

Hi Luca,

which version of aMule are you using? Do you use the webserver interface?
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #2 on: June 18, 2008, 06:11:02 PM »

Sorry, I forgot to write it.
I'm using version 2.1.3:
Code: [Select]
# amuled --version
amuled: OnInit - starting timer
aMuled 2.1.3 using  v2.8.0 (Unicoded) (OS: Linux)
I am using the web interface, and of course it is the same version:
Code: [Select]
# amuleweb  --version
amuleweb 2.1.3 using  v2.8.0 (Unicoded)
If you need further details just ask me.

Thank you for your help!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #3 on: June 18, 2008, 06:13:52 PM »

We recently release a new version, 2.2.1, would it be possible for you to upgrade?
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #4 on: June 18, 2008, 06:19:06 PM »

I upgraded through ipkg but with no luck, it still displays wrong sizes and speed.
I stopped amuled before upgrading and restarted it after.

Code: [Select]
# amuled --version
amuled: OnInit - starting timer
aMuled 2.2.1 using  v2.8.7 (OS: Linux)
# amuleweb --version
amuleweb 2.2.1 using  v2.8.7
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #5 on: June 18, 2008, 06:42:18 PM »

Could you please use amulecmd to see if the display works correctly?
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #6 on: June 18, 2008, 07:41:12 PM »

I tried searching some files with amulecmd, and sizes are correct.
I also tried to download one of the files I found, running "download <result number>": in the web interface it shows up in downloading files, but in amulecmd, when I try to run "show dl" it tells me "illegal instruction" and exits:
Code: [Select]
aMulecmd$ show DL
Illegal instruction
Logged

lfroen

  • Guest
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #7 on: June 19, 2008, 12:24:37 AM »

On NSLU2 you should be using Debian build. Optware compiler have bug in floating point instructions, which leads to incorrect display in webinterface and other glitches.
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #8 on: June 19, 2008, 01:26:38 PM »

Thanks for the info, lfroen.
But I saw that for Debian it's avaible only version 2.1.3 and a SVN snapshot of June 8th of 2.2.
I'll try with 2.1.3, extracting manually .deb packages.
Logged

lfroen

  • Guest
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #9 on: June 21, 2008, 11:53:33 AM »

I did build on debian desktop set to cross-compiling. Unfortunately, I have no idea how to create correct config file for package building.
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #10 on: June 21, 2008, 03:42:18 PM »

I had no luck extracting the packages, and tried to compile amule directly on the slug, but it can't find zlib, though the package is installed and I can see the files in /opt/lib:
Code: [Select]
# ls -l /opt/lib/libz.so*
lrwxrwxrwx    1 root     root           13 May 16 03:40 /opt/lib/libz.so -> libz.so.1.2.3
lrwxrwxrwx    1 root     root           13 May 16 03:40 /opt/lib/libz.so.1 -> libz.so.1.2.3
-rwxrwxrwx    1 root     root        67764 Mar 20 00:00 /opt/lib/libz.so.1.2.3

Any suggestion on how to make the configure script understand that it is present? Could it be because I need a "zlib-dev" package or something similar?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #11 on: June 21, 2008, 04:04:27 PM »

On Debian like systems you'll need zlib-dev or similar, that's correct.

To extract deb packages, use the ar command with the x (extract) option. You'll get some files, extract data.tar.gz (or similar) to get the package content.
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #12 on: June 21, 2008, 04:18:30 PM »

I extracted the data.tar.gz deb packages on my Kubuntu machine with Ark, then I copied through SSH the directory structure I obtained in the /opt dir of my slug.
It told me "incorret syntax" when I tried to run the amuled binary.
Could this be related to kernel issues? Unslung is Big Endian, while Debian is Little Endian.
Logged

lfroen

  • Guest
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #13 on: June 21, 2008, 08:17:52 PM »

When architecture doesn't match, you explicitly told about it. "incorrect syntax" - no idea where does it come from
Logged

LucaTNT

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
    • LuBlog
Re: AmuleWeb: wrong file sizes and speeds on NSLU2
« Reply #14 on: June 21, 2008, 09:37:08 PM »

Me too, it's strange, a script might have incorrect syntax, but it was a binary!
I also checked with cat and the shell went crazy as usual...

Any ideas about gzip?
Logged
Pages: [1] 2