Skip to content

Which community leaders are requested to provide centos7 local deployment documents? #4155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TelDragon opened this issue May 28, 2018 · 3 comments

Comments

@TelDragon
Copy link

TelDragon commented May 28, 2018

Details

Do not use docker
The document provided now is only an Debian environment, and my environment is centos7, which involves many complex dependencies.

#4122

@TelDragon TelDragon changed the title 请求哪位社区大佬提供centos7 本地部署文档? Which community leaders are requested to provide centos7 local deployment documents? May 28, 2018
@stsewd
Copy link
Member

stsewd commented May 28, 2018

I'm not sure what you mean by this, as the docs say https://docs.readthedocs.io/en/latest/custom_installs/index.html

Read the Docs developers do not support custom installs of our software. These documents are maintained by the community, and might not be up to date.

What I know, rtd is deployed in ubuntu server.

@TelDragon
Copy link
Author

This is the whole process of deploying my CentOS environment

yum -y groupinstall "Development Tools" 

yum --enablerepo=epel -y install python-virtualenv

yum install python-devel python-pip libxml2-devel libxslt-devel redis-server redis texlive* latex* 

systemctl start redis
systemctl status redis
systemctl enable redis

yum install java*
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.3.8.noarch.rpm
rpm -ivh elasticsearch-1.3.8.noarch.rpm

systemctl start elasticsearch
systemctl status elasticsearch
systemctl enable elasticsearch

virtualenv ~/py2/
cd ~/py2
source bin/activate

mkdir checkouts
cd checkouts
git clone https://github.com/rtfd/readthedocs.org.git

cd readthedocs.org
pip install -r requirements.txt

python manage.py migrate
python manage.py createsuperuser
python manage.py collectstatic
python manage.py loaddata test_data
python manage.py runserver

Import project report error log

[28/May/2018 02:25:31] "POST /api/v2/command/ HTTP/1.1" 201 3460
[28/May/2018 02:25:31] readthedocs.doc_builder.environments:465[5462]: WARNING (Build) [document:latest] Command pdflatex -interaction=nonstopmode /root/py2/checkouts/readthedocs.org/user_builds/document/checkouts/latest/docs/_build/latex/document.tex failed:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode

(/root/py2/checkouts/readthedocs.org/user_builds/document/checkouts/latest/docs
/_build/latex/document.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, uk
rainian, russian, bulgarian, loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2017/03/26 v1.6 Document class (Sphinx manual)
(/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
(/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
(/usr/share/texlive/texmf-dist/tex/latex/cmap/cmap.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def)<<t1.cmap>>)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texlive/texmf-dist/tex/generic/babel/english.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fncychap/fncychap.sty) (./sphinx.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty))))
(/usr/share/texlive/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def
(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.dfu)))
(/usr/share/texlive/texmf-dist/tex/latex/titlesec/titlesec.sty)

