说明: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 7
、Debian 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
启动命令不一样以外,其它都一样,包括上传等命令。
版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!
本文链接:https://www.moerats.com/archives/806/
如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。
步骤1:点击绑定账号,并跳转到绑定页面
步骤2:选择需要绑定的账号,进入下一步
步骤3:接收认证许可,获取一个code,将这个code填写到code栏后,点击结束绑定
这里点开是提示
抱歉,登录时遇到问题。
AADSTS500113: No reply address is registered for the application.
是不是凉了啊
可能凉了,好久没玩过这个了
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
caddy v1好像被官方弃用了,暂时会安装运行失败
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'.
我都不知道能不能运行了,你可以把服务器发我,我给你看看,邮箱moerats@live.com
不搞了,自己装也是不行,aria2启动不了,感谢回复
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 ~]#
pyone上传文件功能时常不上传,需要重启才能继续上传,上传速度也很慢,过去几个学时间上传正常,近来出现上传停顿现象,请问这是什么原因导致的?应该怎么解决上传问题?谢谢!
看是不是api抽风啥的
麻烦提醒下具体是哪个api抽风
不清楚,这里面模块老在改动,作者也不更新了,很容易安装出问题,你先在PyOne源码目录手动运行/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,贴下日志看看
微软的
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
直接使用命令/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree,看有不有报错,或者使用journalctl -u caddy看下日志
使用pacificrack vps安装,发现Debian 9域名验证通过,Ubuntu 16.04域名验证通过,aria2不行,centos 7用域名登入不了,使用systemctl status aria2 mongod redis-server pyone,Ip登入没有问题
就caddy问题么?你使用命令/usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agree,看有不有报错,或者使用journalctl -u caddy看下日志
wget -N --no-check-certificate https://www.moerats.com/usr/shell/PyOne/PyOne.sh
bash PyOne.sh这个命令显示无法解析了
我这好像没问题,看看服务器dns啥的
⚠️ 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)...
一直这样不动了
你是国内服务器吧?网络不行
站长,这个脚本下载MongoDB速度太慢了,怎么解决
额,直接用的官方源安装的,国内或者网络环境不好的,可能会很慢。
为什么我选择的是域名绑定,然后域名不能访问,要加34567端口才可以,用IP+34567也可以。
估计caddy出了问题,看下日志journalctl -u caddy
[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没有安装成功吧
是不是跳脚本了?文中的脚本caddy是有安装的
PyOne安装完成!
暂停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请通过访问:http://ip:34567 继续后面的安装
PyOne后台密码:111111
Aria2密匙:111111
常用命令:
———————————————————————————————————————
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
重新运行脚本吧,之前程序相关软件包更新到新版后出了问题,改了下,可以安装了
给作者提个建议,作者经常改动脚本,新改的又出问题,往能保留历史安装版本,至少能保证大家能正常安装使用pyone
现在可以安装了,固定了程序几个软件包版本
这个与脚本无关,有些软件包更新后,会出现兼容性问题,有的改动太大,直接用不了,导致脚本安装就失败了,最好的办法就是把能用的写进docker
mongod.service - MongoDB Database Server
Docs: https://docs.mongodb.org/manualLoaded: 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
Main PID: 30119 (code=exited, status=14)
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 ~]#
有库更新暂时安装不了了,我到时候再想想办法吧
能否搞个更新前的下载包给我们装,前段时间的版本可以用,现在你们更新了不能用,怎么能让我们能安装前面版本的,谢谢
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 ~]#
博主 好像你的脚本强制按照py2.7 然后gunicorn代码要求 py3 ,我单独安装py3并设置全局后 还是不行,他启动的时候还是自动关联py2.7 无解啊
我看了下,好像是Setuptools不支持py2了,我找时间想想解决办法吧
cd /root/PyOne && /bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,运行日志是
worker.init_process()Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
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_appFile "/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 CacheFile "/usr/lib64/python2.7/site-packages/flask_caching/__init__.py", line 412
nonlocal source_check ^SyntaxError: invalid syntax
没列表显示么?看是不是api啥的问题
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.
cd /root/PyOne && /bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,看下运行日志
启动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.
重装系统重新安装下,我把脚本改了,初步解决了安装问题,重新支持了centos 7,测试了下没啥问题,有问题可以反馈
大佬,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.
systemctl cat pyone你运行这个命令,然后贴出来看看,感觉有东西没打印进去。
[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
估计命令没写进去,你先看下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
输入bash PyOne.sh命令时出现下列错误,最后这个http://ip:34567地址也打不开
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'"'"';ERROR: Command errored out with exit status 1:
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
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 ----------------------------------------l-5ju9Cs/shelljob/pip-egg-info
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
什么系统
这个问题其实不是在用本文这个一键脚本的时候出现的,是在用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了。
我所有系统都安装不了shelljob,pip install shelljob==0.5.7 这个能解决
我花时间试了下,有几个版本需要降级才能安装运行了。
非常感谢,救了我一命
Centos7用不了?
一模一样的错误,Centos7
是Debian GNU/Linux 9 (stretch)
好的,有时间我再重新测试下安装
centos7安装显示不支持
目前仅支持Debian 9、10,Ubuntu 18.04、18.10、19.04系统,安装退出
是的,有依赖变动,作者也不修复了,我随便改了下,勉强可以安装几个系统了,就c7整不来了,直接限制了。
打开pyone后台管理的离线下载报错 Aria2未验证!请检查Aria2信息!请问如解决?
你需要在后台管理里的系统设置最下面的那个aria2设置里面填写以下密钥
HTTPSConnectionPool(host='localhost', port=6800): Max retries exceeded with url: /jsonrpc (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')",),))
这个报错还没见过,密码填了么?
访问域名直接提示未备案?这个还没遇到过
系统是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.
centos 目前用不了。换debian或者ubuntu吧
啥时候更新CentOS 7的PyOne
求助:搭建完成后离线下载创建任务下载后上传显示为待机
出现问题:搭建完后出现502 Bad Request
环境 :谷歌云,使用Ubuntu 16.04系统,已开放所有端口,使用root权限,纯净安装。选择的是域名访问和4.0的pyone。安装完,那3个服务都是active的。
解决方法:删掉了,重建的Debian 10,运行正常。
好像ubuntu 18、19可以用
问下这是什么原因呢?我试了作者的宝塔一键脚本,也试了您的,但是都是拒绝访问,
无法访问此网站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.
好像是有个模块出了问题,我手动改了下,目前debian和ubuntu安装正常。
额,咋这么多出问题的,我先测试下。
● pyone.service - pyone
Tasks: 5 (limit: 4915)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)
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:appFeb 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的日志
好像是有个模块出了问题,我手动改了下,目前debian和ubuntu安装正常。
使用域名搭建后访问域名报502,查看日志所有的服务全部都是running,单独附上caddy日志给大佬看看,不知道啥问题
Tasks: 7 (limit: 4915)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)
CGroup: /system.slice/caddy.service
└─11104 /usr/local/bin/caddy --conf=/root/.caddy/caddy.conf -agreeFeb 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)
好像是有个模块出了问题,我手动改了下,目前debian和ubuntu安装正常。
换debian和ubuntu吧,centos还有点问题,我有空多看看
谷歌云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.
把服务器信息发到moerats@live.com,我到时候看看。
对,可能有点小瑕疵,你先看下gunicorn的绝对路径,command -v gunicorn这个命令就可以看到,然后改成Execstart= /usr/bin/gunicorn -w4 -b 0.0.0.0:34567 run:app,在前面加一个绝对路径,然后重启服务器就行了。
使用域名打不开的话,看是不是caddy签发证书失败等问题,caddy运行正常吗?
journalctl -u caddy这个可以看详细日志
这个是申请SSL失败了,你先把ssl下掉看看,修改/root/.caddy/caddy.conf,把tle那行代码删掉,重启就好了
额,你还是选择ip安装,然后自己绑定下域名看看
这里的没运行,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'.
给的信息看不出啥来,换个系统看看。
我的天,我装了redis,mongoDB和nginx,结果运行之后又装了一遍,然后全出错了,redis,mongodb启动失败,nginx工作不正常
还好我之前有快照,要不然真的麻烦,建议设置先检查环境再安装
对,只建议新装的系统运行。重复会出问题
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
像是配置文件有问题,看下配置文件,查看命令:systemctl cat pyone
caddy限制证书了,怎么办。。
https://i.loli.net/2020/01/01/O1AGsw7nZYC5zFN.png
换域名,或者等几天
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.
手动运行下,/usr/bin/aria2c --conf-path=/root/.aria2/aria2.conf,看报错日志
重新安装下好了
哦还有大佬,修改后台密码在哪,我看说明也没看到翻了个底朝天也没看到
应该是self_config.py文件里面,修改后记得重启
上传文件到onedrive出错
create upload session fail!Service unavailable
大佬,如果不用的话删除哪些文件?
卸载吗?
是的,还是上传文件onedrive出错能搞不说服务出错
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安装失败!
貌似服务器连不上你这地址
感觉是dns的原因
阿里云执行 wget -N --no-check-certificate https://www.moerats.com/usr/shell/PyOne/PyOne.sh
报错
博主真牛。
小白一次安装成功。下了两个片子,也自动上传onedrive,就是从onedrive拉到本地有点慢。
慢是正常的。
想用博主的ARIA作为管理页面,怎么配置呢。
pyone的下载时常好几天动也不动,不知道为什么。是博主说的上传功能有缺陷吗。博主可不可以说说怎么在PYONE基础上手动安装ARIA
脚本已经给你安装了,随便找个面板用就行了。
博主的blog里的面板可以使用吗。
如何配置才好。
用pyone上传大文件时有时候显示创建实例失败,有时候上传中间会失败,日志里显示Service unavailable
请教一下博主是因为什么啊,谢谢
好像这个问题之前见过,重新绑定下网盘看看
还是不行,不知道什么原因
请问是不是只要aria2下载到/root/PyOne/upload就会自动上传?
不是,得配置下aria2上传参数,或者用后台的离线下载功能
博主和PyOne的大佬合作了呀,66666。我用家中服务器安装然后用阿里云学生及反代域名,扫描快多了。
没,去年就认识,就瞎水了个脚本
caddy 一直不能启动 没办法了
感觉是被签发证书限制了。
大佬,有没有4.0.3左右版本的啊
很久没用了,4.0.3是什么时候的版本?
这个脚本不支持debian10了,用的谷歌云自带的debian10,安装的时候会显示Mongodb安装失败,换成centos7一下就装好了
随便改了下,应该支持Debian 10了,在vultr上跑了一次
博主帮忙看看这是什么情况
Docs: https://docs.mongodb.org/manual● 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
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.
怎么全部挂了,看是不是硬盘满了,或者其他原因
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
我的是这个情况,其他 Active
你是哪个显示这个
卡在下载Caddy这一步了,下不动。。。。几十K
国内服务器么?只能等了
所有的脚本用域名都打不开,ip就可以,这是什么问题呀
看是不是签发证书被限制了?这个脚本的话,你试试手动使用命令启动caddy,caddy --conf=/root/.caddy/caddy.conf -agree,就有日志了。
已按教程安装成功,有点不太明白的就是文章开头说: 本脚本使用的Aria2为某大佬编译的多线程版本,其特点可以将下载速度最大化优化.
然后结尾的说明又说:离线下载不调用配置文件,所以Aria2多线程可能会发挥不出来.
听懵了。
因为程序本身的Aria2是不调用配置文件的,貌似只调用了Aria2二进制文件,而配置文件是可以设置线程数达到效果的,系统会自动运行Aria2,期间是调用了配置文件,可以通过外部的Web使用
听大佬一解释,更懵了。
那按本教程安装完后,不更改任何配置,使用pyone的离线下载,到底有没有用多线程以及自动更新bt-tracker?
大佬,您能帮我看看,我自己改了下上传脚本,但是并没有上传。aria2日志里只显示执行脚本了。文件没有上传。
!/bin/bashGID="$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
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; fiOption=" Upload";
else
Option=" UploadDir";
fi
function LoadFile(){
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 fiIFS_BAK=$IFS
IFS=$'n'
if [[ ! -d "$LocalDIR" ]]; then return; fi
if [[ -e "$File" ]]; then
fi
IFS=$IFS_BAK
}
LoadFile;
大佬要不这个还是不显示了吧,太乱了,我能给你用邮件描述一下吗
有点花,你是想把那个上传命令替换成pyone自带的?
不好意思啊博主,我其实已经在里面把EXEC1指定python,EXEC2指定/root/PyOne/function.py,option指定Upload或者UploadDir,但是并不能上传,本地文件也在。很奇怪,我想在sh里调用似乎并没有实现,但是当我手动运行aria2下载完成执行的脚本,并按照aria2日志传递三个参数,是可以成功上传的,似乎是aria2执行脚本这一步有点问题。按照日志aria2确实执行了脚本但是没有下文了。请问我是否应该把aria2日志级别调整到debug呢,我现在是info级别
我好像很久前试过,发现上传脚本自动触发的时候调用不了python命令,所以没下文了。
这个算是aria2不完善的地方吗?我打算去github提问一下。
这个就不清楚了
要疯了 为什么用这个搭建好了之后也是 视频加载失败呢
有一种你这个号api被封了,用不了的感觉
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Ihh8SL/SQLAlchemy/
安装的过程中出现这个东西
安装失败,什么系统?还有你换系统安装下应该就可以好。
● mongod.service - High-performance, schema-free document-oriented database
Docs: https://docs.mongodb.org/manualLoaded: 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
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)
亲爱的博主,这个是怎么了 ?
一键脚本的Aria2怎么重启
看文章的相关命令。
= = 不好意思老哥,没注意
请问一下我用pyone4.0自带的离线下载,下载到一半,手动在后台网页删除任务,但是vps里面还是占用了空间,我手动删除了upload文件夹,然后新建一个,下载失败的文件还是会在里面生成。怎样手动删除掉aria2的任务?
ubuntu 19.04 也可以,只要把pip换成pip2就可以了
好的,稍微改了下,脚本已新增Ubuntu 16+的系统版本。
脚本的201行 pip install -r requirements.txt 应该改为pip2 install -r requirements.txt吧,不然是用pip3
这个倒不是很需要,脚本没安装pip3。
上面的报错是centos7的,换了d9没问题了
是的,没有啥问题是重装解决不了的。
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:CentOS 7的报错问题已修复,你再试试
博主,你把脚本使用systemctl simple了,我改端口去哪里?
修改/usr/lib/systemd/system/pyone.service,应该可以看到端口,然后修改重启
前面没安装反代,后面再安装可以?按照以前的操作?
只能手动反代。
全部安装完了之后,在文件管理页面创立文件夹失败,6800等端口已经开启,试着上传文件,能上传到服务器,但是转到OneDrive时upload fail!,大大求解
你先把/root/PyOne/upload权限设置777试试,还出现问题的话,我就搭建一个看看。
emmm还有那个登录密码忘记了,,,在哪改,,,,777权限应该对了。。。之前写入权限没有
在底下找到了,谢谢大佬
解决了吗?解决的话,我就改下脚本。
解决了。。。
大佬,在哪更改aria2的参数啊,感觉下载好慢
用airang试试看,配置文件调整了下,下载慢其实也与资源有关
● 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.
手动运行caddy --conf=/root/.caddy/caddy.conf -agree,然后贴一下错误
conf是这样的
header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme}http {
gzip
proxy / 127.0.0.1:34567 {
}
}
Activating privacy features... done.
2019/05/23 10:41:08 Listen: listen tcp :80: bind: address already in use
说你的80端口被占用,看是不是apache等默认软件,根据这篇文章检查下,https://www.moerats.com/archives/86/
是这样,服务器是朋友的,80端口和888端口是他的nginx网站,然后我域名没备案不能用80和443.
那你运行脚本的时候,使用ip访问就好了,别选择域名安装。
PyOne 离线下载后台看不到实时下载速度和下载进度,可以安装AriaNg之类的前端查看.
https://www.moerats.com/archives/255/
如果想直接在前端中实现下载后自动上传参考帖子.(缺点是更改上传目录麻烦)
https://www.moerats.com/archives/697/
课代表
脚本提示 域名未解析
(已解析域名,但是没有读取到本机ip 所以显示不匹配
你可以编辑脚本,把检测域名那个步骤删掉。
离线下载下载完会自动上传od?我看到aria2配置里写着root/download
用自带的离线下载会上传,用aria2面板的话,还需要额外配置
会自动更新吗?如果不会要怎么更新程序呢?
不会自动,很久前准备加一个更新选项,发现程序经常改版,不通用,就没加,还是建议手动更新吧
再后台哪里改密码啊,没看见- -
修改源码目录的self_config.py文件,找到关键字
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可以访问,这个要怎么解决
应该是ssl被限制了,导致启动失败,先编辑root/.caddy/caddy.conf,去掉开头https的s,也删掉tls一行代码,然后重启systemctl restart caddy,最后再用http打开域名试试
感谢回复,谷歌了半天没解决,后面就干脆删除脚本里的caddy,用nginx反代了
离线下载页白屏,咋办。用你的一键脚本,重装重启了都没有
是全新系统装的?
用caddy反代子目录会经常502,删掉那三段代码又会出些问题,简直进退两难
应该是caddy的问题
应该不会吧,我还没出现过。
不要说了,现在挂了
可以查看全部程序状态,然后状态非Active:inactive的可以用命令重启下
大佬,用4.0的话会没有文件,用3.0的话就没事,而且很多次都会域名已经解析了,在安装时候还是提示域名没有解析,因为安装别的例如OneIndex的话就不会提示域名没有解析。
可能是hosts的问题,你可以自己修改脚本,把左下角的use_domain(){domain},中的domain删掉,保存,再运行脚本
报错啊,咋办。
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'
这个还是换个系统试试吧
最近经常出现,在SSH客户端执行增量更新,出现错误,然后前端页面直接出现502 Bad Gateway,使用启动pyone的代码也不能运行网站
用文章给的相关命令重新启动,所有应用都重启下
Mongodb等依赖安装失败,请重新检查! 这个是什么原因
不清楚,没具体报错
你好,我想问下,网站建成之后,可以把DNS转到Cloudflare做加速吗?这样会隐藏真实ip,会对网站有影响吗?
你可以试试,除了速度,其它好像没啥影响
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启动错误
运行下这个命令caddy --conf=/root/.caddy/caddy.conf -agree,然后把错误发出来
这个问题我重装解决了 现在问题是 一切正常 绑定了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
会不会是api的问题
过了几个小时,现在可以更新数据了
我重新绑定很多次了。。。
club域名不能解析吗,昨天就已经解析到服务器的IP了,到现在还是现实未生效
再ssh客户端ping一下域名看看
解决了解析问题,运行结束后,网站502 Bad Gateway

debian8系统
502就是运行失败,看下状态systemctl status pyone
看过所有服务都是开启的,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/).
绑定之后还是之前出现的
这个是绑定之后出现的
systemctl status redis-server
systemctl status mongod
看下运行状态,如果都在运行,试下这个命令:
redis-cli
FLUSHALL
然后重启
systemctl restart pyone
请问下安装了这个之后就不能安装宝塔面板了吗?试了很多次安装了这个就不能安装宝塔面板了
域名安装可能会和宝塔现有环境冲突
我的磁链接下不动咋回事 一直没速度
用的自带的离线下载?试试Aria2 Web界面下载,看我文章相关说明
怎么修改端口
试试修改这个文件/etc/systemd/system/pyone.service,改下34567,然后重启
请问我的域名之前配置过HTTPS,然后这次安装后打不开了是什么情况
是新系统运行脚本么?然后打不开?
是啊,最新的centos7
看我文章,用下命令,查看几个状态看看,看有不有启动失败的
大佬,求一份aria2的一键脚本,仅aria2,不需要ariang。https://www.moerats.com/archives/251/ 这个帖子的脚本不适用,最好是一键脚本里经过优化的。感谢,就差aria2的优化版了。
可以看下这个https://www.moerats.com/archives/800/,然后顺便看下https://www.moerats.com/archives/462/
大佬,现在有一个小问题,下载文件并上传后在download目录里的aria2后缀文件和种子文件不会被删除。https://www.moerats.com/archives/251/ 这个脚本已经有了自动更新BT服务器的功能了。。
只记得关掉force-save=ture参数,就不会有aria2后缀的文件了,其它的暂时不清楚,如果是用的程序自带的离线,可以问下作者
只记得关掉force-save=ture参数,就不会有aria2后缀的文件了,其它的暂时不清楚,如果是用的程序自带的离线,可以问下作者
求助!安装后绑定网盘成功,但是不能显示网盘内的文件及文件夹,这个该如何处理
这个看是不是程序问题,刚作者大更了下,bug肯定是有不少的。
用的系统是刚重装好的,没其他环境?
You stated that superbly!
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.
你手动运行命令cd /root/PyOne && gunicorn -w4 -b 0.0.0.0:34567 run:app,然后看什么提升
:37:57 +0000] [7416] [ERROR] Exception in worker process:
worker.init_process()Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
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
安装成功改了后台管理密码以后就再也进不去后台啦
好了的,多次重启服务器后密码重置成原来的了
Mongodb等依赖安装失败,请重新检查!
脚本返回这个。。
最快的解决办法就是换系统吧,或者加我下面联系方式我帮你看看。
emmmm没看到联系方式 想向大佬你咨询一些主机的事情
ovz真的心太累了
这香港好使吗 养个鸡 挂个博客 再挂个oneindex
还行,我博客现在就挂在上面
轻量香港 安装pyone 报错 跟楼下的差不多 centos7.5好像
先用了净化的脚本
问题好像知道了,刚把脚本改了下,你再试试?
用的阿里云的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.
之前在阿里云轻量CentOS 7.3上测试没问题的,你重启下pyone试试,systemctl restart pyone
还是这个问题,防火墙端口也开了,显示网页无法正常运行,就是开启不了pyone
具体情况不是很清楚,或者你安装个Debian 9试试,脚本地址:https://www.moerats.com/archives/163/
请教下,oneindex或者pyone有没有批量下载的方法?有的网盘文件下面文件夹很多,文件也很多,一个个下载很麻烦,我也试过wget mirror,但是速度好像不给力。而且命令行不能关闭,请教下还有其他办法么?
谢谢。
试试rclone挂载?然后直接mv移动
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.
登陆网站显示 "502 Bad Gayteway"
看不懂
什么系统?看了你的日志,大概解决方法你试试,使用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
然后重启服务器吧。
Debian 8.9 安装各种报错,等了半小时才装好,还打不开。
换了CentOS 7.3,一键秒装,爽飞了~
PyOne的README.md图片显示默认适应宽度,还不会调,引用小图标被放大之后很丑。OneIndex没这毛病。
这个我还没注意到,可以给作者说下,要他弄下。
作者建的群里面全是打广告卖5T的,问问题也没人回,心累…… 还是用回OneIndex靠谱。要是OneIndex能绑定多个网盘就好了~
5T还不够用么。
容量是挺够用的,就是低价号容易翻车,要是有两个不同管理员账号下的5T空间互相备份那不就完美了。就算买上三个也不超过¥10,而且这样三个不相关的号一般也不会同时崩掉。不知道大佬对这个想法有没有兴趣,说不定哪天写出个OneRaid来了呢
一键脚本无法通过git pull来更新,必须要删掉一键脚本然后重装手动脚本才能更新,这样很麻烦,不知道是否可以改进
更新功能最开始是有的,然后作者更新命令经常会有变化,怕出问题就删掉了,所以建议参考我最下面留的另一篇文章手动更新。
请问博主,不想安装Aria2 这个咋办呢?
手动安装,教程:https://www.moerats.com/archives/734/
请问这个和oneindex哪体验好?主要用来离线下载
如果你不需要绑定多网盘的话,建议用oneindex和我博客上传脚本,https://www.moerats.com/archives/697/。
已经配置好了pyone请问Aria 2没速度会是什么原因?用迅雷直接下有速度,但是挂在Aria 2上几个小时了还是0%vps是vultr
我忘了说明了,你可以先不用程序自带的离线,默认不调用配置文件,可以用我上面给你的地址,单独使用Aria2面板下载,看速度会不会好些。
安装了oneindex但是Aria 2和oneindex页面访问不了,是因为没有开放端口的原因吗?我查了一下好像只开了22和6800端口,可是vultr上面显示没开防火墙啊
什么系统?可以直接用debian系统,这个默认是开放所有端口的。
能部署在now.sh上吗?
一般是不能的。
好像aria2并不带自动上传到网盘的脚本?
我在aira2目录没看到上传的脚本,配置文件也没有这个选项?
这个没有调用Aria2的上传参数,直接用的PyOne的上传命令。
aria2下载完好像不会自动上传吗?文件好像也没找到
会自动上传,你在/root/PyOne/upload文件夹看看。
请问怎样卸载这个一键
如果只是卸载程序的话,直接删除/root/PyOne文件夹,不过其他环境没卸载,有点复杂,重装系统是最好的卸载方法。
你好,下载的视频没有自动上传,都保存在服务器上了,是怎么回事啊
不知道具体运行日志,所以该问题暂时不清楚。
麻烦问一下 如何查看运行日志
你先停掉Aria2,systemctl stop aria2,再使用aria2c --conf-path=/root/.aria2/aria2.conf运行aria2,再下载看看。看ssh客户端有不有日志。
无法修改后台密码 aws debian9
修改后,清除缓存或过几分钟看看
在后台刷新缓存的时候出现了问题。
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
API抽风吧。
我直接把服务器重置然后用一键脚本又装了一遍然后就好了
我直接重置了服务器又用一键脚本搞了一边就好了,找不到问题用
这方法包治百病。
是的,有时候重装是最好的解决办法。
请教大佬 caddy反代pyone后怎么添加一个 robots.txt文件?
我不想让搜索引擎收录我的网盘。想用 robots.txt禁止。
貌似不能用robots.txt禁止,等作者加这个功能,估计快有了,你可以先把不想被收录的文件放进一个带密码的文件夹。
装好之后显示这个:
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,纯净系统
第二次安装显示这个;
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
我用瓦工KVM Centos 7 bbr系统测试的时候好像没问题,你这问题貌似出现在Pyone的systemctl配置文件ExecStart参数命令执行绝对路径上面,也许不是,我得上你服务器看看才行,不过还是建议你直接换Debian 9试试。
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
就没反应了换Debian 9安装成功
卡住大概网络问题,一般没有什么问题是换系统解决不了的。
怎么样才能做到链接标明什么哪个文件夹哪个文件呢?现在都是乱码
程序问题可以问下作者 。
不是,我指的应该是伪静态…用作者那个脚本是伪静态
作者那个应该是Aria2脚本吧,我到时候看看。
签发的证书是三个月到期,到期后能自动续签吗?
按理说是自动续期的。
6800端口打不开怎么办?
哪里打不开?直接在浏览器是打不开的,需要配合面板。
caddy的目录好像不对 想改端口没找到
看文章说明,使用域名才会安装Cadddy。
怎么改端口呢?
改PyOne的运行端口吗?你试着修改这个文件/etc/systemd/system/pyone.service,然后重启PyOne。
这个一键安装的aria2怎么访问
直接在后台设置密匙就可以了,单独使用的话,地址:ip:6800,密匙用你设置的。
配合大佬的AriaNg 面板可以使用了
安装的aria2一直访问不了,我是通过域名安装的。是域名加6800吗?
这个可以用面板后台的Aria2,也可以直接用Aria2 WEB链接。
直接用Aria2 WEB链接,具体是怎么操作,大佬能提点一下吗?
比如直接用我这个面板链接https://www.moerats.com/Aria2,或者自己搭建其它类似的Aria2面板都行。
大佬,有没有可以同步各个网盘的工具啊?
百度一下AirExplorer。
谢谢,等会看看。但是有没有可以用在Linux的呢?
暂没发现能同时同步这么多网盘的工具
大佬 能帮忙看下更新问题吗? 我试着更新下脚本 提示如下错误 谢谢
[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 ~]#
我昨天这样更新没啥问题,不知道你有没有删掉一些文件,直接重新手动安装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
大佬 我装了个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用户操作的
网络问题,等待会,或者Ctrl+c断开,然后重新运行。要是一直这样的话,我再告诉你解决方法。
等了 我等了一个多小时 最后他还说依赖安装失败
对了,用了两三天,感觉OD的上传比GD也慢太多了吧,OD上传比bt本身下得还慢,目测50mbps都不到
可能是上传方式不一样吧,我用oneindex自带的上传时候,感觉上传很快,不过就是容易出问题。你可以试下这个上传https://www.moerats.com/archives/697/,很稳,然后修改下线程数。
没有办法能让aira2多bt上传一会咩~我想让他bt下载百分百的时候就开始上传网盘,同时不影响bt自己的上传,aria2的on download complete好像只能检测到bt完全下载完毕,哎,想多做会好人
这个没试过,你可以去官方网站上研究下配置文件参数,说不定有惊喜。
问下博主,这个图片灯箱效果是 typecho 插件吗
基本上都是主题自带的,我不怎么喜欢用插件。
你好,为什么装完后 要加:34567 才能访问呢?
因为程序在34567端口上运行。
博主后台无法修改PyOne的后台管理密码,保存后一直是默认的
这时候你需要一个重启操作,比如systemctl restart pyone或者reboot。
嗯嗯搞定了
博主,瓦工centos7安装完后发现redis没安装成功
这个貌似对瓦工的C7有点小问题,已修复,你再试试。
我也是瓦工的centos7,redis还是安装不上
为了瓦工C7,我专门把redis换成了编译安装,还测试通过了的,你是BBR系统还是?安装不上有什么提示没
我是ovz的主机 难道跟这个有关系?
这个不是很清楚,没日志信息,加上我没瓦工 OVZ,所以不好测试,你换Debian 9系统看看。
Emmmm,面板里没有Debian 9,是只KVM版本的有吗?我今晚再在C7跑一遍 看看具体提示。
Debian 8也行,OVZ现在没啥玩头啊。
买主机的时候不懂,随便选了一个。年付,现在后悔死。将就用吧
用完了,就换KVM吧,博客置顶都是KVM。
我用的就是搬瓦工的KVM,centos7.5,没有问题
是没问题,我专门争对瓦工C7调整了下。
发现PyOne程序一个bug。我通过离线下载功能保存视频文件时,若默认名称过长,则无法读取该视频,但重新修改一个名称后,就恢复正常了。
https://i.loli.net/2018/11/30/5c014ee32c92f.png
https://i.loli.net/2018/11/30/5c014efbc8e16.png
但又好像不是文件名过长的问题,通过离线下载保存的都不能读取视频(能看到新增的这个文件),更新缓存后恢复正常。
这程序文件变动后,需要几分钟自行更新缓存,或者手动更新,后者是立即生效的。
您好,杂货铺遇到了支付问题
等萌咖大佬修复吧。
我是魔鬼吧……第一次弄好了没问题,装Bbr 55R出问题重装后,现在装密钥填了重启aria2还是没有保存上……
55R可能会涉及到防火墙啥的,就会影响程序打不开。
可以了可以了,所有命令都重启一遍……
不过离线下载添加了没反应还是
注意缓存问题。
有点怀疑人生,刚刚可以的把任务删掉了,现在测试添加任务又是没反应,博主能帮我看看吗?折腾了一下午弄好这个那个出问题,弄好这个又到那里出问题……还有手动上传也没反应
我使用一切正常,你可以问下作者,只能说这东西不适合折腾。
嗯嗯,原来要等久一点,没问题了,可以离线了
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__'
上传出现问题
这个程序问题吧,多传几次看看,在ssh客户端用命令。
ssh里面的pyone命令不知道怎么敲。
这个问题好像是数据库出现了问题,你百度下清空Mongodb数据库的方法,或者直接用这个上传教程https://www.moerats.com/archives/697/。
请问能设置脚本检查已经安装Caddy则跳过安装吗?
这个为新系统准备的脚本,你可以先自己编辑脚本,删掉caddy安装那一排代码,然后再运行。
我发现基本设置那里密钥那里保存了没用
保存后需要重启Aria2。
果然,感谢,重启了文件管理那里的离线正常了
博主你好,安装好后打开域名是Aria2NG的页面,但是显示不完整,连接成功但是用不了,右上角有英文和左边的添加下载那些字体没有。
然后就是文件管理那里的离线下载也是没反应,也不提示添加任务成功,再来就是后面打开域名是跳到网盘界面,进不去Aria2NG界面了,加上6080也进不去,所以现在用别人的面板下载……
这个脚本没安装Aria2NG啊。你运行脚本的系统是刚安装好的新系统吗?
是的,刚装好
你清空浏览器缓存看看,这脚本没装过Aria2NG。
怎么好的东西。必须支持。
One的目录刷新不出来。
全量更新了几次都不行。。
用下命令刷新试试,python /root/PyOne/function.py UpdateFile。
我也是遇到这个问题,下命令无效。
可能是一键脚本哪里有点问题吧。还有就是这篇文章设置为了隐藏,博主是在修复一键脚本吗?
是的,隐藏了,我先找下原因,看是不是出在了Mongodb。
我就是用命令的。
不知道是什么原因了。。
不行。
等我检查下原因。
请问一下,这个脚本安装好后,Aria2 web离线的文件会被存放到服务器的那个位置,然后这个文件会被上传到OneDrive的那个位置。通过Aria2离线的任务成功后,上传到OneDrive的速度是不是和服务器的网速有关
放到服务器/root/PyOne/upload目录,然后你在哪个目录下点击离线下载按钮,最终就会上传到哪个目录下,网速和硬盘读取有关。
用了你的脚本装了ARIA2,下载目录是/root/Download/, 有点奇怪,我并没做过更改。
对,我好像是设置的/root/Download/,晚上我改下
利用aria2下载的文件就不会自动上传到onedrive对吗,只有通过文件管理器离线的才会上传到对应文件夹,是这个意思嘛?
本人发现从文件管理器添加离线后,当前页面没有任何反应,也没有提示任务是否添加成功。
+1
我检查下问题。
棒~