Ok, I remove all and redeploy. I get this when executing the cap
deploy:start
*** [err :: canardpsn.sobert.net] ** Ruby version is not up-to-date;
loading cgi_multipart_eof_fix
after looking on google, this seems normal.
I executed in root on server : mongrel_rails start
it's running.
I executed in root on server : mongrel_cluster_ctl start : fail !
sd-17133:/var/rails/canardps3/current# mongrel_cluster_ctl start
Starting all mongrel_clusters...
/usr/local/bin/mongrel_cluster_ctl:7:in `chdir': No such file or
directory - /etc/mongrel_cluster (Errno::ENOENT)
from /usr/local/bin/mongrel_cluster_ctl:7:in `run'
from /usr/local/bin/mongrel_cluster_ctl:55
then :
sd-17133:/var/rails/canardps3/current# mongrel
-bash: mongrel: command not found
sd-17133:/var/rails/canardps3/current# mongrel_cluster
-bash: mongrel_cluster: command not found
dunno if it's normal.
On 16 Dec, 20:20, Sobert <[email protected]> wrote:
> Ok, after putting the script/spin with strace :
>
> strace -f -o output_strace -ff /var/rails/canardps3/current/script/
> process/spawner \
> mongrel \
> --environment=production \
> --instances=1 \
> --address=127.0.0.1 \
> --port=8000
>
> I get errors on the output_strace :
>
> stat64("/var/rails/canardps3/current/tmp/pids", 0xbfe4e228) = -1
> ENOENT (No such file or directory)
> mkdir("", 0777) = -1 ENOENT (No such file or
> directory)
>
> stat64("/var/rails/canardps3/current/tmp/pids", 0xbfe4d348) = -1
> ENOENT (No such file or directory)
>
> close(3) = -1 EBADF (Bad file
> descriptor)
>
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb75f8000
> _llseek(3, 0, 0xbfe4ee9c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
>
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb75f9000
> _llseek(3, 0, 0xbfe4ee9c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
>
> any ideas ?
>
> On 16 Dec, 19:55, Sobert <[email protected]> wrote:
>
>
>
> > Ok, I so mongrel is apparently started, but a ps aux | grep mongrel
> > isn't replying anything except my grep.
> > on server I got a 503 error (on the tutorial, with the get("/") I got
> > 404)
>
> > I look into the apache logs and get this :
>
> > [Tue Dec 16 19:41:09 2008] [error] an unknown filter was not added:
> > DEFLATE
> > [Tue Dec 16 19:41:18 2008] [error] an unknown filter was not added:
> > DEFLATE
>
> > my site conf is there :
>
> > <VirtualHost *>
> > ServerName canardpsn.sobert.net
> > DocumentRoot /var/rails/canardps3/current/public
>
> > <Directory "/var/rails/canardps3/current/public">
> > Options FollowSymLinks
> > AllowOverride None
> > Order allow,deny
> > Allow from all
> > </Directory>
>
> > <Proxy balancer://mongrel_cluster>
> > BalancerMemberhttp://127.0.0.1:8000
> > BalancerMemberhttp://127.0.0.1:8001
> > BalancerMemberhttp://127.0.0.1:8002
> > Allow from localhost
> > </Proxy>
>
> > RewriteEngine On
>
> > RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -f
> > RewriteRule (.*) $1 [L]
>
> > ProxyPass / balancer://mongrel_cluster/
> > ProxyPassReverse / balancer://mongrel_cluster/
>
> > # Deflate
> > AddOutputFilter DEFLATE text/html text/plain text/xml application/xml
> > application/xhtml+xml text/javascript text/css
> > BrowserMatch ^Mozilla/4 gzip-only-text/html
> > BrowserMatch ^Mozilla/4.0[678] no-gzip
> > BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>
> > ErrorLog /var/log/apache2/error.canardpsn.sobert.net.log
> > CustomLog /var/log/apache2/access.canardpsn.sobert.net.log combined
> > </VirtualHost>
>
> > I got also this (guess it's the main error) :
> > [Tue Dec 16 19:41:09 2008] [error] (111)Connection refused: proxy:
> > HTTP: attempt to connect to 127.0.0.1:8000 (127.0.0.1) failed
> > [Tue Dec 16 19:41:09 2008] [error] ap_proxy_connect_backend disabling
> > worker for (127.0.0.1)
> > [Tue Dec 16 19:41:09 2008] [error] (111)Connection refused: proxy:
> > HTTP: attempt to connect to 127.0.0.1:8001 (127.0.0.1) failed
> > [Tue Dec 16 19:41:09 2008] [error] ap_proxy_connect_backend disabling
> > worker for (127.0.0.1)
> > [Tue Dec 16 19:41:09 2008] [error] (111)Connection refused: proxy:
> > HTTP: attempt to connect to 127.0.0.1:8002 (127.0.0.1) failed
> > [Tue Dec 16 19:41:09 2008] [error] ap_proxy_connect_backend disabling
> > worker for (127.0.0.1)
> > [Tue Dec 16 19:41:18 2008] [error] proxy: BALANCER: (balancer://
> > mongrel_cluster). All workers are in error state
>
> > So, what can I do now ? :D
>
> > On 16 Dec, 19:27, Sobert <[email protected]> wrote:
>
> > > Ok, I was writing and I find the problem : spawner was rw-rw-r-- and
> > > the spin have ^M at the end of line. Noob error, sorry for the
> > > conveniences.
>
> > > On 16 Dec, 16:08, Jamis Buck <[email protected]> wrote:
>
> > > > The clincher will be this: if you log into your server, and go to (in
> > > > Sobert's case) /var/rails/canardps3/current, is there a script/spin file
> > > > there?
>
> > > > If there is, it may be that nohup is needing an absolute path to the
> > > > file, rather than a relative path.
>
> > > > If there isn't, then you get to figure out why it's not being deployed
> > > > with the rest of your app. :/
>
> > > > - Jamis
>
> > > > On 12/16/08 7:46 AM, Steve-O wrote:
>
> > > > > I too am at the same point. I have disabled sudo by placing
> > > > > 'set :use_sudo, false' in the 'deploy.rb' file, which might work for
> > > > > you. I think that my problem is with my subversion repository not
> > > > > being updated, even though I seem to have all my commits done...
>
> > > > > On Dec 15, 10:44 pm, Sobert <[email protected]> wrote:
> > > > >> Hello,
>
> > > > >> I get an error on cap deploy:start :
>
> > > > >> * executing "cd /var/rails/canardps3/current && sudo -p 'sudo
> > > > >> password: ' -u s
> > > > >> obert nohup script/spin"
> > > > >> servers: ["canardpsn.sobert.net"]
> > > > >> [canardpsn.sobert.net] executing command
> > > > >> *** [err :: canardpsn.sobert.net] nohup:
> > > > >> *** [err :: canardpsn.sobert.net] ne peut exÚcuter la commande
> > > > >> `script/
> > > > >> spin'
> > > > >> *** [err :: canardpsn.sobert.net] : Aucun fichier ou rÚpertoire de ce
> > > > >> type
> > > > >> *** [err :: canardpsn.sobert.net]
> > > > >> command finished
> > > > >> failed: "sh -c \"cd /var/rails/canardps3/current && sudo -p 'sudo
> > > > >> password: ' -u
> > > > >> sobert nohup script/spin\"" on canardpsn.sobert.net
>
> > > > >> Yes, I'm french, so, the error is : no such file or directory on
> > > > >> script/spin.
>
> > > > >> The fact is, I've already checked, that the script/spin is there, and
> > > > >> executable.
>
> > > > >> proof :
>
> > > > >> sd-17133:/var/rails/canardps3/current# ls -l script/
> > > > >> total 44
> > > > >> -rw-rw-r-- 1 sobert sobert 152 2008-12-16 04:15 about
> > > > >> -rw-rw-r-- 1 sobert sobert 98 2008-12-16 04:15 console
> > > > >> -rw-rw-r-- 1 sobert sobert 100 2008-12-16 04:15 dbconsole
> > > > >> -rw-rw-r-- 1 sobert sobert 98 2008-12-16 04:15 destroy
> > > > >> -rw-rw-r-- 1 sobert sobert 99 2008-12-16 04:15 generate
> > > > >> drwxrwxr-x 3 sobert sobert 4096 2008-12-16 04:15 performance
> > > > >> -rw-rw-r-- 1 sobert sobert 97 2008-12-16 04:15 plugin
> > > > >> drwxrwxr-x 3 sobert sobert 4096 2008-12-16 04:16 process
> > > > >> -rw-rw-r-- 1 sobert sobert 97 2008-12-16 04:15 runner
> > > > >> -rw-rw-r-- 1 sobert sobert 97 2008-12-16 04:15 server
> > > > >> -rwxrwxr-x 1 sobert sobert 162 2008-12-16 04:16 spin
>
> > > > >> The script folder :
> > > > >> drwxrwxr-x 5 sobert sobert 4096 2008-12-16 04:37 script
>
> > > > >> I use apache+mongrel+svn.
>
> > > > >> All the steps described
> > > > >> inhttp://capify.org/getting-started/from-the-beginning
> > > > >> are ok, except the cap deploy:start
>
> > > > >> my workstation is under windows vista, and my server is a Debian.
>
> > > > >> Sorry for my poor english :/- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---