我正在为我的django项目使用django-celery.最后一天我更改了我的计算机主机名(我正在使用Ubuntu 12.04,编辑文件'/ etc/hostname'),然后在下次重启后django-celery失败并出现错误
Consumer: Connection Error: [Errno 111] Connection refused. Trying again in 4 seconds...
Run Code Online (Sandbox Code Playgroud)
这个错误经过一番研究,我能找到的,改变我的主机名从导致该错误在这里.我的rabbitmq启动日志显示
file:/ var/log/rabbitmq/startup_log
Activating RabbitMQ plugins ...
********************************************************************************
********************************************************************************
0 plugins activated:
ERROR: epmd error for host "jinesh": nxdomain (non-existing domain)
Run Code Online (Sandbox Code Playgroud)
我的startup_err文件为空.
我跑的时候
root@jinesh:/home/jinesh# rabbitmqctl list_users
Listing users ...
Error: unable to connect to node rabbit@jinesh: nodedown
DIAGNOSTICS
===========
nodes in question: [rabbit@jinesh]
hosts, their running nodes and ports:
- unable to connect to epmd on jinesh: nxdomain
current node details:
- node …Run Code Online (Sandbox Code Playgroud) 在我看来,这两个工具都用于轻松安装和自动配置应用程序.
但是,我限制使用Docker并且根本没有使用Ansible.所以我有点困惑.
每当我搜索这两种技术之间的比较时,我都会找到有关如何组合使用这些技术的详细信息.
我unoconv用来将不同的文件格式转换为pdf.它在我的本地机器上适用于所有格式.但在我的ubuntu 12.04服务器unoconv上失败的某些格式,如xls,ppt,pptx等.但它适用于doc文件.它显示ppt转换的以下错误.
$unoconv -f pdf Googling.ppt
unoconv: UnoException during conversion in <class '__main__.com.sun.star.lang.IllegalArgumentException'>: Unsupported URL <file:///home/pythonuser/almamapper/media/library/files/c1cb92e62ce54b29a017a6e8eaa23c/Googling.ppt>: ""
Traceback (most recent call last):
File "/usr/bin/unoconv", line 790, in <module>
main()
File "/usr/bin/unoconv", line 769, in main
convertor.convert(inputfn)
File "/usr/bin/unoconv", line 679, in convert
error("ERROR: The provided document cannot be converted to the desired format. (code: %s)" % e.ErrCode)
File "/usr/lib/python2.7/dist-packages/uno.py", line 337, in _uno_struct__getattr__
return __builtin__.getattr(self.__dict__["value"],name)
AttributeError: ErrCode
Run Code Online (Sandbox Code Playgroud)
我知道我必须在我的服务器上安装openoffice-headless版本.但是从这个链接我明白Ubuntu很久以前就改用了libreoffice而不是openoffice.所以我通过以下命令安装了libreoffice.
apt-get install libreoffice-core libreoffice-writer libreoffice-calc
但仍然得到同样的错误.我错过了安装的东西吗?有没有人对这个问题有任何想法?
ansible ×1
docker ×1
installation ×1
libreoffice ×1
rabbitmq ×1
shell ×1
ubuntu ×1
ubuntu-12.04 ×1