linode

Django getting lots of SuspiciousOperation: Invalid HTTP_HOST header

↘锁芯ラ 提交于 2019-12-04 10:14:44
I'm using Django 1.5, Apache, mod_wsgi and python 2.7, debian hosted on linode. Since I upgraded from django 1.3 to django 1.5, I started receive some error messages, for example: "ERROR (EXTERNAL IP): Internal Server Error: /feed/". With this traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 92, in get_response response = middleware_method(request) File "/usr/local/lib/python2.7/dist-packages/django/middleware/common.py", line 57, in process_request host = request.get_host() File "/usr/local/lib/python2.7/dist

Capistrano and GitHub Private Repo – Permission denied (publickey)

五迷三道 提交于 2019-12-03 06:49:11
I've inherited a Rails project, hosted on Linode. The previous developer was using a BitBucket repository, along with Capistrano for deployments. I've since setup a private repository on GitHub, and I'm trying to get the Capistrano recipe to work. I'm having no luck. I continue to get a publickey error during deployment. Here are the steps I've taken – Updated the Git remote (origin) URL on the Linode server to point to my new repository Updated the repository reference in the Capfile, to reference my new repository Ensured ssh_options[:forward_agent] was set to true in the Capfile Generated

Feasability of running MongoDB on Linode 512 VPS?

百般思念 提交于 2019-12-03 04:49:53
问题 I've read the MongoDB documentation, and it comes with a warning about 32-bit systems; particularly that they're capped at 2 GB of available RAM for Mongo. So I was wondering if that statement meant anything in regards in running MongoDB in a low memory setting like Linode's 512mb of RAM based VPS. I doubt it matters but with a 64-bit distro for later resource adding. Any warnings or would someone recommend a minimum of a RAM to choose in a VPS for MongoDB? I know project requirements figure

Feasability of running MongoDB on Linode 512 VPS?

纵然是瞬间 提交于 2019-12-02 18:02:47
I've read the MongoDB documentation, and it comes with a warning about 32-bit systems; particularly that they're capped at 2 GB of available RAM for Mongo. So I was wondering if that statement meant anything in regards in running MongoDB in a low memory setting like Linode's 512mb of RAM based VPS. I doubt it matters but with a 64-bit distro for later resource adding. Any warnings or would someone recommend a minimum of a RAM to choose in a VPS for MongoDB? I know project requirements figure into this, but I mean minimum in the sense of what'd be laughable to do without for even spinning

使用 MTR 诊断网络问题

隐身守侯 提交于 2019-11-29 15:39:47
使用 MTR 诊断网络问题 每日一贴 • 2015年5月26日 • 3 条评论 MTR 是一款强大的网络诊断工具,网络管理员使用 MTR 可以诊断和隔离网络问题,并且为上游 ISP 提供有用的网络状态报告。 MTR 是传统 traceroute 命令的进化版,并且可以提供强大的数据样本,因为他集合了 traceroute 和 ping 这两个命令的精华。本文带您深入了解 MTR ,从数据如何生成,到如果正确理解报告样本并得出相应的结论。 关于网络诊断技术的基本理论请参考 network diagnostics .如果您怀疑您的 Linux 系统有其他问题,请参考 system diagnostics 。最后,我们假定您已经掌握了 getting started guide (入门指南) 。 网络诊断相关的背景知识 网络诊断工具 例如 ping traceroute mtr 都使用的 “ICMP” 包来测试 Internet 两点之间的网络连接状况。当用户使用 ping 命令 ping 网络上的主机后, ICMP 包将会发送到目的主机,然后在目的主机返回响应。这样,就可以得知本机到目的主机 ICMP 包传输所使用的往返时间。 相对于其他命令仅仅收集传输路径或响应时间,MTR 工具会收集更多的信息,比如 连接状态,连接可用性,以及传输路径中主机的响应性。由于这些额外的信息

How do I resolve a mysql Thread Stack Overrun?

ぃ、小莉子 提交于 2019-11-29 14:16:46
I have a stored procedure on mysql. It worked on my local MAMP environment, the procedure worked well, but when I moved it to a linode server/host it does not run. I'm getting a "Thread Stack Overrun" error. I have tried upping the thread stack up from an initial value 64K. I changed the value to 128K then to 256K. but the problem still occurs. i am working on a lucid ubuntu 512MB linode server. I am running on linode's suggested configuration in my mysql/my.cnf file: key_buffer = 16K max_allowed_packet = 1M thread_stack = 64K table_cache = 4 sort_buffer = 64K net_buffer_length = 2K Can anyone

ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu

a 夏天 提交于 2019-11-29 10:33:01
I am trying to connect to remote server via ssh but getting connection timeout. I ran the following command ssh testkamer@test.dommainname.com and getting following result ssh: connect to host testkamer@test.dommainname.com port 22: Connection timed out but if try to connect on another remote server then I can login successfully. So I think there is no problem in ssh and other person try to login with same login and password he can successfully login to server. Please help me Thanks. Here are a couple of things that could be preventing you from connecting to your Linode instance: DNS problem :

How do I resolve a mysql Thread Stack Overrun?

我只是一个虾纸丫 提交于 2019-11-28 07:43:17
问题 I have a stored procedure on mysql. It worked on my local MAMP environment, the procedure worked well, but when I moved it to a linode server/host it does not run. I'm getting a "Thread Stack Overrun" error. I have tried upping the thread stack up from an initial value 64K. I changed the value to 128K then to 256K. but the problem still occurs. i am working on a lucid ubuntu 512MB linode server. I am running on linode's suggested configuration in my mysql/my.cnf file: key_buffer = 16K max

ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu

无人久伴 提交于 2019-11-28 03:45:34
问题 I am trying to connect to remote server via ssh but getting connection timeout. I ran the following command ssh testkamer@test.dommainname.com and getting following result ssh: connect to host testkamer@test.dommainname.com port 22: Connection timed out but if try to connect on another remote server then I can login successfully. So I think there is no problem in ssh and other person try to login with same login and password he can successfully login to server. Please help me Thanks. 回答1:

Runnning Spark on cluster: Initial job has not accepted any resources

≡放荡痞女 提交于 2019-11-26 23:37:33
问题 I have a remote Ubuntu server on linode.com with 4 cores and 8G RAM I have a Spark-2 cluster consisting of 1 master and 1 slave on my remote Ubuntu server. I have started PySpark shell locally on my MacBook, connected to my master node on remote server by: $ PYSPARK_PYTHON=python3 /vagrant/spark-2.0.0-bin-hadoop2.7/bin/pyspark --master spark://[server-ip]:7077 I tried executing simple Spark example from website: from pyspark.sql import SparkSession spark = SparkSession \ .builder \ .appName(