! LaTeX Error: File `tabulary.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.74 \newcolumntype
                   {\X}[2]{p{\dimexpr^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on document.log.

[28/May/2018 02:25:31] readthedocs.doc_builder.environments:116[5462]: INFO Running: 'python /root/py2/checkouts/readthedocs.org/user_builds/document/envs/latest/bin/sphinx-build -T -b epub -d _build/doctrees-epub -D language=en . _build/epub' [/root/py2/checkouts/readthedocs.org/user_builds/document/checkouts/latest/docs]
[28/May/2018 02:25:32] "POST /api/v2/command/ HTTP/1.1" 201 1509
[28/May/2018 02:25:32] readthedocs.doc_builder.environments:116[5462]: INFO Running: 'mv -f /root/py2/checkouts/readthedocs.org/user_builds/document/checkouts/latest/docs/_build/epub/Document.epub /root/py2/checkouts/readthedocs.org/user_builds/document/artifacts/latest/sphinx_epub/document.epub' [/root/py2/checkouts/readthedocs.org]
[28/May/2018 02:25:32] "POST /api/v2/command/ HTTP/1.1" 201 380
[28/May/2018 02:25:32] readthedocs.vcs_support.utils:110[5462]: INFO Lock (document): Releasing
[28/May/2018 02:25:32] readthedocs.core.symlink:293[5462]: INFO (Build) [document:] Symlinking Version: Version latest of Document (20)
[28/May/2018 02:25:32] celery.app.trace:123[5462]: INFO Task readthedocs.projects.tasks.symlink_project[b2365123-917d-45bd-a34c-2b84483b57cf] succeeded in 0.0299298979999s: None
[28/May/2018 02:25:32] "PATCH /api/v2/version/20/ HTTP/1.1" 200 1012
[28/May/2018 02:25:32] readthedocs.projects.tasks:1125[5462]: INFO Removing /root/py2/checkouts/readthedocs.org/media/pdf/document/latest/document.pdf
[28/May/2018 02:25:32] readthedocs.builds.syncers:30[5462]: INFO Local Copy /root/py2/checkouts/readthedocs.org/user_builds/document/artifacts/latest/sphinx to /root/py2/checkouts/readthedocs.org/user_builds/document/rtd-builds/latest
[28/May/2018 02:25:32] readthedocs.builds.syncers:30[5462]: INFO Local Copy /root/py2/checkouts/readthedocs.org/user_builds/document/artifacts/latest/sphinx_search to /root/py2/checkouts/readthedocs.org/media/json/document/latest
[28/May/2018 02:25:32] readthedocs.builds.syncers:30[5462]: INFO Local Copy /root/py2/checkouts/readthedocs.org/user_builds/document/artifacts/latest/sphinx_localmedia to /root/py2/checkouts/readthedocs.org/media/htmlzip/document/latest
[28/May/2018 02:25:32] readthedocs.builds.syncers:30[5462]: INFO Local Copy /root/py2/checkouts/readthedocs.org/user_builds/document/artifacts/latest/sphinx_epub to /root/py2/checkouts/readthedocs.org/media/epub/document/latest
[28/May/2018 02:25:32] readthedocs.core.symlink:293[5462]: INFO (Build) [document:] Symlinking Version: Version latest of Document (20)
[28/May/2018 02:25:32] readthedocs.projects.tasks:1091[5462]: INFO (Build) [document:] Updating static metadata
[28/May/2018 02:25:32] celery.app.trace:123[5462]: INFO Task readthedocs.projects.tasks.sync_files[2b272408-8d15-432b-9b1b-7fcb5238e245] succeeded in 0.0744020729999s: None
[28/May/2018 02:25:32] readthedocs.projects.tasks:928[5462]: INFO (Build) [document:latest] Creating ImportedFiles
[28/May/2018 02:25:33] readthedocs.projects.tasks:837[5462]: INFO (Search Index) Sending Data: document [index]
[28/May/2018 02:25:33] readthedocs.restapi.utils:104[5462]: INFO Updating search index: project=document pages=[index]
[28/May/2018 02:25:43] celery.app.trace:248[5462]: ERROR Task readthedocs.projects.tasks.sync_callback[485ba228-361c-4b9c-b13c-dd9f9e47d395] raised unexpected: ConnectionTimeout('TIMEOUT', "HTTPConnectionPool(host=u'127.0.0.1', port=9200): Read timed out. (read timeout=10)", ReadTimeoutError("HTTPConnectionPool(host=u'127.0.0.1', port=9200): Read timed out. (read timeout=10)",))
Traceback (most recent call last):
  File "/root/py2/lib/python2.7/site-packages/celery/app/trace.py", line 374, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/root/py2/checkouts/readthedocs.org/readthedocs/projects/tasks.py", line 1178, in sync_callback
    update_search(version_pk, commit=commit)
  File "/root/py2/lib/python2.7/site-packages/celery/local.py", line 191, in __call__
    return self._get_current_object()(*a, **kw)
  File "/root/py2/lib/python2.7/site-packages/celery/app/task.py", line 380, in __call__
    return self.run(*args, **kwargs)
  File "/root/py2/checkouts/readthedocs.org/readthedocs/projects/tasks.py", line 847, in update_search
    delete=delete_non_commit_files,
  File "/root/py2/checkouts/readthedocs.org/readthedocs/restapi/utils.py", line 118, in index_search_request
    'weight': project_scale,
  File "/root/py2/checkouts/readthedocs.org/readthedocs/search/indexes.py", line 156, in index_document
    self.es.index(**kwargs)
  File "/root/py2/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 69, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/root/py2/lib/python2.7/site-packages/elasticsearch/client/__init__.py", line 254, in index
    _make_path(index, doc_type, id), params=params, body=body)
  File "/root/py2/lib/python2.7/site-packages/elasticsearch/transport.py", line 307, in perform_request
    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
  File "/root/py2/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 82, in perform_request
    raise ConnectionTimeout('TIMEOUT', str(e), e)
ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host=u'127.0.0.1', port=9200): Read timed out. (read timeout=10))
[28/May/2018 02:25:43] "PUT /api/v2/build/2/ HTTP/1.1" 200 27328
[28/May/2018 02:25:43] readthedocs.doc_builder.environments:433[5462]: INFO (Build) [document:latest] Build finished
[28/May/2018 02:25:43] celery.app.trace:123[5462]: INFO Task readthedocs.projects.tasks.send_notifications[808e3f45-cf6d-40c8-9e91-fbfb1f94908b] succeeded in 0.00614339799995s: None
[28/May/2018 02:25:43] celery.app.trace:123[5462]: INFO Task readthedocs.projects.tasks.update_docs[ccf3f653-7231-4853-b5a0-654edf379812] succeeded in 30.035525867s: True

@agjohnson
Copy link
Contributor

We only support our production environment, which is Ubuntu 16.04, soon Ubuntu 18.04. We don't have the bandwidth to support more platforms. Feel free to submit a guide -- in our docs, under /guides if you have a working solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants