Rat's

PyOne一键安装脚本 for CentOS 7/Debian 8+/Ubuntu 16+
说明:PyOne最近凭着离线下载(完成并自动上传至Onedrive)和绑定多网盘的功能被越来越多的人使用,如果你还...
扫描右侧二维码阅读全文
30
2018/11

PyOne一键安装脚本 for CentOS 7/Debian 8+/Ubuntu 16+

说明:PyOne最近凭着离线下载(完成并自动上传至Onedrive)和绑定多网盘的功能被越来越多的人使用,如果你还不知道PyOne是何物的可以查看该教程→点击查看。作者更新也勤奋,所以得支持一下,之前博主发过基于宝塔的手动安装教程和Docker安装教程,查看:手动安装Docker安装。不过由于宝塔的Mongodb很容易出错,有些小白也不会解决,而Docker也不支持OpenVZ,所以博主写了个一键脚本,这里分享下。

脚本说明

#脚本会一键安装PyOne所需要的Mongodb、Redis、Aria2等环境,域名使用Caddy反代,自动配置SSL证书。

#本脚本使用的Aria2为某大佬编译的多线程版本,其特点可以将下载速度最大化优化,博主已配置完毕,如服务器性能不足,可将线程自行调整。
方法:修改配置文件/root/.aria2/aria2.conf,线程参数split=64,请自行调整。

#Aria2已添加了BT-Trackers服务器,并定时自动更新服务器地址。

#脚本使用systemctl替换了程序所使用的supervisord进程守护,所以程序的重启等命令会和官方文档上的不一样,详细的使用命令可以看文章后面。

#选择域名访问的,需要提前让解析生效,不然脚本会自动断开,因为后面需要签发SSL证书,ip必须为服务器ip。

更新

【2020.05.21】
修复安装问题,重新支持CentOS 7系统,安装有问题可以留言。
【2020.02.14】
由于程序模块改动,手动改了下,不过只限于Debian 9、10,Ubuntu 18.04、18.10、19.04系统安装使用
【2019.9.28】
新增Debian 10,升级MongoDB版本到4.0,有问题可以留言。
【2019.6.27】
修复部分CentOS 7安装出错的问题,并新增Ubuntu系统,已在Vultr的Ubuntu 16.04、18.04、18.10、19.04上测试通过
【2019.2.23】
鉴于有人需要3.0版本,现已增加安装3.0版本选项,多个选择,并使用的3.0最后一个版本。
【2019.2.16】
修改脚本部分安装步骤,使其支持PyOne4.0
【2019.1.31】
修复部分系统安装启动pyone失败的问题
【2018.11.30】
修复PyOne刷新不出文件夹/文件的问题。

安装

系统要求:CentOS 7Debian 8+Ubuntu 16+,建议Debian 9,且为刚安装好的系统,尽量不要用精简版系统。

使用命令:

wget -N --no-check-certificate https://www.moerats.com/usr/shell/PyOne/PyOne.sh
bash PyOne.sh

根据需求选择是否使用域名访问,然后输入域名和Aria2密匙即可。
请输入图片描述

安装完成后,如果打不开网站的,可以使用命令一起查看下各程序状态。

#使用域名访问的
systemctl status aria2 mongod redis-server pyone caddy
#使用IP访问的
systemctl status aria2 mongod redis-server pyone

如果有显示Active:inactive的,可以留言说下具体程序和系统。反之如果都为running,可以检查下防火墙端口,比如阿里云,谷歌云等,还需要在服务器管理面板上开放34567端口才行。

相关命令

#以下程序均已配置开机自启,所以就不说开机自启命令了。

#Redis使用命令
启动:systemctl start redis-server
重启:systemctl restart redis-server
停止:systemctl stop redis-server
状态:systemctl status redis-server

#Mongodb使用命令
启动:systemctl start mongod
重启:systemctl restart mongod
停止:systemctl stop mongod
状态:systemctl status mongod

#Aria2使用命令
启动:systemctl start aria2
重启:systemctl restart aria2
停止:systemctl stop aria2
状态:systemctl status aria2

#Caddy使用命令(使用域名的才会安装Caddy)
启动:systemctl start caddy
重启:systemctl restart caddy
停止:systemctl stop caddy
状态:systemctl status caddy

#PyOne使用命令
启动:systemctl start pyone
重启:systemctl restart pyone
停止:systemctl stop pyone
状态:systemctl status pyone

相关目录

PyOne程序目录:/root/PyOne
Caddy配置文件目录:/root/.caddy
Aria2配置文件目录:/root/.aria2

相关说明

#关于操作说明
由于更换了原程序进程守护,所以网站右上角的重启网站按钮已失效,请在SSH客户端使用systemctl restart pyone命令重启程序。

#关于离线下载
Aria2配置文件的下载路径为/root/Download,但该程序自带的离线下载不调用配置文件,所以使用本程序离线下载的目录为/root/PyOne/upload。

由于本程序离线下载不调用配置文件,所以Aria2多线程可能会发挥不出来,BT服务器也无效,不过会玩的,可以通过修改根目录的aria2.py文件某些参数达到目的,或者直接研究该教程:https://www.moerats.com/archives/697/,使用Aria2面板来离线下载更好,毕竟后者用的脚本比自带离线下载更稳定。

#刷新缓存问题
如果你在后台执行缓存刷新操作,可能短时间不会生效,建议直接在SSH客户端使用python /root/PyOne/function.py UpdateFile命令刷新

最后更多的使用方法(包括程序更新)可以查看该教程→点击查看,除了PyOne启动命令不一样以外,其它都一样,包括上传等命令。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。
最后修改:2020 年 05 月 21 日 10 : 36 PM

发表评论 取消回复

