GithubHelp home page GithubHelp logo

zmirror-onekey's People

Contributors

aploium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zmirror-onekey's Issues

youtube提示 验证码无效或已超时,请重试。

配置完毕后其他网站没有问题,但是youtube报错

验证码无效或已超时,请重试。

很抱歉打扰您。我们收到了大量来自您网络的请求。
要继续您的 YouTube 体验,请填写下面的表单。

与网站所有者有关的错误:
Invalid domain for site key

这个是因为我服务器的原因吗

使用一次后就被谷歌ban了ip

配置成功后反代谷歌就搜索了一次,到了下午接着用的时候就要验证了,并且人机验证那里点不了,显示“与网站所有者有关的错误:Invalid domain for site key”,望早日修复。

executing python3 -m pip install -U distro error

while executing python3 -m pip install -U distro, I got messages:
Could not import setuptools which is required to install from a source distribution.
Please install setuptools.

so I executed python3 -m pip install -U setuptools, and it worked well.
Is that a problem?

Environment:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

SSL脚本出錯, 原代碼中certbot/certbot-auto已經消失。。。

安裝到了證書步驟后開始出現/bin/sh: 1: /etc/certbot/certbot-auto: not found的錯誤
檢查過A記錄正常。
單獨運行/etc/certbot/certbot-auto也無法運行,看了一下https://github.com/certbot/certbot已經沒有certbot-auto這個文件
sudo letsencrypt certonly --standalone -d "你的域名2" 這個方法要在開啓該域名的網站后才能驗證...
所以直接運行會報錯:

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: xxx.xx
    Type: connection
    Detail: Fetching
    hxtp://xxx.xx/.well-known/acme-challenge/xxxxxxx0x0x0x0x00xx0x0x0x00asx0as0x:
    Error getting validation data

请问如何添加cnzz统计代码

if content_mime == 'text/html':
# Your statistic code
my_statistic_code = r""""""
# Add to just before the html head
raw_text = raw_text.replace('', my_statistic_code + '', 1)
请问加粗一行使用什么格式才能添加cnzz的统计代码?

<script src="https://s11.cnzz.com/z_stat.php?id=1261172510&web_id=1261172510" language="JavaScript"></script>这样类似的格式添加后google无法访问。

NameError: name 'requests' is not defined

ubuntu 16.04 x64
[13:25:49] [INFO] executing: python3 -m pip install -U distro
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/pip/main.py", line 19, in
sys.exit(pip.main())
File "/usr/lib/python3/dist-packages/pip/init.py", line 215, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.5/locale.py", line 594, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
[13:25:50] [ERROR] Could not import python package distro, abort installation
Traceback (most recent call last):
File "deploy.py", line 302, in
import distro
ImportError: No module named 'distro'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "deploy.py", line 154, in onekey_report
r = requests.post(REPORT_URLS[report_type], data=data)
NameError: name 'requests' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "deploy.py", line 305, in
onekey_report(report_type=REPORT_ERROR, traceback_str=traceback.format_exc())
File "deploy.py", line 159, in onekey_report
r = requests.post(
NameError: name 'requests' is not defined

[ERROR] command:service apache2 stop error, installation should be abort.

[10:16:26] [INFO] Fetching HTTPS certifications
[10:16:26] [INFO] executing: service apache2 stop

  • Stopping Apache httpd web server apache2
  • There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.
    Traceback (most recent call last):
    File "deploy.py", line 229, in cmd
    **kwargs)
    File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command 'service apache2 stop' returned non-zero exit status 1

[10:16:26] [ERROR] command:
service apache2 stop
error, installation should be abort.
Do you want to continue installation anyway?(y/N)

报告,zimirror-onekey安装失败!

我已经试过很多次了,都不能安装。另外我有个问题,以前我在一台VPS上成功安装过,现在又在另一台VPS上安装,而且设置的域名和邮箱也和上一个VPS的一样,这样会不会有问题?

[14:09:44] [WARNING] cert file for google.yandere.cf does not exist!
[14:09:44] [WARNING] unable to obtaining cert for google.yandere.cf
[14:09:44] [ERROR]
I'm really sorry that we are not able to obtain an cert now,
This problem is NOT caused by zmirror-onekey itself, but caused by your DNS setting or the let's encrypt server.
If you had already set your A record correctly, please retry and wait, because sometimes the let's encrypt server may takes minutes or even hours to recognize your DNS settings.
If you doesn't sure whether your DNS A record are correct, please check it using https://www.whatsmydns.net/
Meanwhile, you can obtain cert manually using: cd /etc/certbot && ./certbot-auto certonly -n --agree-tos -t -m "[email protected]" --standalone -d "google.yandere.cf"
[14:09:44] [INFO] For more information, please see http://tinyurl.com/zmcert
max retries exceed, do you want to continue retry?(Y/n)

