persepolisdm / persepolis

Persepolis is a download manager written in Python.
https://persepolisdm.github.io
GNU General Public License v3.0
6.24k stars 650 forks source link

نیمه کاره ماندن دانلود #171

Closed hekmatinasser closed 5 years ago

hekmatinasser commented 7 years ago

سلام من وقتی صفی برای دانلود فایل های حجیم استفاده میکنم با اینکه در وضعیت دانلودینگ هست اما دانلودی انجام نمیشه و بعد اینکه مدتی داتلود کرده دیگه دانلود نمیکنه مگر خودم بیام دوباره برنامه رو ریست و مجدد باز کنم و صف رو دوباره شروع کنم این مورد هم دوستان من بهش برخوردن و تو دانلود های شبانه میگن ناخودآگاه دانلود متوقف میشه اما در صف وضعیت دانلودینگ زده با تشکر

alireza-amirsamimi commented 7 years ago

سلام سپاس از اینکه اطلاع میدید توزیعتون چی هست؟

hekmatinasser commented 7 years ago

ubuntu 16.04

alireza-amirsamimi commented 7 years ago

سلام چک کردم مشکلی نبود همونطور که میدونید پرسپولیس برای دانلود از آریا ۲ استفاده میکنه مشکل از نسخه قدیمی آریا ۲ در اوبونتو هست که در اون نسخه آریا ، مشکلاتی وجود داره این مشکلات در نسخه های جدید آریا۲ در آرچ لینوکس و فدورا و سوزه حل شده و وجود نداره موفق باشید

hekmatinasser commented 7 years ago

رفع این مشکل برای کاربران ubuntu 1- aria2c -v >>> 1.19.0 2- here download aria2-1.31.0.tar.gz 3- cd to/path 4- tar xvzf aria2-1.31.0.tar.gz 5- cd aria2-1.31.0/ 6- ./configure 7- make 8- sudo make install 9- aria2c -v >>> 1.31.0

ghost commented 7 years ago

ممنون منم همین مشکل رو داشتم.

RezaOptic commented 7 years ago

من با این روش آپدیت کردم اما الان برنامه ارور میده که نمیتونه Aria2 رو پیدا کنه

Perspolise can not connect to Aria2 check your network & restart perspolise

alireza-amirsamimi commented 7 years ago

@RezaOptic وقتی این دستور رو توی ترمینال میزنید چه خروجی میده؟

aria2c --version

و همینطور خروجی این دستور

whereis aria2c
RezaOptic commented 7 years ago

خروجی دستور اول

aria2 version 1.31.0
Copyright (C) 2006, 2016 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, Message Digest
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5
Libraries: 
Compiler: gcc 5.3.1 20160413
  built by   x86_64-pc-linux-gnu
  on         Apr 21 2017 17:38:19
System: Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/

خروجی دستور دوم

aria2c: /usr/bin/aria2c /usr/local/bin/aria2c /usr/share/man/man1/aria2c.1.gz

alireza-amirsamimi commented 7 years ago

حالا خروجی اینا رو بدید

/usr/bin/aria2c --version
/usr/local/bin/aria2c --version
RezaOptic commented 7 years ago

اولی

aria2 version 1.19.0
Copyright (C) 2006, 2015 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.8 libxml2/2.9.3 sqlite3/3.10.2 GnuTLS/3.4.9 nettle GMP/6.1.0 c-ares/1.10.0 libssh2/1.5.0
Compiler: gcc 5.3.1 20160216
  built by   x86_64-pc-linux-gnu
  on         Feb 17 2016 22:40:25
System: Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64

Report bugs to https://github.com/tatsuhiro-t/aria2/issues
Visit http://aria2.sourceforge.net/

دومی


aria2 version 1.31.0
Copyright (C) 2006, 2016 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, Message Digest
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5
Libraries: 
Compiler: gcc 5.3.1 20160413
  built by   x86_64-pc-linux-gnu
  on         Apr 21 2017 17:38:19
System: Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/
alireza-amirsamimi commented 7 years ago

الان حدس من اینه که شما هر دو نسخه آریا۲ رو با هم روی سیستم دارید و آریا۲ روی سیستمتون دچار مشکل شده ابتدا آریا۲ رو با پکیج منجرتون حذف کنید

sudo apt remove aria2
sudo rm -rf /usr/local/bin/aria2c
sudo rm -rf /usr/share/man/man1/aria2c.1.gz

و بعد دوباره کامپایل کنید و نصب کنید

RezaOptic commented 7 years ago

aria2 رو که پاک میکنم ظاهرا برنامه هم پاک میشه حالا چه اول نسخه جدید آریا رو دانلود و نصب کنم چه اول برنامه رو نصب کنم موقع نصب برنامه نسخه قدیمی آریا هم دانلود میشه و دوباره برنامه نمیتونه به آریا وصل بشه

