Category: Linux

  • Tomcat: javax.servlet.ServletException issues

    javax.servlet.ServletException org.apache.catalina.security.SecurityUtil.execute (SecurityUtil.java:294) Solution: Create 20servlets.policy: nano -w /etc/tomcat5.5/policy.d/20servlets.policy And add: grant codeBase “file:${catalina.base}/webapps/-” { permission java.security.AllPermission; }; And restart Tomcat /etc/init.d/tomcat5.5 restart

  • Xen: PTY allocation request failed

    $ ssh vm3.rootspirit.com -l root [email protected]’s password: PTY allocation request failed on channel 0 stdin: is not a tty Solution: Kill the DomU (xm console *might* work, but somehow rarely works for me). mkdir /tmp/disk mount /path/to/disk.img /tmp/disk chroot /tmp/disk /bin/bash => in chroot env nano -w /etc/fstab And add (though this is probably not…

  • Xen: Failed to find an unused loop device

    I had to start a new Xen domU this afternoon, xm create vm#.domain But this resulted in following error: Error: Device 5632 (vbd) could not be connected. Failed to find an unused loop device Solution: Create /etc/modprobe.d/local-loop.conf with this content: options loop max_loop=64 Turn off all DomUs, yes, bummer. You’ll need to reload the loop…

  • iRail news

    Been playing around with nginx vs Apache for iRail. The bottle neck still is the NMBS site (and I’m truly sorry for DoSing you, dearest NMBS. I had to benchmark), but nginx seems to win just slightly over Apache. Maybe it’s worth moving irail.be to my nginx webserver. <3 nginx. The iRail (national) mobile website…

  • Man page as CV

    Geeky, yes, but original. 😉

  • iRail.git

    iRail source is on Github. To access the iRail source code; Be aware you need to be added as contributor before being able to commit changes. get Git [browse to some folder] mkdir git cd git git clone [email protected]:Tuinslak/iRail.git cd iRail git fetch To edit & commit changes: git add [file] git commit -m ‘edited [file],…

  • Four

    Has a year uptime as well! Yay 😉 It’s the one at the bottom. Running Ubuntu as OS (Dom0) and several Xen virtual machines (such as the nginx reverse proxy cache of this blog). Four is a dual core Xeon with 8Gb RAM.

  • nginx configs

    Been slacking a bit lately, but here they are: /etc/nginx/nginx.conf // general nginx config /etc/nginx/sites-available/blog // my current (as of posting this) rproxy settings for this blog /etc/nginx/conf.d/proxy.conf // reverse proxy related config

  • iRail slashdot effect

    Only because stats are pretty awesome. The effects of my media attention a few days ago. I’ll give some more info than what can be seen here. And pretty happy I set up my nginx caching up a few weeks ago. MRTG traffic stats on vm1, my nginx caching server, of the first 2 days…