Ubuntu 14.04-x86 安装过程中,在let's encrypt成功获取证书后卡住

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at
    /etc/letsencrypt/live/google.zywz.ml/fullchain.pem. Your cert will
    expire on 2016-11-25. To obtain a new or tweaked version of this
    certificate in the future, simply run certbot-auto again. To
    non-interactively renew all of your certificates, run
    "certbot-auto renew"

  • If you lose your account credentials, you can recover through
    e-mails sent to [email protected].

  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.

  • If you like Certbot, please consider supporting our work by:

    Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le

安装到这里就不动了,系统是ubuntu-14.04-x86。

YouTube播放不了视频,浏览器报错net::ERR_TOO_MANY_REDIRECTS

能正常打开网页但是播放不了视频,浏览器控制台报错net::ERR_TOO_MANY_REDIRECTS(意思应该是太多重定向),看一下程序,位置是/var/www/youtubePC/zmirror/zmirror.py 从1956行到2477行写了一级、二级重定向,还有多种自定义重定向,但是无奈我看不懂,如果有懂的大佬麻烦看一下,给我分享一下解决方法,非常感谢!!!

suggestion of adding a conf to disable ip direct access

Here is a apache2 conf to disable ip direct access.

no-ip-access.conf http://paste.ubuntu.com/23357034/

<VirtualHost *:443>
servername <IP_address>
documentroot /var/www/nosite/
</VirtualHost>
<VirtualHost *:80>
servername <IP_address>
documentroot /var/www/nosite/
</VirtualHost>

mkdir -p /var/www/nosite
touch /var/www/nosite/index.html
echo "IP direct access is forbidden, Please use domain to access!" > /var/www/nosite/index.html

ip匹配好像有问题

domain's ip is: xxx(是我的vps的ip没错)
this machine's ip is: 127.0.0.1

这不是本地回环地址吗。。。我怎么匹配呢

cannot get the cert

Hi there, thanks for your wonderful plugin. I met the error when I tried to using one key program. The error was it cannot get the cert. I was sure that I have set the DNS (aliyun) correctly. And when I tried to get the cert manually by /etc/certbot/certbot-auto certonly XXXXXXX

I get
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in
main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
download=download,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1

这种情况是咋回事

  1. 报错[ERROR] This program can ONLY be used in debian-like Linux (debian, ubuntu and some others)
    之前没注意用的是debian7,更换8系统后不会报错。

  2. 系统 debian8 到制作 SSl 证书时循环报错

You are using pip version 8.0.3, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[11:43:21] [WARNING] cert file for google.bpplpp.tk does not exist!
[11:43:21] [WARNING] unable to obtaining cert for google.bpplpp.tk
[11:43:21] [INFO] wait 10 seconds and retry. (3/5)
[11:43:22] [INFO] 9 ...

看来是 Python 出问题了,这里问题先留着,换另外的方法。

3.报错

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-6Wq_tx/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-UAXV5B-record/install-record.txt --single-version-externally-managed --compile failed with error code -9 in /tmp/pip-build-6Wq_tx/cryptography
Storing debug log for failure in /root/.pip/pip.log

我服了,好难安装,对系统要求是比较高的, debian 8 ubuntu 16 ,一键,手动,shell一键,好艰辛的安装。

如何自定义首页

有提供修改搜索结果页面的接口吗?比如修改搜索栏logo、背景图。

It fails to work for Youtube

Hi,

It seems it does not work for Youtube any longer. Even the demo site ytb-pc.zmirrordemo.com does not work. Could you help to update on this issue?

I appreciate your Zmirror very much, and I look forward to seeing your updates!

到最后环节一直提示缺少文件错误

creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-5/README.Bugs for instructions.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

----------------------------------------

Command "/root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-PsNnf0/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('
', '
'), file, 'exec'))" install --record /tmp/pip-evrzHW-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-PsNnf0/cryptography
You are using pip version 8.0.3, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Ubuntu 16.04,然后升级pip,但提示已经是9.0.1了

搬瓦工运行两天挂了

ubuntu14.04 64位
ram:256 全占满
swap:128 全占满
硬盘空间12g也全占满了
然后就挂了。。
不知为何。。

一键包错误。

Restarting Apache httpd web server apache2 AH00557: apache2: apr_sockaddr_info_get() failed for localhost.localdomain AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message 安装一键包的时候出现的提示,应该怎么解决?

请问热心朋友编写新手向教程

找youtube镜像教程找到这里,wiki已有的教程对于编程白来说,看不懂。

曾用过youtube-php-mirroring,部署在Heroku上。但是现在Heroku已屏蔽此镜像,且原作者不再更新。

请求:作者或热心人士是否能编写一个zmirror的新手教程

目的:全免费搭建自己的镜像站,供授权的人访问
(VPN收费且慢,gae目前ios很难独立实现,目前我已搜到的资料来看,搭建镜像站是最好的解决方案)

作者已推荐了免费的域名商和CDN,请问其他优秀免费前置列如VPS商是否有推荐

(仅希望得到解决方法,没有任何冒犯的意思)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.