Scott - I agree with Eric that setting the hostname and persisting it is critical for many packages. Varnish is another one that expects to find a directory called: /var/lib/varnish/<hostname>/
After rebooting the EC2 instance, Varnish fails to start up with this error message:
$ sudo /etc/init.d/varnish restart
* Stopping HTTP accelerator
...fail!
* Starting HTTP accelerator
...fail!
Error: (-sfile) "/var/lib/varnish/domU-12-31-39-00-20-C2/varnish_storage.bin" does not exist and could not be created
$ hostname
domU-12-31-39-00-20-C2
$ ls /var/lib/varnish/
domU-12-31-38-04-E1-A2
As you can see the hostname changed after reboot, so Varnish can no longer find the directory, as it uses "uname -n" to determine what directory to look in.
Scott - I agree with Eric that setting the hostname and persisting it is critical for many packages. Varnish is another one that expects to find a directory called: /var/lib/ varnish/ <hostname> /
After rebooting the EC2 instance, Varnish fails to start up with this error message:
$ sudo /etc/init.d/varnish restart varnish/ domU-12- 31-39-00- 20-C2/varnish_ storage. bin" does not exist and could not be created
* Stopping HTTP accelerator
...fail!
* Starting HTTP accelerator
...fail!
Error: (-sfile) "/var/lib/
$ hostname 31-39-00- 20-C2
domU-12-
$ ls /var/lib/varnish/ 31-38-04- E1-A2
domU-12-
As you can see the hostname changed after reboot, so Varnish can no longer find the directory, as it uses "uname -n" to determine what directory to look in.
from /etc/default/ varnish:
INSTANCE=$(uname -n)
DAEMON_OPTS="-a :6081 \ default. vcl \ lib/varnish/ $INSTANCE/ varnish_ storage. bin,1G"
-T localhost:6082 \
-f /etc/varnish/
-s file,/var/
any chance that you will fix this for Karmic, as you have already done for Lucid?