alireza-amirsamimi commented 7 years ago

این کد رو در ترمینال بزنید و ترمینال رو نبندید

/usr/local/bin/aria2c --no-conf --enable-rpc --rpc-listen-port '6801' --rpc-listen-all 

و بعد همینجور که ترمینال باز هست پرسپولیس رو اجرا کنید البته مطمئن بشید که در تنظیمات پرسپولیس پورت برقراری ارتباط با آریا۲ رو تغییری ندادید و روی 6801 گذاشتید ببینید باز هم حطا میده و به من نتیجه رو اطلاع بدید

RezaOptic commented 7 years ago

دستور بالا رو که میزنم پیام های زیر رو فقط نشون میده و دوباره به حالت آماده برای دسترو بعدی قرار میگیره


04/25 11:46:02 [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.

04/25 11:46:02 [ERROR] IPv4 RPC: failed to bind TCP port 6801
Exception: [SocketCore.cc:312] errorCode=1 Failed to bind a socket, cause: Address already in use

04/25 11:46:02 [ERROR] IPv6 RPC: failed to bind TCP port 6801
Exception: [SocketCore.cc:312] errorCode=1 Failed to bind a socket, cause: Address already in use

04/25 11:46:02 [ERROR] Exception caught
Exception: [DownloadEngineFactory.cc:219] errorCode=1 Failed to setup RPC server.
alireza-amirsamimi commented 7 years ago

الان مشکل کمی عجیب شد. اصلا سیستم شما اجازه نمیده آریا روی پورت ۶۸۰۱ ارتباط برقرار کنه و اصلا آریا اجرا نمیشه که پرسپولیس بتونه باهاش ارتباط برقرار کنه. یه بار سیستم رو ری استارت کنید ببینید مشکل حل میشه یا نه و البته ببینید با آریا ۲ میتونید از ترمینال چیزی دانلود کنید؟

RezaOptic commented 7 years ago

خروجی دستور

/usr/local/bin/aria2c --no-conf --enable-rpc --rpc-listen-port '6801' --rpc-listen-all


04/25 11:55:58 [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.

04/25 11:55:58 [NOTICE] IPv4 RPC: listening on TCP port 6801

04/25 11:55:58 [NOTICE] IPv6 RPC: listening on TCP port 6801

اما وقتی میخوام با دستور زیر مستقیم با آریا چیزی رو دانلود کنم این ارور رو میده

aria2c https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz


04/25 12:01:15 [NOTICE] Downloading 1 item(s)

04/25 12:01:15 [ERROR] CUID#7 - Download aborted. URI=https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz
Exception: [AbstractCommand.cc:351] errorCode=1 URI=https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz
  -> [InitiateConnectionCommandFactory.cc:88] errorCode=1 https is not supported yet.

04/25 12:01:15 [NOTICE] Download GID#9902043fe873f419 not complete: 

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
990204|ERR |        n/a|https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.

البته فایل های که با http باشن رو دانلود میکنه آریا

alireza-amirsamimi commented 7 years ago

الان خطای اول رفع شده اول ! پرسپولیس رو ببندید و بعد همه ترمینال هایی که مربوط به آریا۲ هست رو متوقف کنید و این کد رو بزنید

killall aria2c
sudo cp -rf  /usr/local/bin/aria2c   /usr/bin/aria2c
sudo rm -rf /usr/local/bin/aria2c

بعد پرسپولیس رو باز کنید ببینید مشکل ارتباط با آریا۲ حل شده یا نه. بعد میزیم مرحله بعدی

RezaOptic commented 7 years ago

خیر مشکل همچنان باقی هست

alireza-amirsamimi commented 7 years ago

خروجی این دو تا دستور لطفا

/usr/bin/aria2c --version
whereis aria2c
RezaOptic commented 7 years ago

اولی

aria2 version 1.31.0
Copyright (C) 2006, 2016 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

** Configuration **
Enabled Features: BitTorrent, Message Digest
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5
Libraries: 
Compiler: gcc 5.3.1 20160413
  built by   x86_64-pc-linux-gnu
  on         Apr 25 2017 11:13:40
System: Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/

دومی

aria2c: /usr/bin/aria2c /usr/share/man/man1/aria2c.1.gz

alireza-amirsamimi commented 7 years ago

حالا پرسپولیس رو ببندید و آریا۲ رو متوقف کنید این دستور رو بزنید

aria2c --no-conf --enable-rpc --rpc-listen-port '6801' --rpc-listen-all

همینجور که ترمینال باز هست ، پرسپولیس رو باز کنید. و بعد ببینید میتونید دانلودی با پرسپولیس انجام بدید؟ این لینک رو دانلود کنید

https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
RezaOptic commented 7 years ago

بعد از اجرای دستور فوق پیام های زیر نشون داده میشه و با اجرا کردن برنامه و اضافه کردن فایل برای دانلود چیز دیگه ای اضافه نمیشه


04/25 12:31:19 [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.

04/25 12:31:19 [NOTICE] IPv4 RPC: listening on TCP port 6801

04/25 12:31:19 [NOTICE] IPv6 RPC: listening on TCP port 6801

فایل برای دانلود اضافه میکنم و استارت دانلود میزنم پیام زیر رو میده.

Aria2 did not Responde

alireza-amirsamimi commented 7 years ago

الان میخوام بدونم وقتی کاری که گفتم رو کردید پرسپولیس خطای پیدا نکردن آریا رو نمیده؟ و بعدش آیا وقتی دانلود رو اضافه میکنید ، چیزی توی ترمینال آریا نوشته میشه یا نه

RezaOptic commented 7 years ago

چرا پرسپولیس خطای پیدا نکردن آریا رو میده اما برنامه کرش نمیکنه میشه فایل جدیدی برای دانلود اضافه کرد و بعد از اضافه کردن دانلود و استارت زدن و خطا دادن هیچ چیز دیگه ای به ادامه خروجی دستور زیر اضاقه نشد

aria2c --no-conf --enable-rpc --rpc-listen-port '6801' --rpc-listen-all

alireza-amirsamimi commented 7 years ago

@RezaOptic خروجی این دستور لطفا cat .config/persepolis_download_manager/persepolis.conf

RezaOptic commented 7 years ago
[AddLinkWindow]
position=@Point(300 300)
size=@Size(520 265)

[AfterDownloadWindow]
position=@Point(300 300)
size=@Size(575 293)

[ChromiumIntegrationWindow]
position=@Point(300 300)
size=@Size(459 341)

[MainWindow]
column0=300
column1=100
column10=200
column11=200
column12=200
column2=100
column3=120
column4=100
column5=120
column6=100
column7=100
position=@Point(0 24)
size=@Size(683 671)

[PreferencesWindow]
position=@Point(0 24)
size=@Size(1366 699)

[ProgressWindow]
position=@Point(57 181)
size=@Size(595 284)

[PropertiesWindow]
position=@Point(323 128)
size=@Size(700 500)

[TextQueue]
position=@Point(300 195)
size=@Size(700 500)

[add_link_initialization]
download_user=
ip=
port=0
proxy_user=

[settings]
after-dialog=yes
color-scheme=Persepolis Dark Red
column0=yes
column1=yes
column10=yes
column11=yes
column12=yes
column2=yes
column3=yes
column4=yes
column5=yes
column6=yes
column7=yes
connections=16
custom-font=no
download_path=/home/rezaoptic/Downloads/Persepolis
download_path_temp=/home/rezaoptic/.persepolis
font=Ubuntu
font-size=9
icons=Archdroid-Red
max-tries=5
notification=Native notification
retry-wait=0
rpc-port=6801
show-menubar=no
show-progress=yes
show-sidepanel=yes
sound=yes
sound-volume=100
startup=no
style=Fusion
subfolder=yes
timeout=60
tray-icon=yes

[version]
version=2.4199999999999999
alireza-amirsamimi commented 7 years ago

پرسپولیس رو به آخرین نسخه آپدیت کردید؟! توصیه میکنم این کار رو انجام بدید با این کد میتونید در ترمینل دانلود کنید؟

aria2c https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
RezaOptic commented 7 years ago

با https که دانلود انجام نمیده اما با http دانلود رو انجام میده

پرسپولیس رو با همین روشی که تو سایت نوشتین نصب کردم


sudo add-apt-repository ppa:persepolis/ppa
sudo apt update
sudo apt install persepolis
alireza-amirsamimi commented 7 years ago

@RezaOptic هفته پیش یه آپدیت برای پرسپولیس دادیم کی نصب کردید؟ به نظر میات اینترنتتون دچار مشکل هست و نمیذاره لینک های https دانلود بشن پروکسی سیستمتون رو چک کنید

RezaOptic commented 7 years ago

شاید ۳ یا ۴ روز پیش نصب کردم فایل های https با wget , uget دانلود میشن

alireza-amirsamimi commented 7 years ago
سلام تونستید مشکل https رو پیدا کنید؟ یه خواهش هم دارم . پرسپولیس رو باز کنید و ۳۰ ثانیه صبر کنید و ببندید. و بعد خروجی این دستور رو برای من اینجا بذارید ``` cat ~/.config/persepolis_download_manager/persepolisdm.log ```
JafarAkhondali commented 5 years ago

Please open a new issue if the problem exists within new version.