414 条评论

  1. lll

    Aug 13 23:55:18 vultr.guest systemd[1]: Started Caddy server.
    Aug 13 23:55:18 vultr.guest systemd[9649]: caddy.service: Failed to execute command: No such file or directory
    Aug 13 23:55:18 vultr.guest systemd[9649]: caddy.service: Failed at step EXEC spawning /usr/local/bin/caddy: No such fil
    Aug 13 23:55:18 vultr.guest systemd[1]: /etc/systemd/system/caddy.service:7: PIDFile= references path below legacy direc
    Aug 13 23:55:18 vultr.guest systemd[1]: caddy.service: Main process exited, code=exited, status=203/EXEC
    Aug 13 23:55:18 vultr.guest systemd[1]: caddy.service: Failed with result 'exit-code'.
    Aug 13 23:55:19 vultr.guest systemd[1]: /etc/systemd/system/caddy.service:7: PIDFile= references path below legacy direc
    Aug 13 23:55:19 vultr.guest systemd[1]: caddy.service: Service RestartSec=100ms expired, scheduling restart.
    Aug 13 23:55:19 vultr.guest systemd[1]: caddy.service: Scheduled restart job, restart counter is at 3.
    Aug 13 23:55:19 vultr.guest systemd[1]: /etc/systemd/system/caddy.service:7: PIDFile= references path below legacy direc

    1. Rat's
      @lll

      caddy v1好像被官方弃用了,暂时会安装运行失败

  2. majianyu

    lxc架构
    除pyone,aria2之外其他服务正常启动
    pyone:
    Aug 10 01:30:31 srv10172 systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute, ignoring: -w4 -b 0.0.0.0:34567 run:app
    Aug 10 01:30:31 srv10172 systemd[1]: pyone.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
    Aug 10 01:30:55 srv10172 systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute, ignoring: -w4 -b 0.0.0.0:34567 run:app
    Aug 10 01:30:55 srv10172 systemd[1]: pyone.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.

    aria2
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Main process exited, code=exited, status=1/FAILURE
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Unit entered failed state.
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Failed with result 'exit-code'.
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Service hold-off time over, scheduling restart.
    Aug 10 04:25:06 srv10172 systemd[1]: Stopped Aria2 server.
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Start request repeated too quickly.
    Aug 10 04:25:06 srv10172 systemd[1]: Failed to start Aria2 server.
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Unit entered failed state.
    Aug 10 04:25:06 srv10172 systemd[1]: aria2.service: Failed with result 'exit-code'.

    1. Rat's
      @majianyu

      我都不知道能不能运行了,你可以把服务器发我,我给你看看,邮箱moerats@live.com

      1. majianyu
        @Rat's

        不搞了,自己装也是不行,aria2启动不了,感谢回复

  3. withrose

    centos7 安装pyone后 启动不了 故障如下,请问怎么解决?

    [root@server ~]# systemctl status pyone
    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Mon 2020-07-27 06:04:40 CST; 2min 38s ago
    Process: 2158 ExecStart=/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exited, status=1/FAILURE)
    Main PID: 2158 (code=exited, status=1/FAILURE)

    Jul 27 06:04:40 server systemd[1]: Unit pyone.service entered failed state.
    Jul 27 06:04:40 server systemd[1]: pyone.service failed.
    Jul 27 06:04:40 server systemd[1]: pyone.service holdoff time over, scheduling restart.
    Jul 27 06:04:40 server systemd[1]: Stopped pyone.
    Jul 27 06:04:40 server systemd[1]: start request repeated too quickly for pyone.service
    Jul 27 06:04:40 server systemd[1]: Failed to start pyone.
    Jul 27 06:04:40 server systemd[1]: Unit pyone.service entered failed state.
    Jul 27 06:04:40 server systemd[1]: pyone.service failed.
    [root@server ~]#

  4. withrose

    pyone上传文件功能时常不上传,需要重启才能继续上传,上传速度也很慢,过去几个学时间上传正常,近来出现上传停顿现象,请问这是什么原因导致的?应该怎么解决上传问题?谢谢!

    1. Rat's
      @withrose

      看是不是api抽风啥的

      1. withrose
        @Rat's

        麻烦提醒下具体是哪个api抽风

        1. Rat's
          @withrose

          不清楚,这里面模块老在改动,作者也不更新了,很容易安装出问题,你先在PyOne源码目录手动运行/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,贴下日志看看

        2. Rat's
          @withrose

          微软的

  5. electron

    caddy.service - Caddy server
    Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2020-07-22 01:20:42 UTC; 9s ago
    Process: 20316 ExecStart=/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree (code=ex
    Main PID: 20316 (code=exited, status=203/EXEC

    1. Rat's
      @electron

      直接使用命令/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree,看有不有报错,或者使用journalctl -u caddy看下日志

  6. mickey

    使用pacificrack vps安装,发现Debian 9域名验证通过,Ubuntu 16.04域名验证通过,aria2不行,centos 7用域名登入不了,使用systemctl status aria2 mongod redis-server pyone,Ip登入没有问题

    1. Rat's
      @mickey

      就caddy问题么?你使用命令/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree,看有不有报错,或者使用journalctl -u caddy看下日志

  7. szz

    wget -N --no-check-certificate https://www.moerats.com/usr/shell/PyOne/PyOne.sh
    bash PyOne.sh这个命令显示无法解析了

    1. Rat's
      @szz

      我这好像没问题,看看服务器dns啥的

  8. qwertyuiop1822

    ⚠️ This installer only supports v1, which is obsoleted now that Caddy 2 is released. This script may change or go away soon. Please upgrade: https://caddyserver.com/docs/v2-upgrade
    Downloading Caddy for linux/amd64 (personal license)...

    1. qwertyuiop1822
      @qwertyuiop1822

      一直这样不动了

      1. Rat's
        @qwertyuiop1822

        你是国内服务器吧?网络不行

  9. qwertyuiop1822

    站长,这个脚本下载MongoDB速度太慢了,怎么解决

    1. Rat's
      @qwertyuiop1822

      额,直接用的官方源安装的,国内或者网络环境不好的,可能会很慢。

  10. 也许明天会更好

    为什么我选择的是域名绑定,然后域名不能访问,要加34567端口才可以,用IP+34567也可以。

    1. Rat's
      @也许明天会更好

      估计caddy出了问题,看下日志journalctl -u caddy

      1. 也许明天会更好
        @Rat's

        [root@iZuu1hsvff249yZ ~]# /etc/init.d/caddy status
        -bash: /etc/init.d/caddy: No such file or directory
        [root@iZuu1hsvff249yZ ~]# wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && bash caddy_install.sh uninstall
        --2020-06-12 11:03:48-- https://www.moerats.com/usr/shell/Caddy/caddy_install.sh
        Resolving www.moerats.com (www.moerats.com)... 172.83.156.172
        Connecting to www.moerats.com (www.moerats.com)|172.83.156.172|:443... connected.
        HTTP request sent, awaiting response... 200 OK
        Length: 5543 (5.4K) [application/octet-stream]
        The sizes do not match (local 5609) -- retrieving.

        --2020-06-12 11:03:49-- https://www.moerats.com/usr/shell/Caddy/caddy_install.sh
        Reusing existing connection to www.moerats.com:443.
        HTTP request sent, awaiting response... 200 OK
        Length: 5543 (5.4K) [application/octet-stream]
        Saving to: ‘caddy_install.sh’

        100%[========================================================================================================================>] 5,543 --.-K/s in 0s

        2020-06-12 11:03:49 (764 MB/s) - ‘caddy_install.sh’ saved [5543/5543]

        [错误] Caddy 没有安装,请检查 !
        [root@iZuu1hsvff249yZ ~]#

        这应该是Caddy没有安装成功吧

        1. Rat's
          @也许明天会更好

          是不是跳脚本了?文中的脚本caddy是有安装的

  11. 天涯
    你好,大神! Pyone 安装完成,但是 ip:34567 端口访问,链接不到 ,错误如下:

    PyOne安装完成!
    请通过访问:http://ip:34567 继续后面的安装
    PyOne后台密码:111111
    Aria2密匙:111111
    常用命令:

    暂停PyOne: systemctl stop pyone启动PyOne: systemctl start pyone重启PyOne: systemctl restart pyone手动运行PyOne: systemctl stop pyone && gunicorn -keventlet -b 0:34567 run:app暂停Aria2: systemctl stop aria2启动Aria2: systemctl start aria2重启Aria2: systemctl restart aria2
    ———————————————————————————————————————

    PyOne交流群:864996565
    PyOne交流群TG:https://t.me/joinchat/JQOOug6MY11gy_MiXTmqIA
    [root@VM_32_2_centos PyOne]# pgrep 'pyone'
    [root@VM_32_2_centos PyOne]# pgrep 'aria2'
    5847
    [root@VM_32_2_centos PyOne]# start aria2
    -bash: start: command not found
    [root@VM_32_2_centos PyOne]# start pyone
    -bash: start: command not found

    1. Rat's
      @天涯

      重新运行脚本吧,之前程序相关软件包更新到新版后出了问题,改了下,可以安装了

  12. withrose

    给作者提个建议,作者经常改动脚本,新改的又出问题,往能保留历史安装版本,至少能保证大家能正常安装使用pyone

    1. Rat's
      @withrose

      现在可以安装了,固定了程序几个软件包版本

    2. Rat's
      @withrose

      这个与脚本无关,有些软件包更新后,会出现兼容性问题,有的改动太大,直接用不了,导致脚本安装就失败了,最好的办法就是把能用的写进docker

  13. didi

    mongod.service - MongoDB Database Server
    Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: e
    Active: failed (Result: exit-code) since Sat 2020-06-06 04:50:32 CST; 3s ago

    Docs: https://docs.mongodb.org/manual

    Main PID: 30119 (code=exited, status=14)

  14. withrose

    pyone 启动失败 centos7

    Welcome to Alibaba Cloud Elastic Compute Service !

    [root@izj6c0cofdn29jkvuio7kwz ~]# systemctl status pyone
    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Fri 2020-06-05 10:39:28 CST; 9min ago
    Process: 29168 ExecStart=/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exited, status=1/FAILURE)
    Main PID: 29168 (code=exited, status=1/FAILURE)

    Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: Unit pyone.service entered failed ....Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: pyone.service failed.
    Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: pyone.service holdoff time over, s....Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: start request repeated too quickly...eJun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: Failed to start pyone.
    Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: Unit pyone.service entered failed ....Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: pyone.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@izj6c0cofdn29jkvuio7kwz ~]#

    1. Rat's
      @withrose

      有库更新暂时安装不了了,我到时候再想想办法吧

      1. withrose
        @Rat's

        能否搞个更新前的下载包给我们装,前段时间的版本可以用,现在你们更新了不能用,怎么能让我们能安装前面版本的,谢谢

  15. withrose

    Welcome to Alibaba Cloud Elastic Compute Service !

    [root@izj6c0cofdn29jkvuio7kwz ~]# systemctl status pyone
    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Fri 2020-06-05 10:39:28 CST; 9min ago
    Process: 29168 ExecStart=/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exited, status=1/FAILURE)
    Main PID: 29168 (code=exited, status=1/FAILURE)

    Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: Unit pyone.service entered failed ....Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: pyone.service failed.
    Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: pyone.service holdoff time over, s....Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: start request repeated too quickly...eJun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: Failed to start pyone.
    Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: Unit pyone.service entered failed ....Jun 05 10:39:28 izj6c0cofdn29jkvuio7kwz systemd[1]: pyone.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@izj6c0cofdn29jkvuio7kwz ~]#

  16. fansgou

    博主 好像你的脚本强制按照py2.7 然后gunicorn代码要求 py3 ,我单独安装py3并设置全局后 还是不行,他启动的时候还是自动关联py2.7 无解啊

    1. Rat's
      @fansgou

      我看了下,好像是Setuptools不支持py2了,我找时间想想解决办法吧

  17. fansgou

    cd /root/PyOne && /bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,运行日志是
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker

    worker.init_process()

    File "/usr/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process

    self.wsgi = self.app.wsgi()

    File "/usr/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi

    self.callable = self.load()

    File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load

    return self.load_wsgiapp()

    File "/usr/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp

    return util.import_app(self.app_uri)

    File "/usr/lib/python2.7/site-packages/gunicorn/util.py", line 355, in import_app

    __import__(module)

    File "/root/PyOne/run.py", line 7, in <module>

    from app import create_app

    File "/root/PyOne/app/__init__.py", line 5, in <module>

    from .extend import *

    File "/root/PyOne/app/extend.py", line 2, in <module>

    from flask_caching import Cache

    File "/usr/lib64/python2.7/site-packages/flask_caching/__init__.py", line 412

    nonlocal source_check ^

    SyntaxError: invalid syntax

  18. rain
    该评论仅登录用户及评论双方可见
    1. Rat's
      @rain

      没列表显示么?看是不是api啥的问题

      1. rain
        @Rat's
        该评论仅登录用户及评论双方可见
  19. fansgou

    centos 7.2 安装好了后就是启动不了
    pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Wed 2020-06-03 22:46:02 CST; 2min 50s ago
    Process: 1471 ExecStart=/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exited, status=1/FAILURE)
    Main PID: 1471 (code=exited, status=1/FAILURE)

    Jun 03 22:46:01 MyCloudServer gunicorn[1471]: [2020-06-03 22:46:01 +0000] [1483] [INFO] Worker exiting (pid: 1483)
    Jun 03 22:46:01 MyCloudServer systemd[1]: Unit pyone.service entered failed state.
    Jun 03 22:46:01 MyCloudServer systemd[1]: pyone.service failed.
    Jun 03 22:46:02 MyCloudServer systemd[1]: pyone.service holdoff time over, scheduling restart.
    Jun 03 22:46:02 MyCloudServer systemd[1]: Stopped pyone.
    Jun 03 22:46:02 MyCloudServer systemd[1]: start request repeated too quickly for pyone.service
    Jun 03 22:46:02 MyCloudServer systemd[1]: Failed to start pyone.
    Jun 03 22:46:02 MyCloudServer systemd[1]: Unit pyone.service entered failed state.
    Jun 03 22:46:02 MyCloudServer systemd[1]: pyone.service failed.

    1. Rat's
      @fansgou

      cd /root/PyOne && /bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,看下运行日志

  20. withrose

    启动pyone失败 如下提示 麻烦作者帮找找原因谢谢

    [root@server ~]# cd /root/PyOne
    [root@server PyOne]# systemctl status pyone.service
    ● pyone.service - pyone
    Loaded: error (Reason: Invalid argument)
    Active: inactive (dead)

    May 22 00:45:35 server systemd[1]: [/etc/systemd/system/pyone.service:10] Executable...appMay 22 00:45:35 server systemd[1]: pyone.service lacks both ExecStart= and ExecStop=...ng.May 22 00:45:44 server systemd[1]: [/etc/systemd/system/pyone.service:10] Executable...appMay 22 00:45:44 server systemd[1]: pyone.service lacks both ExecStart= and ExecStop=...ng.May 22 00:45:49 server systemd[1]: [/etc/systemd/system/pyone.service:10] Executable...appMay 22 00:45:49 server systemd[1]: pyone.service lacks both ExecStart= and ExecStop=...ng.May 22 01:00:04 server systemd[1]: [/etc/systemd/system/pyone.service:10] Executable...appMay 22 01:00:04 server systemd[1]: pyone.service lacks both ExecStart= and ExecStop=...ng.May 22 01:01:39 server systemd[1]: [/etc/systemd/system/pyone.service:10] Executable...appMay 22 01:01:39 server systemd[1]: pyone.service lacks both ExecStart= and ExecStop=...ng.Hint: Some lines were ellipsized, use -l to show in full.

    1. Rat's
      @withrose

      重装系统重新安装下,我把脚本改了,初步解决了安装问题,重新支持了centos 7,测试了下没啥问题,有问题可以反馈

  21. 铭传

    大佬,Ubuntu19.04,一键安装出现下列报错

    pyone.service - pyone
    Loaded: bad-setting (Reason: Unit pyone.service has a bad unit file setting.)
    Active: inactive (dead)

    May 09 14:48:24 vm176614 systemd[1]: /etc/systemd/system/pyone.service:7: PIDFile= references a path below legacy directory /var/r
    May 09 14:48:24 vm176614 systemd[1]: /etc/systemd/system/pyone.service:9: Executable "w4" not found in path "/usr/local/sbin:/usr/
    May 09 14:48:25 vm176614 systemd[1]: pyone.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
    May 09 14:48:29 vm176614 systemd[1]: /etc/systemd/system/pyone.service:7: PIDFile= references a path below legacy directory /var/r
    May 09 14:48:29 vm176614 systemd[1]: /etc/systemd/system/pyone.service:9: Executable "w4" not found in path "/usr/local/sbin:/usr/
    May 09 14:48:29 vm176614 systemd[1]: pyone.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.

    1. Rat's
      @铭传

      systemctl cat pyone你运行这个命令,然后贴出来看看,感觉有东西没打印进去。

      1. 铭传
        @Rat's /etc/systemd/system/pyone.service

        [Unit]
        Description=pyone
        After=network.target
        Wants=network.target

        [Service]
        Type=simple
        PIDFile=/var/run/pyone.pid
        WorkingDirectory=/root/PyOne
        ExecStart= -w4 -b 0.0.0.0:34567 run:app
        RestartPreventExitStatus=23
        Restart=always
        User=root

        [Install]
        WantedBy=multi-user.target

        1. Rat's
          @铭传

          估计命令没写进去,你先看下gunicorn路径,命令:
          command -v gunicorn
          如果输出/usr/bin/gunicorn,再修改/etc/systemd/system/pyone.service文件,更改ExecStart参数,改成:
          /usr/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app
          最后重新加载配置文件:
          systemctl daemon-reload
          启动看看:
          systemctl start pyone

  22. yfavdh

    输入bash PyOne.sh命令时出现下列错误,最后这个http://ip:34567地址也打不开
    ERROR: Command errored out with exit status 1:

    command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5ju9Cs/shelljob/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5ju9Cs/shelljob/setup.py'"'"';

    f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-instal
    l-5ju9Cs/shelljob/pip-egg-info

    cwd: /tmp/pip-install-5ju9Cs/shelljob/ Complete output (5 lines): Generating Description failed, press enter to process anyway, or kill to cancelTraceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-5ju9Cs/shelljob/setup.py", line 15, in <module> input( 'Generating Description failed, press enter to process anyway, or kill to cancel' ) EOFError: EOF when reading a line ----------------------------------------

    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    1. Rat's
      @yfavdh

      什么系统

      1. 墨岚
        @Rat's

        这个问题其实不是在用本文这个一键脚本的时候出现的,是在用https://abbeyokgo.github.io/pyone-an-zhuang/xia-zai-yuan-ma-yi-jian-an-zhuang/这个一键脚本的时候出现的。

        问题已经解决了,可能是centos7不支持shelljob的0.5.8版本导致的,需要单独安装0.5.7版本,用命令pip install shelljob==0.5.7先指定安装0.5.7版本,再跑一轮一键安装脚本就OK了。

        1. Zhy
          @墨岚

          我所有系统都安装不了shelljob,pip install shelljob==0.5.7 这个能解决

          1. Rat's
            @Zhy

            我花时间试了下,有几个版本需要降级才能安装运行了。

        2. yaoyao
          @墨岚

          非常感谢,救了我一命

        3. Rat's
          @墨岚

          好的,有空我再试试centos 7

      2. 墨岚
        @Rat's

        Centos7用不了?

      3. 墨岚
        @Rat's

        一模一样的错误,Centos7

      4. yfavdh
        @Rat's

        是Debian GNU/Linux 9 (stretch)

        1. Rat's
          @yfavdh

          好的,有时间我再重新测试下安装

  23. m

    centos7安装显示不支持
    目前仅支持Debian 9、10,Ubuntu 18.04、18.10、19.04系统,安装退出

    1. Rat's
      @m

      是的,有依赖变动,作者也不修复了,我随便改了下,勉强可以安装几个系统了,就c7整不来了,直接限制了。

  24. syu

    打开pyone后台管理的离线下载报错 Aria2未验证!请检查Aria2信息!请问如解决?

    1. 铭传
      @syu

      你需要在后台管理里的系统设置最下面的那个aria2设置里面填写以下密钥

    2. syu
      @syu

      HTTPSConnectionPool(host='localhost', port=6800): Max retries exceeded with url: /jsonrpc (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))

      1. Rat's
        @syu

        这个报错还没见过,密码填了么?

  25. Magic
    该评论仅登录用户及评论双方可见
    1. Rat's
      @Magic

      访问域名直接提示未备案?这个还没遇到过

  26. 筱兮

    系统是centos7.7,我安装了宝塔界面,错误如下
    pyone.service - pyone
    Loaded: error (Reason: Invalid argument)
    Active: inactive (dead)

    3月 04 23:42:44 iZjbzhbnrerajoZ systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute, ignoring: -keventlet -b 0.0.0.0:34567 run:app
    3月 04 23:42:44 iZjbzhbnrerajoZ systemd[1]: pyone.service lacks both ExecStart= and ExecStop= setting. Refusing.
    3月 04 23:42:44 iZjbzhbnrerajoZ systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute, ignoring: -keventlet -b 0.0.0.0:34567 run:app
    3月 04 23:42:44 iZjbzhbnrerajoZ systemd[1]: pyone.service lacks both ExecStart= and ExecStop= setting. Refusing.
    3月 04 23:42:44 iZjbzhbnrerajoZ systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute, ignoring: -keventlet -b 0.0.0.0:34567 run:app
    3月 04 23:42:44 iZjbzhbnrerajoZ systemd[1]: pyone.service lacks both ExecStart= and ExecStop= setting. Refusing.

    1. Rat's
      @筱兮

      centos 目前用不了。换debian或者ubuntu吧

  27. 鱼干

    啥时候更新CentOS 7的PyOne

  28. 求助:搭建完成后离线下载创建任务下载后上传显示为待机

  29. soulnol

    出现问题:搭建完后出现502 Bad Request
    环境 :谷歌云,使用Ubuntu 16.04系统,已开放所有端口,使用root权限,纯净安装。选择的是域名访问和4.0的pyone。安装完,那3个服务都是active的。
    解决方法:删掉了,重建的Debian 10,运行正常。

    1. Rat's
      @soulnol

      好像ubuntu 18、19可以用

  30. youlikesoilove

    问下这是什么原因呢?我试了作者的宝塔一键脚本,也试了您的,但是都是拒绝访问,
    无法访问此网站198.211.9.198 拒绝了我们的连接请求。
    请试试以下办法:
    检查网络连接
    检查代理服务器和防火墙
    我确认防火墙是打开了的。能帮我看下吗?

    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Tue 2020-02-11 11:30:42 CST; 31s ago
    Process: 31233 ExecStart=/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exited, status=1/FAILURE)
    Main PID: 31233 (code=exited, status=1/FAILURE)

    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: Unit pyone.service entered failed state.
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: pyone.service failed.
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: pyone.service holdoff time over, scheduling restart.
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: Stopped pyone.
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: start request repeated too quickly for pyone.service
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: Failed to start pyone.
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: Unit pyone.service entered failed state.
    Feb 11 11:30:42 racknerd-9d5f60 systemd[1]: pyone.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.

    1. Rat's
      @youlikesoilove

      好像是有个模块出了问题,我手动改了下,目前debian和ubuntu安装正常。

    2. Rat's
      @youlikesoilove

      额,咋这么多出问题的,我先测试下。

  31. 啸天

    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2020-02-10 11:48:06 UTC; 887ms ago
    Main PID: 11211 (gunicorn)

    Tasks: 5 (limit: 4915)

    CGroup: /system.slice/pyone.service

    ├─11211 /usr/bin/python /usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app ├─11215 /usr/bin/python /usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app ├─11217 /usr/bin/python /usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app ├─11219 /usr/bin/python /usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app └─11221 /usr/bin/python /usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app

    Feb 10 11:48:06 web gunicorn[11211]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line
    Feb 10 11:48:06 web gunicorn[11211]: return util.import_app(self.app_uri)
    Feb 10 11:48:06 web gunicorn[11211]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in
    Feb 10 11:48:06 web gunicorn[11211]: __import__(module)
    Feb 10 11:48:06 web gunicorn[11211]: File "/root/PyOne/run.py", line 7, in <module>
    Feb 10 11:48:06 web gunicorn[11211]: from app import create_app
    Feb 10 11:48:06 web gunicorn[11211]: File "/root/PyOne/app/__init__.py", line 3, in <module>
    Feb 10 11:48:06 web gunicorn[11211]: from werkzeug.contrib.fixers import ProxyFix
    Feb 10 11:48:06 web gunicorn[11211]: ImportError: No module named contrib.fixers
    Feb 10 11:48:06 web gunicorn[11211]: [2020-02-10 11:48:06 +0000] [11215] [INFO] Worker exiting (pid: 11215)
    这是pyone的日志

    1. Rat's
      @啸天

      好像是有个模块出了问题,我手动改了下,目前debian和ubuntu安装正常。

  32. 啸天

    使用域名搭建后访问域名报502,查看日志所有的服务全部都是running,单独附上caddy日志给大佬看看,不知道啥问题
    root@web:~/.caddy# systemctl status caddy
    ● caddy.service - Caddy server
    Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2020-02-10 11:43:07 UTC; 42s ago
    Main PID: 11104 (caddy)

    Tasks: 7 (limit: 4915)

    CGroup: /system.slice/caddy.service

    └─11104 /usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree

    Feb 10 11:43:07 web caddy[11104]: Activating privacy features... done.
    Feb 10 11:43:07 web caddy[11104]: Serving HTTPS on port 443
    Feb 10 11:43:07 web caddy[11104]: https://od.xtboke.cn
    Feb 10 11:43:07 web caddy[11104]: Serving HTTP on port 80
    Feb 10 11:43:07 web caddy[11104]: http://od.xtboke.cn
    Feb 10 11:43:07 web caddy[11104]: WARNING: File descriptor limit 1024 is too low for production servers. At least 8
    Feb 10 11:43:36 web caddy[11104]: 2020/02/10 11:43:36 [ERROR 502 /admin] dial tcp 127.0.0.1:34567: connect: connect
    Feb 10 11:43:37 web caddy[11104]: 2020/02/10 11:43:37 [ERROR 502 /favicon.ico] dial tcp 127.0.0.1:34567: connect: c
    Feb 10 11:43:41 web caddy[11104]: 2020/02/10 11:43:41 [ERROR 502 /admin] dial tcp 127.0.0.1:34567: connect: connect
    Feb 10 11:43:42 web caddy[11104]: 2020/02/10 11:43:42 [ERROR 502 /favicon.ico] dial tcp 127.0.0.1:34567: connect: c
    lines 1-18/18 (END)

  33. 失落的世界
    该评论仅登录用户及评论双方可见
    1. Rat's
      @失落的世界

      好像是有个模块出了问题,我手动改了下,目前debian和ubuntu安装正常。

      1. 失落的世界
        @Rat's
        该评论仅登录用户及评论双方可见
        1. Rat's
          @失落的世界

          换debian和ubuntu吧,centos还有点问题,我有空多看看

          1. 失落的世界
            @Rat's

            谷歌云debian9还是不行,能帮我远程看下吗?留了微信

            ● pyone.service - pyone
            Loaded: error (Reason: Invalid argument)
            Active: inactive (dead)
            Feb 13 12:02:45 pyonel systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute,
            ignoring: -w4 -b 0.0.0.0:34567 run:app
            Feb 13 12:02:45 pyonel systemd[1]: pyone.service: Service lacks both ExecStart= and ExecStop= setting. Refu
            sing.
            Feb 13 12:02:54 pyonel systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute,
            ignoring: -w4 -b 0.0.0.0:34567 run:app
            Feb 13 12:02:54 pyonel systemd[1]: pyone.service: Service lacks both ExecStart= and ExecStop= setting. Refu
            sing.
            Feb 13 12:03:12 pyonel systemd[1]: [/etc/systemd/system/pyone.service:10] Executable path is not absolute,
            ignoring: -w4 -b 0.0.0.0:34567 run:app
            Feb 13 12:03:12 pyonel systemd[1]: pyone.service: Service lacks both ExecStart= and ExecStop= setting. Refu
            sing.

            1. Rat's
              @失落的世界

              把服务器信息发到moerats@live.com,我到时候看看。

              1. 失落的世界
                @Rat's
                该评论仅登录用户及评论双方可见
                1. Rat's
                  @失落的世界

                  对,可能有点小瑕疵,你先看下gunicorn的绝对路径,command -v gunicorn这个命令就可以看到,然后改成Execstart= /usr/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,在前面加一个绝对路径,然后重启服务器就行了。

                  1. 失落的世界
                    @Rat's
                    该评论仅登录用户及评论双方可见
                    1. Rat's
                      @失落的世界

                      使用域名打不开的话,看是不是caddy签发证书失败等问题,caddy运行正常吗?

                      1. 失落的世界
                        @Rat's
                        该评论仅登录用户及评论双方可见
                        1. 失落的世界
                          @失落的世界
                          该评论仅登录用户及评论双方可见
                          1. Rat's
                            @失落的世界

                            journalctl -u caddy这个可以看详细日志

                            1. 失落的世界
                              @Rat's
                              该评论仅登录用户及评论双方可见
                              1. Rat's
                                @失落的世界

                                这个是申请SSL失败了,你先把ssl下掉看看,修改/root/.caddy/caddy.conf,把tle那行代码删掉,重启就好了

                                1. 失落的世界
                                  @Rat's
                                  该评论仅登录用户及评论双方可见
                                  1. 失落的世界
                                    @失落的世界
                                    该评论仅登录用户及评论双方可见
                                    1. Rat's
                                      @失落的世界

                                      额,你还是选择ip安装,然后自己绑定下域名看看

  34. jia

    这里的没运行,Ubuntu 16.04 64位的
    pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: enabled)
    Active: failed (Result: start-limit-hit) since Sun 2020-02-09 10:33:15 CST; 10s ago
    Process: 7369 ExecStart=/usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exited, status=1/FAILURE)
    Main PID: 7369 (code=exited, status=1/FAILURE)

    Feb 09 10:33:14 iZ2ze4zttul0nh8oopew8bZ systemd[1]: pyone.service: Unit entered failed state.
    Feb 09 10:33:14 iZ2ze4zttul0nh8oopew8bZ systemd[1]: pyone.service: Failed with result 'exit-code'.
    Feb 09 10:33:15 iZ2ze4zttul0nh8oopew8bZ systemd[1]: pyone.service: Service hold-off time over, scheduling restart.
    Feb 09 10:33:15 iZ2ze4zttul0nh8oopew8bZ systemd[1]: Stopped pyone.
    Feb 09 10:33:15 iZ2ze4zttul0nh8oopew8bZ systemd[1]: pyone.service: Start request repeated too quickly.
    Feb 09 10:33:15 iZ2ze4zttul0nh8oopew8bZ systemd[1]: Failed to start pyone.
    Feb 09 10:33:15 iZ2ze4zttul0nh8oopew8bZ systemd[1]: pyone.service: Unit entered failed state.
    Feb 09 10:33:15 iZ2ze4zttul0nh8oopew8bZ systemd[1]: pyone.service: Failed with result 'start-limit-hit'.

    1. Rat's
      @jia

      给的信息看不出啥来,换个系统看看。

  35. XOR

    我的天,我装了redis,mongoDB和nginx,结果运行之后又装了一遍,然后全出错了,redis,mongodb启动失败,nginx工作不正常还好我之前有快照,要不然真的麻烦,建议设置先检查环境再安装

    1. Rat's
      @XOR

      对,只建议新装的系统运行。重复会出问题

  36. help

    ubuntu@ip-172-31-36-168:~$ systemctl status pyone
    ● pyone.service
    Loaded: error (Reason: Invalid argument)
    Active: inactive (dead)

    Jan 04 09:38:38 ip-172-31-36-168 systemd[1]: /etc/systemd/system/pyone.service:1:
    Jan 04 09:38:38 ip-172-31-36-168 systemd[1]: /etc/systemd/system/pyone.service:2:
    Jan 04 09:38:38 ip-172-31-36-168 systemd[1]: pyone.service: Service lacks both Exe
    Jan 04 09:39:15 ip-172-31-36-168 systemd[1]: /etc/systemd/system/pyone.service:1:
    Jan 04 09:39:15 ip-172-31-36-168 systemd[1]: /etc/systemd/system/pyone.service:2:
    Jan 04 09:39:15 ip-172-31-36-168 systemd[1]: pyone.service: Service lacks both Exe

    1. Rat's
      @help

      像是配置文件有问题,看下配置文件,查看命令:systemctl cat pyone

  37. luma

    caddy限制证书了,怎么办。。
    https://i.loli.net/2020/01/01/O1AGsw7nZYC5zFN.png

    1. Rat's
      @luma

      换域名,或者等几天

  38. go

    Aria2报错能怎么搞,视频不能播放用oneindex可以
    aria2.service - Aria2 server
    Loaded: loaded (/etc/systemd/system/aria2.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Tue 2019-12-10 01:25:02 CST; 3min 40s ago
    Process: 16843 ExecStart=/usr/bin/aria2c --conf-path=/root/.aria2/aria2.conf (code=exited, status=28)
    Main PID: 16843 (code=exited, status=28)

    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z aria2c[16843]: -x, --max-connection-per-ser...e
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z aria2c[16843]: server for each download.
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: Unit aria2.service entered fail....
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: aria2.service failed.
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: aria2.service holdoff time over....
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: Stopped Aria2 server.
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: start request repeated too quic...e
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: Failed to start Aria2 server.
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: Unit aria2.service entered fail....
    Dec 10 01:25:02 izuf64hr99wsn7sel216t2z systemd[1]: aria2.service failed.

    1. Rat's
      @go

      手动运行下,/usr/bin/aria2c --conf-path=/root/.aria2/aria2.conf,看报错日志

      1. go
        @Rat's

        重新安装下好了

    2. go
      @go

      哦还有大佬,修改后台密码在哪,我看说明也没看到翻了个底朝天也没看到

      1. Rat's
        @go

        应该是self_config.py文件里面,修改后记得重启

        1. go
          @Rat's

          上传文件到onedrive出错 create upload session fail!Service unavailable

        2. go
          @Rat's

          大佬,如果不用的话删除哪些文件?

          1. Rat's
            @go

            卸载吗?

            1. go
              @Rat's

              是的,还是上传文件onedrive出错能搞不说服务出错

  39. Xiaoj

    Mongodb等依赖安装成功!
    开始安装Aria2...
    --2019-11-24 10:22:59-- https://www.moerats.com/usr/shell/PyOne/aria2-1.34.0-linux-64.tar.gz
    Resolving www.moerats.com (www.moerats.com)... failed: Temporary failure in name resolution.
    wget: unable to resolve host address ‘www.moerats.com’
    tar (child): aria2-1.34.0-linux-64.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    PyOne.sh: line 147: cd: aria2-1.34.0-linux-64: No such file or directory
    make: * No rule to make target 'install'. Stop.
    Aria2安装失败!

    貌似服务器连不上你这地址

    1. Rat's
      @Xiaoj

      感觉是dns的原因

  40. Xiaoj

    阿里云执行 wget -N --no-check-certificate https://www.moerats.com/usr/shell/PyOne/PyOne.sh
    报错

  41. 向程序员致敬

    博主真牛。
    小白一次安装成功。下了两个片子,也自动上传onedrive,就是从onedrive拉到本地有点慢。

    1. Rat's
      @向程序员致敬

      慢是正常的。

      1. 向程序员致敬
        @Rat's

        想用博主的ARIA作为管理页面,怎么配置呢。

        1. 向程序员致敬
          @向程序员致敬

          pyone的下载时常好几天动也不动,不知道为什么。是博主说的上传功能有缺陷吗。博主可不可以说说怎么在PYONE基础上手动安装ARIA

          1. Rat's
            @向程序员致敬

            脚本已经给你安装了,随便找个面板用就行了。

            1. 向程序员致敬
              @Rat's

              博主的blog里的面板可以使用吗。
              如何配置才好。

  42. gao

    用pyone上传大文件时有时候显示创建实例失败,有时候上传中间会失败,日志里显示Service unavailable
    请教一下博主是因为什么啊,谢谢

    1. Rat's
      @gao

      好像这个问题之前见过,重新绑定下网盘看看

      1. gao
        @Rat's

        还是不行,不知道什么原因

  43. CC4

    请问是不是只要aria2下载到/root/PyOne/upload就会自动上传?

    1. Rat's
      @CC4

      不是,得配置下aria2上传参数,或者用后台的离线下载功能

  44. LY

    博主和PyOne的大佬合作了呀,66666。我用家中服务器安装然后用阿里云学生及反代域名,扫描快多了。

    1. Rat's
      @LY

      没,去年就认识,就瞎水了个脚本

  45. chwl

    caddy 一直不能启动 没办法了

    1. Rat's
      @chwl

      感觉是被签发证书限制了。

  46. aes

    大佬,有没有4.0.3左右版本的啊

    1. Rat's
      @aes

      很久没用了,4.0.3是什么时候的版本?

  47. sdshdv

    这个脚本不支持debian10了,用的谷歌云自带的debian10,安装的时候会显示Mongodb安装失败,换成centos7一下就装好了

    1. Rat's
      @sdshdv

      随便改了下,应该支持Debian 10了,在vultr上跑了一次

  48. wsf

    博主帮忙看看这是什么情况
    ● mongod.service - MongoDB Database Server
    Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Thu 2019-09-19 02:17:39 CST; 51s ago

    Docs: https://docs.mongodb.org/manual

    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: Starting MongoDB Database Server...
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z mongod[20039]: about to fork child process, waiting until se...ns.
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z mongod[20039]: forked process: 20042
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: mongod.service: control process exited, code=exi...=48
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: Failed to start MongoDB Database Server.
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: Unit mongod.service entered failed state.
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: mongod.service failed.

    ● redis-server.service - Redis
    Loaded: loaded (/etc/systemd/system/redis-server.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Thu 2019-09-19 02:17:40 CST; 50s ago
    Process: 20074 ExecStart=/usr/local/bin/redis-server (code=exited, status=1/FAILURE)
    Main PID: 20074 (code=exited, status=1/FAILURE)

    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: redis-server.service: main process exited, code=...URE
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: Unit redis-server.service entered failed state.
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: redis-server.service failed.
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: redis-server.service holdoff time over, scheduli...rt.
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: start request repeated too quickly for redis-ser...ice
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: Failed to start Redis.
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: Unit redis-server.service entered failed state.
    Sep 19 02:17:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: redis-server.service failed.

    ● pyone.service - pyone
    Loaded: error (Reason: Invalid argument)
    Active: inactive (dead)

    Sep 19 02:02:36 iZt4nfck6rch7vykauvmm8Z systemd[1]: [/etc/systemd/system/pyone.service:10] Executabl...app
    Sep 19 02:02:36 iZt4nfck6rch7vykauvmm8Z systemd[1]: pyone.service lacks both ExecStart= and ExecStop...ng.
    Sep 19 02:03:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: [/etc/systemd/system/pyone.service:10] Executabl...app
    Sep 19 02:03:40 iZt4nfck6rch7vykauvmm8Z systemd[1]: pyone.service lacks both ExecStart= and ExecStop...ng.
    Sep 19 02:04:00 iZt4nfck6rch7vykauvmm8Z systemd[1]: [/etc/systemd/system/pyone.service:10] Executabl...app
    Sep 19 02:04:00 iZt4nfck6rch7vykauvmm8Z systemd[1]: pyone.service lacks both ExecStart= and ExecStop...ng.
    Sep 19 02:15:08 iZt4nfck6rch7vykauvmm8Z systemd[1]: [/etc/systemd/system/pyone.service:10] Executabl...app
    Sep 19 02:15:08 iZt4nfck6rch7vykauvmm8Z systemd[1]: pyone.service lacks both ExecStart= and ExecStop...ng.
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: [/etc/systemd/system/pyone.service:10] Executabl...app
    Sep 19 02:17:39 iZt4nfck6rch7vykauvmm8Z systemd[1]: pyone.service lacks both ExecStart= and ExecStop...ng.
    Hint: Some lines were ellipsized, use -l to show in full.

    1. Rat's
      @wsf

      怎么全部挂了,看是不是硬盘满了,或者其他原因

      1. 苏苏
        @Rat's

        Loaded: error (Reason: Invalid argument)
        Active: inactive (dead)
        我的是这个情况,其他 Active

        1. Rat's
          @苏苏

          你是哪个显示这个

  49. 奕奕

    卡在下载Caddy这一步了,下不动。。。。几十K

    1. Rat's
      @奕奕

      国内服务器么?只能等了

  50. jin

    所有的脚本用域名都打不开,ip就可以,这是什么问题呀

    1. Rat's
      @jin

      看是不是签发证书被限制了?这个脚本的话,你试试手动使用命令启动caddy,caddy --conf=/root/.caddy/caddy.conf -agree,就有日志了。

  51. Wei

    已按教程安装成功,有点不太明白的就是文章开头说: 本脚本使用的Aria2为某大佬编译的多线程版本,其特点可以将下载速度最大化优化.
    然后结尾的说明又说:离线下载不调用配置文件,所以Aria2多线程可能会发挥不出来.
    听懵了。

    1. Rat's
      @Wei

      因为程序本身的Aria2是不调用配置文件的,貌似只调用了Aria2二进制文件,而配置文件是可以设置线程数达到效果的,系统会自动运行Aria2,期间是调用了配置文件,可以通过外部的Web使用

      1. Wei
        @Rat's

        听大佬一解释,更懵了。
        那按本教程安装完后,不更改任何配置,使用pyone的离线下载,到底有没有用多线程以及自动更新bt-tracker?

  52. Hao

    大佬,您能帮我看看,我自己改了下上传脚本,但是并没有上传。aria2日志里只显示执行脚本了。文件没有上传。

    !/bin/bash

    GID="$1";
    FileNum="$2";
    File="$3";
    MinSize="2" #限制最低上传大小,默认2k
    MaxSize="1572864000" #限制最高文件大小(单位k),默认150G
    RemoteDIR="/LixianDir/"; #rclone挂载的本地文件夹,最后面保留/
    DiskFlag="A"
    LocalDIR="/data/wwwroot/down.567765.xyz/download/"; #Aria2下载目录,最后面保留/

    if [[ "$FileNum" -eq '1' ]]; then
    Option=" Upload";
    else
    Option=" UploadDir";
    fi

    if [[ -z $(echo "$FileNum" |grep -o '[0-9]*' |head -n1) ]]; then FileNum='0'; fiif [[ "$FileNum" -le '0' ]]; then exit 0; fiif [[ "$#" != '3' ]]; then exit 0; fi

    function LoadFile(){
    IFS_BAK=$IFS
    IFS=$'n'
    if [[ ! -d "$LocalDIR" ]]; then return; fi
    if [[ -e "$File" ]]; then

    FileLoad="${File/#$LocalDIR}" while true do if [[ "$FileLoad" == '/' ]]; then return; fi echo "$FileLoad" |grep -q '/'; if [[ "$?" == "0" ]]; then FileLoad=$(dirname "$FileLoad"); else break; fi; done; if [[ "$FileLoad" == "$LocalDIR" ]]; then return; fi #EXEC1="$(command -v python)" EXEC1="python" EXEC2="/root/PyOne/function.py" if [[ -z "$EXEC1" ]] && [[ -z "$EXEC2" ]]; then return; fi cd "$LocalDIR"; if [[ -e "$FileLoad" ]]; then ItemSize=$(du -s "$FileLoad" |cut -f1 |grep -o '[0-9]*' |head -n1) if [[ -z "$ItemSize" ]]; then return; fi if [[ "$ItemSize" -le "$MinSize" ]]; then echo -ne "\033[33m$FileLoad \033[0mtoo small to spik.\n"; return; fi if [[ "$ItemSize" -ge "$MaxSize" ]]; then echo -ne "\033[33m$FileLoad \033[0mtoo large to spik.\n"; return; fi eval "${EXEC1} ${EXEC2}${Option}" \'"$LocalDIR${FileLoad}"\' "${RemoteDIR}" "${DiskFlag}"; #${EXEC1} ${EXEC2}${Option} $LocalDIR${FileLoad} ${RemoteDIR} ${DiskFlag} ; if [[ $? == '0' ]]; then rm -rf "$FileLoad"; fi fi

    fi
    IFS=$IFS_BAK
    }
    LoadFile;

    1. Hao
      @Hao

      大佬要不这个还是不显示了吧,太乱了,我能给你用邮件描述一下吗

      1. Rat's
        @Hao

        有点花,你是想把那个上传命令替换成pyone自带的?

        1. Hao
          @Rat's

          不好意思啊博主,我其实已经在里面把EXEC1指定python,EXEC2指定/root/PyOne/function.py,option指定Upload或者UploadDir,但是并不能上传,本地文件也在。很奇怪,我想在sh里调用似乎并没有实现,但是当我手动运行aria2下载完成执行的脚本,并按照aria2日志传递三个参数,是可以成功上传的,似乎是aria2执行脚本这一步有点问题。按照日志aria2确实执行了脚本但是没有下文了。请问我是否应该把aria2日志级别调整到debug呢,我现在是info级别

          1. Rat's
            @Hao

            我好像很久前试过,发现上传脚本自动触发的时候调用不了python命令,所以没下文了。

            1. Hao
              @Rat's

              这个算是aria2不完善的地方吗?我打算去github提问一下。

              1. Rat's
                @Hao

                这个就不清楚了

  53. vga

    要疯了 为什么用这个搭建好了之后也是 视频加载失败呢

    1. Rat's
      @vga

      有一种你这个号api被封了,用不了的感觉

  54. 过来看看

    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Ihh8SL/SQLAlchemy/

    安装的过程中出现这个东西

    1. Rat's
      @过来看看

      安装失败,什么系统?还有你换系统安装下应该就可以好。

  55. 过来看看

    ● mongod.service - High-performance, schema-free document-oriented database
    Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Fri 2019-07-19 17:51:58 CST; 9min ago

    Docs: https://docs.mongodb.org/manual

    Jul 19 17:51:58 sanhe-1 systemd[1]: Starting High-performance, schema-free document-oriented database...
    Jul 19 17:51:58 sanhe-1 mongod[15769]: about to fork child process, waiting until server is ready fo...ons.
    Jul 19 17:51:58 sanhe-1 mongod[15769]: forked process: 15772
    Jul 19 17:51:58 sanhe-1 systemd[1]: mongod.service: control process exited, code=exited status=48
    Jul 19 17:51:58 sanhe-1 systemd[1]: Failed to start High-performance, schema-free document-oriented...base.
    Jul 19 17:51:58 sanhe-1 systemd[1]: Unit mongod.service entered failed state.
    Jul 19 17:51:58 sanhe-1 systemd[1]: mongod.service failed.

    ● redis-server.service - Redis
    Loaded: loaded (/etc/systemd/system/redis-server.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Fri 2019-07-19 17:52:00 CST; 8min ago
    Process: 15802 ExecStart=/usr/local/bin/redis-server (code=exited, status=1/FAILURE)
    Main PID: 15802 (code=exited, status=1/FAILURE)

    亲爱的博主,这个是怎么了 ?

  56. kai

    一键脚本的Aria2怎么重启

    1. Rat's
      @kai

      看文章的相关命令。

      1. kai
        @Rat's

        = = 不好意思老哥,没注意

  57. wooyun

    请问一下我用pyone4.0自带的离线下载,下载到一半,手动在后台网页删除任务,但是vps里面还是占用了空间,我手动删除了upload文件夹,然后新建一个,下载失败的文件还是会在里面生成。怎样手动删除掉aria2的任务?

  58. tsttest

    ubuntu 19.04 也可以,只要把pip换成pip2就可以了

    1. Rat's
      @tsttest

      好的,稍微改了下,脚本已新增Ubuntu 16+的系统版本。

  59. 蜗牛

    脚本的201行 pip install -r requirements.txt 应该改为pip2 install -r requirements.txt吧,不然是用pip3

    1. Rat's
      @蜗牛

      这个倒不是很需要,脚本没安装pip3。

  60. 蜗牛

    上面的报错是centos7的,换了d9没问题了

    1. Rat's
      @蜗牛

      是的,没有啥问题是重装解决不了的。

  61. 蜗牛

    Running setup.py install for pycrypto ... error

    ERROR: Complete output from command /usr/bin/python2 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-P_Cg_g/pycrypto/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-JaATqy/install-record.txt --single-version-externally-managed --compile:
    1. Rat's
      @蜗牛

      CentOS 7的报错问题已修复,你再试试

  62. qww

    博主,你把脚本使用systemctl simple了,我改端口去哪里?

    1. Rat's
      @qww

      修改/usr/lib/systemd/system/pyone.service,应该可以看到端口,然后修改重启

  63. 223

    前面没安装反代,后面再安装可以?按照以前的操作?

    1. Rat's
      @223

      只能手动反代。

  64. 22

    全部安装完了之后,在文件管理页面创立文件夹失败,6800等端口已经开启,试着上传文件,能上传到服务器,但是转到OneDrive时upload fail!,大大求解

    1. Rat's
      @22

      你先把/root/PyOne/upload权限设置777试试,还出现问题的话,我就搭建一个看看。

      1. 22
        @Rat's

        emmm还有那个登录密码忘记了,,,在哪改,,,,777权限应该对了。。。之前写入权限没有

        1. 22
          @22

          在底下找到了,谢谢大佬

          1. Rat's
            @22

            解决了吗?解决的话,我就改下脚本。

            1. 22
              @Rat's

              解决了。。。

              1. 22
                @22

                大佬,在哪更改aria2的参数啊,感觉下载好慢

                1. Rat's
                  @22

                  用airang试试看,配置文件调整了下,下载慢其实也与资源有关

  65. mlgmxyysd

    ● caddy.service - Caddy server
    Loaded: loaded (/etc/systemd/system/caddy.service; disabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Wed 2019-05-22 23:32:29 CST; 6s ago
    Process: 5067 ExecStart=/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree (code=exited, status=203/EXEC)
    Main PID: 5067 (code=exited, status=203/EXEC)

    May 22 23:32:29 CloudFlashNet systemd[1]: Unit caddy.service entered failed state.
    May 22 23:32:29 CloudFlashNet systemd[1]: caddy.service failed.
    May 22 23:32:29 CloudFlashNet systemd[1]: caddy.service holdoff time over, scheduling restart.
    May 22 23:32:29 CloudFlashNet systemd[1]: Stopped Caddy server.
    May 22 23:32:29 CloudFlashNet systemd[1]: start request repeated too quickly for caddy.service
    May 22 23:32:29 CloudFlashNet systemd[1]: Failed to start Caddy server.
    May 22 23:32:29 CloudFlashNet systemd[1]: Unit caddy.service entered failed state.
    May 22 23:32:29 CloudFlashNet systemd[1]: caddy.service failed.

    1. Rat's
      @mlgmxyysd

      手动运行caddy --conf=/root/.caddy/caddy.conf -agree,然后贴一下错误

      1. mlgmxyysd
        @Rat's

        conf是这样的
        http {
        gzip
        proxy / 127.0.0.1:34567 {

        header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme}

        }
        }

      2. mlgmxyysd
        @Rat's

        Activating privacy features... done.
        2019/05/23 10:41:08 Listen: listen tcp :80: bind: address already in use

        1. Rat's
          @mlgmxyysd

          说你的80端口被占用,看是不是apache等默认软件,根据这篇文章检查下,https://www.moerats.com/archives/86/

          1. mlgmxyysd
            @Rat's

            是这样,服务器是朋友的,80端口和888端口是他的nginx网站,然后我域名没备案不能用80和443.

            1. Rat's
              @mlgmxyysd

              那你运行脚本的时候,使用ip访问就好了,别选择域名安装。

  66. Cat's

    PyOne 离线下载后台看不到实时下载速度和下载进度,可以安装AriaNg之类的前端查看.
    https://www.moerats.com/archives/255/

    如果想直接在前端中实现下载后自动上传参考帖子.(缺点是更改上传目录麻烦)
    https://www.moerats.com/archives/697/

    课代表

  67. shinaruan

    脚本提示 域名未解析
    (已解析域名,但是没有读取到本机ip 所以显示不匹配

    1. Rat's
      @shinaruan

      你可以编辑脚本,把检测域名那个步骤删掉。

  68. chx818

    离线下载下载完会自动上传od?我看到aria2配置里写着root/download

    1. Rat's
      @chx818

      用自带的离线下载会上传,用aria2面板的话,还需要额外配置

  69. UYG

    会自动更新吗?如果不会要怎么更新程序呢?

    1. Rat's
      @UYG

      不会自动,很久前准备加一个更新选项,发现程序经常改版,不通用,就没加,还是建议手动更新吧

  70. 凶真

    再后台哪里改密码啊,没看见- -

    1. Rat's
      @凶真

      修改源码目录的self_config.py文件,找到关键字

  71. alex

    caddy启动不成功,显示
    caddy.service - Caddy server
    Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Sun 2019-05-05 00:57:41 CST; 13min ago
    Process: 5227 ExecStart=/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree (code=exited, status=1/FAILURE)
    Main PID: 5227 (code=exited, status=1/FAILURE)

    May 05 00:57:41 Alex systemd[1]: caddy.service: main process exited, code=exited, status=1/FAILURE
    May 05 00:57:41 Alex systemd[1]: Unit caddy.service entered failed state.
    May 05 00:57:41 Alex systemd[1]: caddy.service failed.
    May 05 00:57:41 Alex systemd[1]: caddy.service holdoff time over, scheduling restart.
    May 05 00:57:41 Alex systemd[1]: start request repeated too quickly for caddy.service
    May 05 00:57:41 Alex systemd[1]: Failed to start Caddy server.
    May 05 00:57:41 Alex systemd[1]: Unit caddy.service entered failed state.
    May 05 00:57:41 Alex systemd[1]: caddy.service failed.
    通过ip可以访问,这个要怎么解决

    1. Rat's
      @alex

      应该是ssl被限制了,导致启动失败,先编辑root/.caddy/caddy.conf,去掉开头https的s,也删掉tls一行代码,然后重启systemctl restart caddy,最后再用http打开域名试试

      1. alex
        @Rat's

        感谢回复,谷歌了半天没解决,后面就干脆删除脚本里的caddy,用nginx反代了

  72. 风雨

    离线下载页白屏,咋办。用你的一键脚本,重装重启了都没有

    1. Rat's
      @风雨

      是全新系统装的?

  73. 5555

    用caddy反代子目录会经常502,删掉那三段代码又会出些问题,简直进退两难

    1. 5555
      @5555

      应该是caddy的问题

      1. Rat's
        @5555

        应该不会吧,我还没出现过。

        1. 5555
          @Rat's

          不要说了,现在挂了

          1. Rat's
            @5555

            可以查看全部程序状态,然后状态非Active:inactive的可以用命令重启下

  74. xydcz6

    大佬,用4.0的话会没有文件,用3.0的话就没事,而且很多次都会域名已经解析了,在安装时候还是提示域名没有解析,因为安装别的例如OneIndex的话就不会提示域名没有解析。

    1. Rat's
      @xydcz6

      可能是hosts的问题,你可以自己修改脚本,把左下角的use_domain(){domain},中的domain删掉,保存,再运行脚本

  75. 风雨

    报错啊,咋办。
    Traceback (most recent call last):
    File "/usr/lib64/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/root/PyOne/app/admin/upload.py", line 17, in upload
    filelists=list_all_files(local)
    File "/root/PyOne/app/utils/header.py", line 291, in list_all_files
    _files.extend(list_all_files(path))
    File "/root/PyOne/app/utils/header.py", line 291, in list_all_files
    _files.extend(list_all_files(path))
    File "/root/PyOne/app/utils/header.py", line 291, in list_all_files
    _files.extend(list_all_files(path))
    File "/root/PyOne/app/utils/header.py", line 291, in list_all_files
    _files.extend(list_all_files(path))
    File "/root/PyOne/app/utils/header.py", line 278, in list_all_files
    shutil.move(rootdir,newf)
    File "/usr/lib64/python2.7/shutil.py", line 298, in move
    copytree(src, real_dst, symlinks=True)
    File "/usr/lib64/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
    File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
    OSError: [Errno 1] Operation not permitted: '/sys/kernel/slab/d-0001024'

    1. Rat's
      @风雨

      这个还是换个系统试试吧

  76. LKT

    最近经常出现,在SSH客户端执行增量更新,出现错误,然后前端页面直接出现502 Bad Gateway,使用启动pyone的代码也不能运行网站

    1. Rat's
      @LKT

      用文章给的相关命令重新启动,所有应用都重启下

  77. ppx

    Mongodb等依赖安装失败,请重新检查! 这个是什么原因

    1. Rat's
      @ppx

      不清楚,没具体报错

  78. LKT

    你好,我想问下,网站建成之后,可以把DNS转到Cloudflare做加速吗?这样会隐藏真实ip,会对网站有影响吗?

    1. Rat's
      @LKT

      你可以试试,除了速度,其它好像没啥影响

  79. 6K

    caddy.service - Caddy server
    Loaded: loaded (/etc/systemd/system/caddy.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2019-03-21 23:08:10 EDT; 5s left
    Process: 26364 ExecStart=/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree (code=exited, status=1
    Main PID: 26364 (code=exited, status=1/FAILURE)
    Mar 21 23:08:10 YUN18811154922 systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE
    Mar 21 23:08:10 YUN18811154922 systemd[1]: caddy.service: Unit entered failed state.
    Mar 21 23:08:10 YUN18811154922 systemd[1]: caddy.service: Failed with result 'exit-code'.
    Mar 21 23:08:10 YUN18811154922 systemd[1]: caddy.service: Service hold-off time over, scheduling restart.
    Mar 21 23:08:10 YUN18811154922 systemd[1]: Stopped Caddy server.
    Mar 21 23:08:10 YUN18811154922 systemd[1]: caddy.service: Start request repeated too quickly.
    caddy启动错误

    1. Rat's
      @6K

      运行下这个命令caddy --conf=/root/.caddy/caddy.conf -agree,然后把错误发出来

      1. 6K
        @Rat's

        这个问题我重装解决了 现在问题是 一切正常 绑定了od 拉不到文件列表
        update A's / file
        2019-03-22 01:14:51,255 - INFO: [start] getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
        2019-03-22 01:14:54,444 - INFO: error:The caller does not have permission to perform the action.! waiting 180s

        1. Rat's
          @6K

          会不会是api的问题

          1. 6K
            @Rat's

            过了几个小时,现在可以更新数据了

          2. 6K
            @Rat's

            我重新绑定很多次了。。。

  80. tardlk

    club域名不能解析吗,昨天就已经解析到服务器的IP了,到现在还是现实未生效

    1. Rat's
      @tardlk

      再ssh客户端ping一下域名看看

      1. tardlk
        @Rat's

        解决了解析问题,运行结束后,网站502 Bad Gatewaydebian8系统

        1. Rat's
          @tardlk

          502就是运行失败,看下状态systemctl status pyone

  81. kanlee

    看过所有服务都是开启的,34567端口也打开了,但还是登录网站显示500❌?请问何解?
    500 Internal Privoxy Error
    Privoxy encountered an error while processing your request:

    Could not load template file no-server-data or one of its included components.

    Please contact your proxy administrator.

    If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It's typically the Privoxy install directory, or /etc/privoxy/).

    1. Rat's
      @kanlee

      绑定之后还是之前出现的

      1. kanlee
        @Rat's

        这个是绑定之后出现的

        1. Rat's
          @kanlee

          systemctl status redis-server
          systemctl status mongod
          看下运行状态,如果都在运行,试下这个命令:
          redis-cli

          FLUSHALL
          然后重启

          systemctl restart pyone

  82. 请问下安装了这个之后就不能安装宝塔面板了吗?试了很多次安装了这个就不能安装宝塔面板了

    1. Rat's
      @熊

      域名安装可能会和宝塔现有环境冲突

  83. 小宝宝

    我的磁链接下不动咋回事 一直没速度

    1. Rat's
      @小宝宝

      用的自带的离线下载?试试Aria2 Web界面下载,看我文章相关说明

  84. 迷你

    怎么修改端口

    1. Rat's
      @迷你

      试试修改这个文件/etc/systemd/system/pyone.service,改下34567,然后重启

  85. zoom

    请问我的域名之前配置过HTTPS,然后这次安装后打不开了是什么情况

    1. Rat's
      @zoom

      是新系统运行脚本么?然后打不开?

      1. zoom
        @Rat's

        是啊,最新的centos7

        1. Rat's
          @zoom

          看我文章,用下命令,查看几个状态看看,看有不有启动失败的

  86. 云洞

    大佬,求一份aria2的一键脚本,仅aria2,不需要ariang。https://www.moerats.com/archives/251/ 这个帖子的脚本不适用,最好是一键脚本里经过优化的。感谢,就差aria2的优化版了。

    1. Rat's
      @云洞

      可以看下这个https://www.moerats.com/archives/800/,然后顺便看下https://www.moerats.com/archives/462/

      1. 云洞
        @Rat's

        大佬,现在有一个小问题,下载文件并上传后在download目录里的aria2后缀文件和种子文件不会被删除。https://www.moerats.com/archives/251/ 这个脚本已经有了自动更新BT服务器的功能了。。

        1. Rat's
          @云洞

          只记得关掉force-save=ture参数,就不会有aria2后缀的文件了,其它的暂时不清楚,如果是用的程序自带的离线,可以问下作者

        2. Rat's
          @云洞

          只记得关掉force-save=ture参数,就不会有aria2后缀的文件了,其它的暂时不清楚,如果是用的程序自带的离线,可以问下作者

  87. 逗逗

    求助!安装后绑定网盘成功,但是不能显示网盘内的文件及文件夹,这个该如何处理

    1. Rat's
      @逗逗

      这个看是不是程序问题,刚作者大更了下,bug肯定是有不少的。

  88. sunby
    该评论仅登录用户及评论双方可见
    1. Rat's
      @sunby

      用的系统是刚重装好的,没其他环境?

  89. canadian drug store

    You stated that superbly!

  90. 莎莎

    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: pyone.service: Unit entered failed state.
    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: pyone.service: Failed with result 'exit-code'.
    lines 1-14/14 (END)
    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2019-02-07 04:41:41 UTC; 1min 22s ago
    Process: 919 ExecStart=/bin/bash -c cd /root/PyOne && /usr/local/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app (code=exi
    Main PID: 919 (code=exited, status=1/FAILURE)

    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: pyone.service: Unit entered failed state.
    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: pyone.service: Failed with result 'exit-code'.
    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: pyone.service: Service hold-off time over, scheduling restart.
    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: Stopped pyone.
    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: pyone.service: Start request repeated too quickly.
    Feb 07 04:41:41 ip-172-26-1-183 systemd[1]: Failed to start pyone.

    1. Rat's
      @莎莎

      你手动运行命令cd /root/PyOne && gunicorn -w4 -b 0.0.0.0:34567 run:app,然后看什么提升

      1. jia
        @Rat's

        :37:57 +0000] [7416] [ERROR] Exception in worker process:
        Traceback (most recent call last):
        File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker

        worker.init_process()

        File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process

        self.wsgi = self.app.wsgi()

        File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi

        self.callable = self.load()

        File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load

        return self.load_wsgiapp()

        File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp

        return util.import_app(self.app_uri)

        File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app

        __import__(module)

        File "/root/PyOne/run.py", line 7, in <modul

  91. 莎莎

    安装成功改了后台管理密码以后就再也进不去后台啦

    1. 莎莎
      @莎莎

      好了的,多次重启服务器后密码重置成原来的了

  92. Kevin

    Mongodb等依赖安装失败,请重新检查!
    脚本返回这个。。

    1. Rat's
      @Kevin

      最快的解决办法就是换系统吧,或者加我下面联系方式我帮你看看。

      1. Kevin
        @Rat's

        emmmm没看到联系方式 想向大佬你咨询一些主机的事情
        ovz真的心太累了

        1. Rat's
          @Kevin

          直接入手我置顶的香港,史上最便宜的大带宽香港KVM

          1. Kevin
            @Rat's

            这香港好使吗 养个鸡 挂个博客 再挂个oneindex

            1. Rat's
              @Kevin

              还行,我博客现在就挂在上面

              1. Kevin
                @Rat's

                轻量香港 安装pyone 报错 跟楼下的差不多 centos7.5好像
                先用了净化的脚本

                1. Rat's
                  @Kevin

                  问题好像知道了,刚把脚本改了下,你再试试?

  93. 萌小蛋

    用的阿里云的CentOS 7.4 轻量服务器
    ● pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Fri 2019-01-18 09:54:10 CST; 48s ago
    Main PID: 6638 (code=exited, status=1/FAILURE)

    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: pyone.service: main process exited, code=exited,...URE
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: Unit pyone.service entered failed state.
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: pyone.service failed.
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: pyone.service holdoff time over, scheduling restart.
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: start request repeated too quickly for pyone.service
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: Failed to start pyone.
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: Unit pyone.service entered failed state.
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: pyone.service failed.
    Jan 18 09:54:10 iZj6c1uuqdwe3m23mugyttZ systemd[1]: [/etc/systemd/system/pyone.service:9] Executable...One
    Hint: Some lines were ellipsized, use -l to show in full.

    1. Rat's
      @萌小蛋

      之前在阿里云轻量CentOS 7.3上测试没问题的,你重启下pyone试试,systemctl restart pyone

      1. 萌小蛋
        @Rat's

        还是这个问题,防火墙端口也开了,显示网页无法正常运行,就是开启不了pyone

        1. Rat's
          @萌小蛋

          具体情况不是很清楚,或者你安装个Debian 9试试,脚本地址:https://www.moerats.com/archives/163/

  94. 芒果粑粑

    请教下,oneindex或者pyone有没有批量下载的方法?有的网盘文件下面文件夹很多,文件也很多,一个个下载很麻烦,我也试过wget mirror,但是速度好像不给力。而且命令行不能关闭,请教下还有其他办法么?
    谢谢。

    1. Rat's
      @芒果粑粑

      试试rclone挂载?然后直接mv移动

  95. Freaky_Arse

    pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled)
    Active: failed (Result: start-limit) since Mon 2019-01-07 20:19:44 CST; 44sago
    Process: 20744 ExecStart=/bin/bash -c cd /root/PyOne && -w4 -b 0.0.0.0:34567 run:app (code=exited, status=127)
    Main PID: 20744 (code=exited, status=127)

    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: pyone.service: main proc...
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: Unit pyone.service enter...
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: pyone.service holdoff ti...
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: Stopping pyone...
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: Starting pyone...
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: pyone.service start requ...
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: Failed to start pyone.
    Jan 07 20:19:44 iZj6cgjhuv3ipquj1zu38xZ systemd[1]: Unit pyone.service enter...
    Hint: Some lines were ellipsized, use -l to show in full.

    1. Freaky_Arse
      @Freaky_Arse

      登陆网站显示 "502 Bad Gayteway"
      看不懂

      1. Rat's
        @Freaky_Arse

        什么系统?看了你的日志,大概解决方法你试试,使用which gunicorn命令获取执行路径,比如/usr/bin/gunicorn。

        然后编辑/etc/systemd/system/pyone.service文件,修改ExecStart后面的参数,在最后面某个地方加个/usr/bin/gunicorn(具体路径看上面获取的),比如:
        && /usr/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app
        然后重启服务器吧。

        1. Freaky_Arse
          @Rat's

          Debian 8.9 安装各种报错,等了半小时才装好,还打不开。
          换了CentOS 7.3,一键秒装,爽飞了~

          1. Freaky_Arse
            @Freaky_Arse

            PyOne的README.md图片显示默认适应宽度,还不会调,引用小图标被放大之后很丑。OneIndex没这毛病。

            1. Rat's
              @Freaky_Arse

              这个我还没注意到,可以给作者说下,要他弄下。

              1. Freaky_Arse
                @Rat's

                作者建的群里面全是打广告卖5T的,问问题也没人回,心累…… 还是用回OneIndex靠谱。要是OneIndex能绑定多个网盘就好了~

                1. Rat's
                  @Freaky_Arse

                  5T还不够用么。

                  1. Freak_Arse
                    @Rat's

                    容量是挺够用的,就是低价号容易翻车,要是有两个不同管理员账号下的5T空间互相备份那不就完美了。就算买上三个也不超过¥10,而且这样三个不相关的号一般也不会同时崩掉。不知道大佬对这个想法有没有兴趣,说不定哪天写出个OneRaid来了呢

                    1. Rat's
                      @Freak_Arse

                      我的5T很难翻车,所以

  96. sdshdv

    一键脚本无法通过git pull来更新,必须要删掉一键脚本然后重装手动脚本才能更新,这样很麻烦,不知道是否可以改进

    1. Rat's
      @sdshdv

      更新功能最开始是有的,然后作者更新命令经常会有变化,怕出问题就删掉了,所以建议参考我最下面留的另一篇文章手动更新。

  97. chancat

    请问博主,不想安装Aria2 这个咋办呢?

    1. Rat's
      @chancat

      手动安装,教程:https://www.moerats.com/archives/734/

  98. Xen

    请问这个和oneindex哪体验好?主要用来离线下载

    1. Rat's
      @Xen

      如果你不需要绑定多网盘的话,建议用oneindex和我博客上传脚本,https://www.moerats.com/archives/697/。

      1. Xen
        @Rat's

        已经配置好了pyone请问Aria 2没速度会是什么原因?用迅雷直接下有速度,但是挂在Aria 2上几个小时了还是0%vps是vultr

        1. Rat's
          @Xen

          我忘了说明了,你可以先不用程序自带的离线,默认不调用配置文件,可以用我上面给你的地址,单独使用Aria2面板下载,看速度会不会好些。

          1. Xen
            @Rat's

            安装了oneindex但是Aria 2和oneindex页面访问不了,是因为没有开放端口的原因吗?我查了一下好像只开了22和6800端口,可是vultr上面显示没开防火墙啊

            1. Rat's
              @Xen

              什么系统?可以直接用debian系统,这个默认是开放所有端口的。

  99. Relaxe

    能部署在now.sh上吗?

    1. Rat's
      @Relaxe

      一般是不能的。

  100. Adee

    好像aria2并不带自动上传到网盘的脚本?
    我在aira2目录没看到上传的脚本,配置文件也没有这个选项?

    1. Rat's
      @Adee

      这个没有调用Aria2的上传参数,直接用的PyOne的上传命令。

      1. Adee
        @Rat's

        aria2下载完好像不会自动上传吗?文件好像也没找到

        1. Rat's
          @Adee

          会自动上传,你在/root/PyOne/upload文件夹看看。

  101. chancat

    请问怎样卸载这个一键

    1. Rat's
      @chancat

      如果只是卸载程序的话,直接删除/root/PyOne文件夹,不过其他环境没卸载,有点复杂,重装系统是最好的卸载方法。

  102. ldy

    你好,下载的视频没有自动上传,都保存在服务器上了,是怎么回事啊

    1. Rat's
      @ldy

      不知道具体运行日志,所以该问题暂时不清楚。

      1. ldy
        @Rat's

        麻烦问一下 如何查看运行日志

        1. Rat's
          @ldy

          你先停掉Aria2,systemctl stop aria2,再使用aria2c --conf-path=/root/.aria2/aria2.conf运行aria2,再下载看看。看ssh客户端有不有日志。

  103. phil

    无法修改后台密码 aws debian9

    1. Rat's
      @phil

      修改后,清除缓存或过几分钟看看

  104. 靳旭东

    在后台刷新缓存的时候出现了问题。
    root@vultr:~# python /root/PyOne/function.py UpdateFile
    update A's / file
    update C's / file
    update B's / file
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
    error:CompactToken parsing failed with error code: 80049217! waiting 180s
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root:/C%23%E5%85%A5%E9%97%A8%E4%B9%8B%E5%BA%93%E5%AD%98%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B:/children?expand=thumbnails
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root:/IDM%206.28%2B%E7%BB%BF%E5%8C%96%E8%A1%A5%E4%B8%81:/children?expand=thumbnails
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root:/ss%E6%90%AD%E5%BB%BA:/children?expand=thumbnails
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root:/Windows%20Server%202008%20R2%20%E6%A0%87%E5%87%86%E7%89%88%2B%E4%BC%81%E4%B8%9A%E7%89%88%2B%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83%E7%89%88%2BWeb%E7%89%88%202018.04:/children?expand=thumbnails
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root:/win%E6%BF%80%E6%B4%BB:/children?expand=thumbnails
    all thread stop!
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
    error:CompactToken parsing failed with error code: 80049217! waiting 180s
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
    error:CompactToken parsing failed with error code: 80049217! waiting 180s
    getting files from url https://graph.microsoft.com/v1.0/me/drive/root/children?expand=thumbnails
    error:CompactToken parsing failed with error code: 80049217! waiting 180s

    1. Rat's
      @靳旭东

      API抽风吧。

      1. 靳旭东
        @Rat's

        我直接把服务器重置然后用一键脚本又装了一遍然后就好了

      2. 靳旭东
        @Rat's

        我直接重置了服务器又用一键脚本搞了一边就好了,找不到问题用这方法包治百病。

        1. Rat's
          @靳旭东

          是的,有时候重装是最好的解决办法。

  105. LOCMJJ

    请教大佬 caddy反代pyone后怎么添加一个 robots.txt文件?
    我不想让搜索引擎收录我的网盘。想用 robots.txt禁止。

    1. Rat's
      @LOCMJJ

      貌似不能用robots.txt禁止,等作者加这个功能,估计快有了,你可以先把不想被收录的文件放进一个带密码的文件夹。

  106. sdshdv

    装好之后显示这个:
    pyone.service - pyone
    Loaded: loaded (/etc/systemd/system/pyone.service; enabled; vendor preset: disabled)
    Active: failed (Result: start-limit) since Fri 2018-12-07 18:53:37 CST; 24s ago
    Process: 30815 ExecStart=/bin/bash -c cd /root/PyOne && -w4 -b 0.0.0.0:34567 run:app (code=exited, status=127)
    Main PID: 30815 (code=exited, status=127)

    Dec 07 18:53:37 host.localdomain systemd[1]: pyone.service: main process exited, code=exited, status=127/n/a
    Dec 07 18:53:37 host.localdomain systemd[1]: Unit pyone.service entered failed state.
    Dec 07 18:53:37 host.localdomain systemd[1]: pyone.service failed.
    Dec 07 18:53:37 host.localdomain systemd[1]: pyone.service holdoff time over, scheduling restart.
    Dec 07 18:53:37 host.localdomain systemd[1]: start request repeated too quickly for pyone.service
    Dec 07 18:53:37 host.localdomain systemd[1]: Failed to start pyone.
    Dec 07 18:53:37 host.localdomain systemd[1]: Unit pyone.service entered failed state.
    Dec 07 18:53:37 host.localdomain systemd[1]: pyone.service failed.
    求解是怎么回事,用的是搬瓦工的centos7,纯净系统

    1. sdshdv
      @sdshdv

      第二次安装显示这个;
      Dec 07 18:51:41 host.localdomain systemd[1]: pyone.service: main process exited, code=exited, status=127/n/a
      Dec 07 18:51:41 host.localdomain systemd[1]: Unit pyone.service entered failed state.
      Dec 07 18:51:41 host.localdomain systemd[1]: pyone.service failed.
      Dec 07 18:51:41 host.localdomain systemd[1]: pyone.service holdoff time over, scheduling restart.
      Dec 07 18:51:41 host.localdomain systemd[1]: start request repeated too quickly for pyone.service
      Dec 07 18:51:41 host.localdomain systemd[1]: Failed to start pyone.
      Dec 07 18:51:41 host.localdomain systemd[1]: Unit pyone.service entered failed state.
      Dec 07 18:51:41 host.localdomain systemd[1]: pyone.service failed.
      Dec 07 18:51:41 host.localdomain systemd[1]: [/etc/systemd/system/pyone.service:9] Executable path is not absolute, ignoring: cd /root/PyOne

      1. Rat's
        @sdshdv

        我用瓦工KVM Centos 7 bbr系统测试的时候好像没问题,你这问题貌似出现在Pyone的systemctl配置文件ExecStart参数命令执行绝对路径上面,也许不是,我得上你服务器看看才行,不过还是建议你直接换Debian 9试试。

  107. 小财神

    Complete!
    --2018-12-06 23:08:16-- http://download.redis.io/releases/redis-5.0.2.tar.gz
    Resolving download.redis.io (download.redis.io)... 109.74.203.151
    Connecting to download.redis.io (download.redis.io)|109.74.203.151|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1952989 (1.9M) [application/x-gzip]
    Saving to: ‘redis-5.0.2.tar.gz’

    21% [==============================> ] 416,232 --.-K/s eta 15m 35s

    就没反应了
    1. 小财神
      @小财神

      换Debian 9安装成功

      1. Rat's
        @小财神

        卡住大概网络问题,一般没有什么问题是换系统解决不了的。

  108. Jacob

    怎么样才能做到链接标明什么哪个文件夹哪个文件呢?现在都是乱码

    1. Rat's
      @Jacob

      程序问题可以问下作者 。

      1. Jacob
        @Rat's

        不是,我指的应该是伪静态…用作者那个脚本是伪静态

        1. Rat's
          @Jacob

          作者那个应该是Aria2脚本吧,我到时候看看。

  109. 别跟我翻脸

    签发的证书是三个月到期,到期后能自动续签吗?

    1. Rat's
      @别跟我翻脸

      按理说是自动续期的。

  110. Jacob

    6800端口打不开怎么办?

    1. Rat's
      @Jacob

      哪里打不开?直接在浏览器是打不开的,需要配合面板。

  111. Adee

    caddy的目录好像不对 想改端口没找到

    1. Rat's
      @Adee

      看文章说明,使用域名才会安装Cadddy。

  112. Adee

    怎么改端口呢?

    1. Rat's
      @Adee

      改PyOne的运行端口吗?你试着修改这个文件/etc/systemd/system/pyone.service,然后重启PyOne。

  113. 马健平

    这个一键安装的aria2怎么访问

    1. Rat's
      @马健平

      直接在后台设置密匙就可以了,单独使用的话,地址:ip:6800,密匙用你设置的。

      1. achillers
        @Rat's

        配合大佬的AriaNg 面板可以使用了

      2. achillers
        @Rat's

        安装的aria2一直访问不了,我是通过域名安装的。是域名加6800吗?

        1. Rat's
          @achillers

          这个可以用面板后台的Aria2,也可以直接用Aria2 WEB链接。

          1. achillers
            @Rat's

            直接用Aria2 WEB链接,具体是怎么操作,大佬能提点一下吗?

            1. Rat's
              @achillers

              比如直接用我这个面板链接https://www.moerats.com/Aria2,或者自己搭建其它类似的Aria2面板都行。

  114. Ben

    大佬,有没有可以同步各个网盘的工具啊?

    1. Rat's
      @Ben

      百度一下AirExplorer。

      1. Ben
        @Rat's

        谢谢,等会看看。但是有没有可以用在Linux的呢?

        1. Rat's
          @Ben

          暂没发现能同时同步这么多网盘的工具

  115. 一个人

    大佬 能帮忙看下更新问题吗? 我试着更新下脚本 提示如下错误 谢谢

    [root@PyOne ~]# git pull
    fatal: Not a git repository (or any of the parent directories): .git
    [root@PyOne ~]# sh update.sh
    sh: update.sh: No such file or directory
    [root@PyOne ~]# .git pull
    -bash: .git: command not found
    [root@PyOne ~]# git init pull
    Initialized empty Git repository in /root/pull/.git/
    [root@PyOne ~]# sh update.sh
    sh: update.sh: No such file or directory
    [root@PyOne ~]# git init
    Initialized empty Git repository in /root/.git/
    [root@PyOne ~]# git pull
    fatal: No remote repository specified. Please, specify either a URL or a
    remote name from which new revisions should be fetched.
    [root@PyOne ~]# systemctl restart pyone
    [root@PyOne ~]# git pull
    fatal: No remote repository specified. Please, specify either a URL or a
    remote name from which new revisions should be fetched.
    [root@PyOne ~]#

    1. Rat's
      @一个人

      我昨天这样更新没啥问题,不知道你有没有删掉一些文件,直接重新手动安装PyOne,命令一起复制运行:
      rm -rf /root/PyOne
      git clone https://github.com/abbeyokgo/PyOne.git
      cd /root/PyOne
      pip install -r requirements.txt
      cp config.py.sample config.py
      systemctl restart pyone

  116. 小弟

    大佬 我装了个debian8.9
    PyOne一键脚本 for Debian 8+ 、CentOS 7
    1、使用IP访问
    2、使用域名访问(请提前解析好域名并生效)———————————————————————————————————————
    请输入数字 [1-2]:1
    请输入你的Aria2密钥:fdffddfgf
    Ign http://mirrors.cloud.aliyuncs.com jessie InReleaseIgn http://mirrors.cloud.aliyuncs.com jessie/updates InRelease
    Hit http://mirrors.cloud.aliyuncs.com jessie-updates InRelease
    Hit http://mirrors.cloud.aliyuncs.com jessie Release.gpg
    Ign http://mirrors.cloud.aliyuncs.com jessie/updates Release.gpg
    Ign http://mirrors.aliyun.com jessie InRelease
    Ign http://mirrors.aliyun.com jessie/updates InRelease
    Hit http://mirrors.aliyun.com jessie-updates InRelease
    Get:1 http://mirrors.aliyun.com jessie Release.gpg [2,420 B]
    Ign http://mirrors.aliyun.com jessie/updates Release.gpg
    Hit http://packages.dotdeb.org jessie InRelease
    Get:2 http://packages.dotdeb.org jessie/all Sources [50.3 kB]
    Get:3 http://packages.dotdeb.org jessie/all amd64 Packages [265 kB]
    Ign http://packages.dotdeb.org jessie/all Translation-en_US
    Ign http://packages.dotdeb.org jessie/all Translation-en
    100% [Waiting for headers] [Waiting for headers]

    一直停在这边咋办呢 我是使用root用户操作的

    1. Rat's
      @小弟

      网络问题,等待会,或者Ctrl+c断开,然后重新运行。要是一直这样的话,我再告诉你解决方法。

      1. 小弟
        @Rat's

        等了 我等了一个多小时 最后他还说依赖安装失败

  117. Anson

    对了,用了两三天,感觉OD的上传比GD也慢太多了吧,OD上传比bt本身下得还慢,目测50mbps都不到

    1. Rat's
      @Anson

      可能是上传方式不一样吧,我用oneindex自带的上传时候,感觉上传很快,不过就是容易出问题。你可以试下这个上传https://www.moerats.com/archives/697/,很稳,然后修改下线程数。

  118. HA

    没有办法能让aira2多bt上传一会咩~我想让他bt下载百分百的时候就开始上传网盘,同时不影响bt自己的上传,aria2的on download complete好像只能检测到bt完全下载完毕,哎,想多做会好人

    1. Rat's
      @HA

      这个没试过,你可以去官方网站上研究下配置文件参数,说不定有惊喜。

  119. kbrx93

    问下博主,这个图片灯箱效果是 typecho 插件吗

    1. Rat's
      @kbrx93

      基本上都是主题自带的,我不怎么喜欢用插件。

  120. 999

    你好,为什么装完后 要加:34567 才能访问呢?

    1. Rat's
      @999

      因为程序在34567端口上运行。

  121. Neworld

    博主后台无法修改PyOne的后台管理密码,保存后一直是默认的

    1. Rat's
      @Neworld

      这时候你需要一个重启操作,比如systemctl restart pyone或者reboot。

      1. Neworld
        @Rat's

        嗯嗯搞定了

  122. lexo

    博主,瓦工centos7安装完后发现redis没安装成功

    1. Rat's
      @lexo

      这个貌似对瓦工的C7有点小问题,已修复,你再试试。

      1. 芥末
        @Rat's

        我也是瓦工的centos7,redis还是安装不上

        1. Rat's
          @芥末

          为了瓦工C7,我专门把redis换成了编译安装,还测试通过了的,你是BBR系统还是?安装不上有什么提示没

          1. 芥末
            @Rat's

            我是ovz的主机 难道跟这个有关系?

            1. Rat's
              @芥末

              这个不是很清楚,没日志信息,加上我没瓦工 OVZ,所以不好测试,你换Debian 9系统看看。

              1. 芥末
                @Rat's

                Emmmm,面板里没有Debian 9,是只KVM版本的有吗?我今晚再在C7跑一遍 看看具体提示。

                1. Rat's
                  @芥末

                  Debian 8也行,OVZ现在没啥玩头啊。

                  1. 芥末
                    @Rat's

                    买主机的时候不懂,随便选了一个。年付,现在后悔死。将就用吧

                    1. Rat's
                      @芥末

                      用完了,就换KVM吧,博客置顶都是KVM。

                      1. locyoo
                        @Rat's

                        我用的就是搬瓦工的KVM,centos7.5,没有问题

                        1. Rat's
                          @locyoo

                          是没问题,我专门争对瓦工C7调整了下。

  123. 灯火阑珊

    发现PyOne程序一个bug。我通过离线下载功能保存视频文件时,若默认名称过长,则无法读取该视频,但重新修改一个名称后,就恢复正常了。
    https://i.loli.net/2018/11/30/5c014ee32c92f.png
    https://i.loli.net/2018/11/30/5c014efbc8e16.png

    1. 灯火阑珊
      @灯火阑珊

      但又好像不是文件名过长的问题,通过离线下载保存的都不能读取视频(能看到新增的这个文件),更新缓存后恢复正常。

      1. Rat's
        @灯火阑珊

        这程序文件变动后,需要几分钟自行更新缓存,或者手动更新,后者是立即生效的。

  124. Xb

    您好,杂货铺遇到了支付问题

    1. Rat's
      @Xb

      等萌咖大佬修复吧。

      1. xb
        @Rat's
        该评论仅登录用户及评论双方可见
  125. Jacob

    我是魔鬼吧……第一次弄好了没问题,装Bbr 55R出问题重装后,现在装密钥填了重启aria2还是没有保存上……

    1. Rat's
      @Jacob

      55R可能会涉及到防火墙啥的,就会影响程序打不开。

    2. Jacob
      @Jacob

      可以了可以了,所有命令都重启一遍……

      1. Jacob
        @Jacob

        不过离线下载添加了没反应还是

        1. Rat's
          @Jacob

          注意缓存问题。

          1. Jacob
            @Rat's

            有点怀疑人生,刚刚可以的把任务删掉了,现在测试添加任务又是没反应,博主能帮我看看吗?折腾了一下午弄好这个那个出问题,弄好这个又到那里出问题……还有手动上传也没反应

            1. Rat's
              @Jacob

              我使用一切正常,你可以问下作者,只能说这东西不适合折腾。

          2. Jacob
            @Rat's

            嗯嗯,原来要等久一点,没问题了,可以离线了

  126. 黑人问号

    geting file from dir /root/Download
    get 1 files from dir /root/Download
    check filename
    check repeat file
    Traceback (most recent call last):
    File "/root/PyOne/function.py", line 1517, in <module>
    eval(func+str(tuple(args)))
    File "<string>", line 1, in <module>
    File "/root/PyOne/function.py", line 884, in UploadDir
    parent_id=parent['id']
    TypeError: 'NoneType' object has no attribute '__getitem__'

    上传出现问题

    1. Rat's
      @黑人问号

      这个程序问题吧,多传几次看看,在ssh客户端用命令。

      1. 黑人问号
        @Rat's

        ssh里面的pyone命令不知道怎么敲。

        1. Rat's
          @黑人问号

          这个问题好像是数据库出现了问题,你百度下清空Mongodb数据库的方法,或者直接用这个上传教程https://www.moerats.com/archives/697/。

  127. 黑人问号

    请问能设置脚本检查已经安装Caddy则跳过安装吗?

    1. Rat's
      @黑人问号

      这个为新系统准备的脚本,你可以先自己编辑脚本,删掉caddy安装那一排代码,然后再运行。

  128. Jacob

    我发现基本设置那里密钥那里保存了没用

    1. Rat's
      @Jacob

      保存后需要重启Aria2。

      1. Jacob
        @Rat's

        果然,感谢,重启了文件管理那里的离线正常了

  129. Jacob

    博主你好,安装好后打开域名是Aria2NG的页面,但是显示不完整,连接成功但是用不了,右上角有英文和左边的添加下载那些字体没有。
    然后就是文件管理那里的离线下载也是没反应,也不提示添加任务成功,再来就是后面打开域名是跳到网盘界面,进不去Aria2NG界面了,加上6080也进不去,所以现在用别人的面板下载……

    1. Rat's
      @Jacob

      这个脚本没安装Aria2NG啊。你运行脚本的系统是刚安装好的新系统吗?

      1. Jacob
        @Rat's

        是的,刚装好

        1. Rat's
          @Jacob

          你清空浏览器缓存看看,这脚本没装过Aria2NG。

  130. sooele

    怎么好的东西。必须支持。

  131. Mr.Fu

    One的目录刷新不出来。
    全量更新了几次都不行。。

    1. Rat's
      @Mr.Fu

      用下命令刷新试试,python /root/PyOne/function.py UpdateFile。

      1. 灯火阑珊
        @Rat's

        我也是遇到这个问题,下命令无效。可能是一键脚本哪里有点问题吧。还有就是这篇文章设置为了隐藏,博主是在修复一键脚本吗?

        1. Rat's
          @灯火阑珊

          是的,隐藏了,我先找下原因,看是不是出在了Mongodb。

      2. Mr.Fu
        @Rat's

        我就是用命令的。
        不行。不知道是什么原因了。。

        1. Rat's
          @Mr.Fu

          等我检查下原因。

  132. commander

    请问一下,这个脚本安装好后,Aria2 web离线的文件会被存放到服务器的那个位置,然后这个文件会被上传到OneDrive的那个位置。通过Aria2离线的任务成功后,上传到OneDrive的速度是不是和服务器的网速有关

    1. Rat's
      @commander

      放到服务器/root/PyOne/upload目录,然后你在哪个目录下点击离线下载按钮,最终就会上传到哪个目录下,网速和硬盘读取有关。

      1. 黑人问号
        @Rat's

        用了你的脚本装了ARIA2,下载目录是/root/Download/, 有点奇怪,我并没做过更改。

        1. Rat's
          @黑人问号

          对,我好像是设置的/root/Download/,晚上我改下

      2. commander
        @Rat's

        利用aria2下载的文件就不会自动上传到onedrive对吗,只有通过文件管理器离线的才会上传到对应文件夹,是这个意思嘛?
        本人发现从文件管理器添加离线后,当前页面没有任何反应,也没有提示任务是否添加成功。

        1. Anson
        2. Rat's
          @commander

          我检查下问题。

  133. K

    棒~