You are here

Error message

E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit

Submitted by Druss on Wed, 2011-12-07 03:35

I ran into the following error when I added a new repository to my kubuntu box and ran apt-get update:
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 123123. (man 5 apt.conf)

To fix this, navigate to /etc/apt/apt.conf.d and edit the file related to debconf which in my case was 70debconf. Add the following line to the bottom of this file and save it:
APT::Cache-Limit "200000000";

Error message: iptables-restore v1.x.x: no command specified

Submitted by Druss on Thu, 2011-11-24 12:29

If you run into the following error message when attempting an iptables-restore < my.rules:
iptables-restore v1.4.8: no command specified
then the problem is that you have very likely just copied and pasted stuff into my.rules which has led to some dodgy line-breaks terminating blank lines in the file.

Apache/httpd error: SoftException in Application.cpp:357: UID of script "/home/foo/public_html/index.php" is smaller than min_uid

Submitted by Druss on Fri, 2011-11-11 20:13

On a server I am working on right now, I installed a PHP application and attempted to run it. However, I ran into a "500 Internal Server Error". Upon further investigation by checking the logs, I found the following errors in the Apache error log:

Vim E303: Unable to open swap file for "[No Name]", recovery impossible

Submitted by Druss on Fri, 2011-09-30 14:04

On a new installation of GVim (in Windows 7), I ran into the following curious error whenever I tried to open a new document for editing:
Vim E303: Unable to open swap file for "[No Name]", recovery impossible

According to friendly chap on IRC, this is caused by a temporary directory bug and that it can be fixed by adding the following directive to the _vimrc file:
set directory=.,$TEMP

MySQL charset issues while importing data using LOAD DATA INFILE

Submitted by Druss on Tue, 2011-09-27 20:47

Earlier today, I was banging my head against the wall trying to import some data in a CSV file into MySQL. While my imports have gone well thus far, this time around I was dealing with data involving lots of strange diacritics, runic squiggles and other manners of gibberish that make the world as fun as it can be. In other words, I was dealing with Unicode.

MySQL's LOAD DATA INFILE leads to an ERROR 29 (HY000) File not found / (Errcode: 13)

Submitted by Druss on Fri, 2011-09-23 01:08

While trying to import a CSV file into MySQL today using the LOAD DATA INFILE command, I ran into the following situation:

mysql> LOAD DATA INFILE 'foo.csv' INTO TABLE bar FIELDS TERMINATED BY ',' ENCLOSED BY '#' LINES TERMINATED BY '\r' (a, b);
ERROR 29 (HY000): File 'foo.csv' not found (Errcode: 13)

The file exists fine and the permissions are also kosher. After much gnashing of teeth and perusing of documentation, I found out that local file sources require the LOCAL keyword:

Drupal 7 and the "You do not have any administrative items" error

Submitted by Druss on Sat, 2011-07-30 11:27

If you've upgraded Drupal recently and noticed that the admin page is empty and returns a You do not have any administrative items error message, then this basically means that your menu table is a little wonky. Another tell-tale sign that you've got the same problem as I did is that the admin page will have the title, Administer rather than Administration. Fixing this is pretty straightforward, if a little painstaking. To do so, make sure that the Menu module is enabled and perform the following steps:

git-receive-pack not permitted error on pushing upstream

Submitted by Druss on Fri, 2011-07-08 22:53

If you ever run into a git-receive-pack not permitted error when using Git, chances are that it's a configuration issue on your end. In my case, I had cloned the repository using via https (which required authentication). However, pushing failed with the aforementioned error. This was due to the fact that I was only allowed to push via SSH. Therefore, once I changed the protocol in the configuration for my checkout, all was well again.

Bind error: zone example.com/IN: NS 'ns1.example.com' has no address records (A or AAAA)

Submitted by Druss on Thu, 2011-05-12 23:44

While checking the logs of my server, I ran into the following errors:

May 11 18:00:04 named[31875]: zone example.com/IN: NS 'ns1.example.com' has no address records (A or AAAA)
May 11 18:00:04 named[31875]: zone example.com/IN: NS 'ns2.example.com' has no address records (A or AAAA)
May 11 18:00:04 named[31875]: zone example.com/IN: NS 'ns3.example.com' has no address records (A or AAAA)

I ran into the same errors when I checked the zone files themselves using:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Submitted by Druss on Fri, 2011-04-22 09:56

I installed MySQL on my local server today and when I went to access it via mysql_secure_installation to set my root password etc., I ran into the following curious error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Pages

Subscribe to RSS - Error message