Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Nginx repository for Ubuntu/Debian

  1. #11
    Join Date
    Aug 2008
    Beans
    35
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Nginx repository for Ubuntu/Debian

    Quote Originally Posted by aresnick View Post
    No joy. I'm currently using nginx 0.6.35. To make sure we're on the same page about what I did:
    • install nginx from official repos (yours aren't even in sources.list, yet)
    • add your repos to sources.list
    • sudo apt-get update && sudo apt-get upgrade
    • sudo ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
    • sudo /etc/init.d/nginx restart


    and then things fall apart, as detailed above. Any idea how to investigate the weird file's-here-but-i-can't-see-it syndrome?

    Thanks!

    -a.
    That is very strange, I've tested all packages (both 32 and 64bit) and for me they all seem to work fine. Are you sure the file permissions are correct, mine is -rwxr-xr-x. Did you try to launch it directly, doing '/usr/local/nginx/sbin/nginx'?

    And where is the nginx executable located now?

  2. #12
    Join Date
    Feb 2008
    Beans
    15

    Re: Nginx repository for Ubuntu/Debian

    Code:
    sprout@thesprouts:~$ sudo /etc/init.d/nginx restart
    Restarting nginx: start-stop-daemon: Unable to start /usr/sbin/nginx: No such file or directory (No such file or directory)
    nginx.
    sprout@thesprouts:~$ ls -l /usr/local/nginx/sbin/nginx
    -rwxr-xr-x 1 root root 652972 2009-07-21 15:08 /usr/local/nginx/sbin/nginx
    sprout@thesprouts:~$ /usr/local/nginx/sbin/nginx
    -bash: /usr/local/nginx/sbin/nginx: No such file or directory
    So that's the crux of the issue; it's pretty baffling to me, since ls clearly says it is there =)

  3. #13
    Join Date
    Aug 2008
    Beans
    35
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Nginx repository for Ubuntu/Debian

    Quote Originally Posted by aresnick View Post
    Code:
    sprout@thesprouts:~$ sudo /etc/init.d/nginx restart
    Restarting nginx: start-stop-daemon: Unable to start /usr/sbin/nginx: No such file or directory (No such file or directory)
    nginx.
    sprout@thesprouts:~$ ls -l /usr/local/nginx/sbin/nginx
    -rwxr-xr-x 1 root root 652972 2009-07-21 15:08 /usr/local/nginx/sbin/nginx
    sprout@thesprouts:~$ /usr/local/nginx/sbin/nginx
    -bash: /usr/local/nginx/sbin/nginx: No such file or directory
    So that's the crux of the issue; it's pretty baffling to me, since ls clearly says it is there =)
    I'm very sorry for the late reply, put the following in '/etc/init.d/nginx' and it should restart properly and without downtime.

    Code:
      upgrade)
            echo -n "Upgrading $DESC: "
    
            # See http://wiki.nginx.org/NginxCommandLine for details
            # First, start a new process running the new binary
            kill -USR2 `cat /var/run/nginx.pid`
            sleep 1
    
            # Next, kill the old worker processes
            kill -WINCH `cat /var/run/nginx.pid.oldbin`
            sleep 1
    
            # Next, kill the old master processe
            kill -QUIT `cat /var/run/nginx.pid.oldbin`
    
            echo "$NAME."
            ;;

  4. #14
    Join Date
    Jul 2009
    Beans
    2

    Re: Nginx repository for Ubuntu/Debian

    Same problem here. The file is really there, but the thing doesn't work.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •