Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Cat App on dotcloud

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


paikkos at googlemail

Oct 31, 2011, 4:57 PM

Post #1 of 11 (1179 views)
Permalink
Cat App on dotcloud

Hi,

Does anyone have any experience of deploying a Cat App onto dotcloud?
I have an cat app that works fine on my pc using the built-in server
but doesn't work on dotcloud.

I have seen a couple of examples but seem to have come un-stuck. After
creating my Cat app and the installing the dotcloud cli, I pushed my
app thus:
...
MyApp/Makefile.PL

sent 10.25K bytes received 46 bytes 1.87K bytes/sec
total size is 3.64M speedup is 353.21
Deployment for "kayelectrical" triggered. Will be available in a few seconds.
2011-10-31 20:21:40 [api] Deploy kay scheduled for revision=latest
2011-10-31 20:21:40 [api] Waiting for the build. (It may take a few minutes)
2011-10-31 20:21:41 [api] All the services are ready. Beginning the build.
2011-10-31 20:21:41 [www.0] The build started
2011-10-31 20:21:41 [www.0] Fetched code revision rsync-1320092498.48
2011-10-31 20:21:43 [www.0] --> Working on .
2011-10-31 20:21:43 [www.0] Configuring
/home/dotcloud/rsync-1320092498.48/MyApp ... N/A
2011-10-31 20:21:43 [www.0] <== Installed dependencies for .. Finishing.
2011-10-31 20:21:44 [www.0] Reloading nginx configuration: nginx.
2011-10-31 20:21:47 [www.0] uwsgi: ERROR (abnormal termination)
2011-10-31 20:21:47 [www.0] The build finished successfully
2011-10-31 20:21:47 [api] Deploy finished

I spotted the error from uwsgi and checked the logs:


your memory page size is 4096 bytes
uwsgi socket 0 bound to UNIX address /var/dotcloud/uwsgi.sock fd 3
initializing Perl environment
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
Can't locate Moose.pm in @INC (@INC contains: lib
/home/dotcloud/perl5/lib/perl5
/opt/perl5//perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux-thread-multi
/opt/perl5//perls/perl-5.12.3/lib/site_perl/5.12.3
/opt/perl5//perls/perl-5.12.3/lib/5.12.3/x86_64-linux-thread-multi
/opt/perl5//perls/perl-5.12.3/lib/5.12.3 .) at lib/KayElectrical.pm
line 2.
BEGIN failed--compilation aborted at lib/KayElectrical.pm line 2.
Compilation failed in require at (eval 3) line 5.
BEGIN failed--compilation aborted at (eval 3) line 5.


==> /var/log/nginx/error.log <==

==> /var/log/nginx/kayelectrical-default-www-0.error.log <==
2011/10/30 21:44:58 [error] 357#0: *9 connect() to
unix:///var/dotcloud/uwsgi.sock failed (111: Connection refused) while
connecting to upstream, client: 10.68.47.216, server:
kayelectrical-default-www-0, request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/30 21:44:58 [error] 357#0: *9 open()
"/home/dotcloud/current/static/502.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 19:28:58 [error] 357#0: *11 open()
"/home/dotcloud/current/static/favicon.ico" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET /favicon.ico HTTP/1.0", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 19:28:58 [error] 357#0: *11 open()
"/home/dotcloud/current/static/404.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET /favicon.ico HTTP/1.0", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 20:19:08 [error] 357#0: *12 connect() to
unix:///var/dotcloud/uwsgi.sock failed (111: Connection refused) while
connecting to upstream, client: 10.68.47.216, server:
kayelectrical-default-www-0, request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 20:19:08 [error] 357#0: *12 open()
"/home/dotcloud/current/static/502.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 23:43:06 [error] 15914#0: *14 connect() to
unix:///var/dotcloud/uwsgi.sock failed (111: Connection refused) while
connecting to upstream, client: 10.68.47.216, server:
kayelectrical-default-www-0, request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 23:43:06 [error] 15914#0: *14 open()
"/home/dotcloud/current/static/502.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 23:43:08 [error] 15914#0: *16 connect() to
unix:///var/dotcloud/uwsgi.sock failed (111: Connection refused) while
connecting to upstream, client: 10.68.47.216, server:
kayelectrical-default-www-0, request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"
2011/10/31 23:43:08 [error] 15914#0: *16 open()
"/home/dotcloud/current/static/502.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com"


==> /var/log/nginx/kayelectrical-default-www-0.error.log <==
2011/10/31 23:43:37 [error] 15914#0: *18 open()
"/home/dotcloud/current/static/robots.txt" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET /robots.txt HTTP/1.0", host:
"kayelectrical-tomred.dotcloud.com", referrer:
"http://kayelectrical-tomred.dotcloud.com/robots.txt"
2011/10/31 23:43:37 [error] 15914#0: *18 open()
"/home/dotcloud/current/static/404.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET /robots.txt HTTP/1.0", host:
"kayelectrical-tomred.dotcloud.com", referrer:
"http://kayelectrical-tomred.dotcloud.com/robots.txt"
2011/10/31 23:43:37 [error] 15914#0: *19 connect() to
unix:///var/dotcloud/uwsgi.sock failed (111: Connection refused) while
connecting to upstream, client: 10.68.47.216, server:
kayelectrical-default-www-0, request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com", referrer:
"http://kayelectrical-tomred.dotcloud.com/"
2011/10/31 23:43:37 [error] 15914#0: *19 open()
"/home/dotcloud/current/static/502.html" failed (2: No such file or
directory), client: 10.68.47.216, server: kayelectrical-default-www-0,
request: "GET / HTTP/1.0", upstream:
"uwsgi://unix:///var/dotcloud/uwsgi.sock:", host:
"kayelectrical-tomred.dotcloud.com", referrer:
"http://kayelectrical-tomred.dotcloud.com/"

There are so many errors there that it's hard to know where to start
but the two that stick out are

1) connect() to unix:///var/dotcloud/uwsgi.sock failed (111: Connection refused)

2) Can't locate Moose.pm in @INC...

I am not familiar with wsgi so could really use some advice with that.
The 2nd error is confusing because I put requires Moose in my Makefile
and so it should have been built.

If anyone can give me some tips on where to begin, it would be much appreciated.
Thanks,
Dermot

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


ret at mac

Oct 31, 2011, 6:51 PM

Post #2 of 11 (1033 views)
Permalink
Re: Cat App on dotcloud [In reply to]

>
> Does anyone have any experience of deploying a Cat App onto dotcloud?
> I have an cat app that works fine on my pc using the built-in server
> but doesn't work on dotcloud.

Hi Dermot,
I have a Catalyst-based app running successfully on DotCloud.

> I have seen a couple of examples but seem to have come un-stuck. After
> creating my Cat app and the installing the dotcloud cli, I pushed my
> app thus:
> ...

There are a few gotchas that I encountered along the way.

1) I could never get Session::Store::FastMmap to compile on my dotcloud service, and eventually gave up and used Session::Store::File
2) The latest versions of Catalyst (with built-in Plack) use a type of streaming that dotcloud's nginx-based service doesn't cope with. (Or didn't, at least, when my app exploded on upgrading Catalyst a few months back. This problem may now be solved.)
3) One of the tutorials had a typo in the Makefile.PL that it took me a long time to figure out.

What I suggest you do is ssh into your dotcloud www instance, and just run perl -MMoose -e 'say "OK";' and you'll quickly see whether Moose is available or not. Until I solved the problem referred to at (3) above, I had just installed everything via ssh, ie:
> ssh myapp.www
$ cpanm install Moose
$ cpanm install Catalyst
$ cpanm install Template

etc. Eventually I was able to plackup my app via ssh. I couldn't connect to it, of course, but at least I knew it compiled OK.

I see miyagawa has replied to your post on dotcloud's forum as well. Hope you solve it, dotcloud is an excellent platform.

cheers
RET
___________________________________________________________
Whilst cleaning my fridge, I remind myself that LIFO (Last In, First Out) is
the wrong data structure for perishable veg storage. Eww.
- Andy Ihnatko


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


paikkos at googlemail

Nov 1, 2011, 3:27 AM

Post #3 of 11 (1009 views)
Permalink
Re: Cat App on dotcloud [In reply to]

On 1 November 2011 01:51, Richard Thomas <ret [at] mac> wrote:
>>
>> Does anyone have any experience of deploying a Cat App onto dotcloud?
>> I have an cat app that works fine on my pc using the built-in server
>> but doesn't work on dotcloud.
>
> Hi Dermot,
> I have a Catalyst-based app running successfully on DotCloud.
>
>> I have seen a couple of examples but seem to have come un-stuck. After
>> creating my Cat app and the installing the dotcloud cli, I pushed my
>> app thus:
>> ...
>
> There are a few gotchas that I encountered along the way.
>
> 1) I could never get Session::Store::FastMmap to compile on my dotcloud service, and eventually gave up and used Session::Store::File
> 2) The latest versions of Catalyst (with built-in Plack) use a type of streaming that dotcloud's nginx-based service doesn't cope with. (Or didn't, at least, when my app exploded on upgrading Catalyst a few months back. This problem may now be solved.)
> 3) One of the tutorials had a typo in the Makefile.PL that it took me a long time to figure out.
>
> What I suggest you do is ssh into your dotcloud www instance, and just run perl -MMoose -e 'say "OK";' and you'll quickly see whether Moose is available or not. Until I solved the problem referred to at (3) above, I had just installed everything via ssh, ie:
>> ssh myapp.www
> $ cpanm install Moose
> $ cpanm install Catalyst
> $ cpanm install Template
>
> etc. Eventually I was able to plackup my app via ssh. I couldn't connect to it, of course, but at least I knew it compiled OK.
>
> I see miyagawa has replied to your post on dotcloud's forum as well. Hope you solve it, dotcloud is an excellent platform.

Wow lots of information there and back on the forum. I'll get busy
tonight when I'm not at $work and see if I can push things along.

Thanks for the advice.
Dp.

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


lorn at lornlab

Nov 1, 2011, 7:54 AM

Post #4 of 11 (1021 views)
Permalink
Re: Cat App on dotcloud [In reply to]

Hi Dermot, I got the same issue and open a ticket in dotcloud and they
answered:

* Jérôme Petazzoni, Sep-05 21:46 (PDT):*

Hi,

I remember that had a very similar issue when I tried to run Catalyst on
DotCloud.
Assuming that you used Catalyst::Devel to generate a Catalyst app
skeleton, did you run "perl Makefile.PL" locally, to generate meta.yml and
the inc directory?

Best regards,

This work for me :)

On Tue, Nov 1, 2011 at 8:27 AM, Dermot <paikkos [at] googlemail> wrote:

> On 1 November 2011 01:51, Richard Thomas <ret [at] mac> wrote:
> >>
> >> Does anyone have any experience of deploying a Cat App onto dotcloud?
> >> I have an cat app that works fine on my pc using the built-in server
> >> but doesn't work on dotcloud.
> >
> > Hi Dermot,
> > I have a Catalyst-based app running successfully on DotCloud.
> >
> >> I have seen a couple of examples but seem to have come un-stuck. After
> >> creating my Cat app and the installing the dotcloud cli, I pushed my
> >> app thus:
> >> ...
> >
> > There are a few gotchas that I encountered along the way.
> >
> > 1) I could never get Session::Store::FastMmap to compile on my dotcloud
> service, and eventually gave up and used Session::Store::File
> > 2) The latest versions of Catalyst (with built-in Plack) use a type of
> streaming that dotcloud's nginx-based service doesn't cope with. (Or
> didn't, at least, when my app exploded on upgrading Catalyst a few months
> back. This problem may now be solved.)
> > 3) One of the tutorials had a typo in the Makefile.PL that it took me a
> long time to figure out.
> >
> > What I suggest you do is ssh into your dotcloud www instance, and just
> run perl -MMoose -e 'say "OK";' and you'll quickly see whether Moose is
> available or not. Until I solved the problem referred to at (3) above, I
> had just installed everything via ssh, ie:
> >> ssh myapp.www
> > $ cpanm install Moose
> > $ cpanm install Catalyst
> > $ cpanm install Template
> >
> > etc. Eventually I was able to plackup my app via ssh. I couldn't connect
> to it, of course, but at least I knew it compiled OK.
> >
> > I see miyagawa has replied to your post on dotcloud's forum as well.
> Hope you solve it, dotcloud is an excellent platform.
>
> Wow lots of information there and back on the forum. I'll get busy
> tonight when I'm not at $work and see if I can push things along.
>
> Thanks for the advice.
> Dp.
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>


oliver at cpan

Nov 1, 2011, 11:25 AM

Post #5 of 11 (1021 views)
Permalink
Re: Cat App on dotcloud [In reply to]

> skeleton, did you run "perl Makefile.PL" locally, to generate meta.yml and
> the inc directory?

This could be it, and is mentioned in Phillip Smith’s comprehensive guide,
on blogs.perl.org:

http://blogs.perl.org/users/phillip_smith/2011/08/dotcloud-loves-catalyst-apps-up-and-running-in-10-minutes-perl-in-the-cloud-part-iii.html

Hope this helps,

oliver.


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


mitakaa at gmail

Nov 1, 2011, 12:38 PM

Post #6 of 11 (1007 views)
Permalink
Re: Cat App on dotcloud [In reply to]

Since Catalyst 5.9xxxxx supports psgi natively you can check these docs
here also:
https://metacpan.org/module/Catalyst::Upgrading#Upgrading-the-PSGI-Engine
You want to skip the step (Then you’ll want to set-up support for PSGI. To
do that, you can simply:) from the blog post and just write your own
app.psgi file.

Cheers,
Dimi

On Tue, Nov 1, 2011 at 7:25 PM, Oliver Gorwits <oliver [at] cpan> wrote:

> > skeleton, did you run "perl Makefile.PL" locally, to generate meta.yml
> and
> > the inc directory?
>
> This could be it, and is mentioned in Phillip Smith’s comprehensive guide,
> on blogs.perl.org:
>
>
> http://blogs.perl.org/users/phillip_smith/2011/08/dotcloud-loves-catalyst-apps-up-and-running-in-10-minutes-perl-in-the-cloud-part-iii.html
>
> Hope this helps,
>
> oliver.
>
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
>


ret at mac

Nov 1, 2011, 1:15 PM

Post #7 of 11 (1019 views)
Permalink
Re: Cat App on dotcloud [In reply to]

On 02/11/2011, at 6:38 AM, Dimitar Petrov wrote:

> Since Catalyst 5.9xxxxx supports psgi natively you can check these docs here also: https://metacpan.org/module/Catalyst::Upgrading#Upgrading-the-PSGI-Engine
> You want to skip the step (Then you’ll want to set-up support for PSGI. To do that, you can simply:) from the blog post and just write your own app.psgi file.
>

The introduction of PSGI in Cat 5.9xxxx caused me quite a few problems (as mentioned in my previous message). The details can be found on dotcloud's support site:
https://dotcloud.zendesk.com/requests/14661

... but if you get errors about "Workers dying", then this is still an unresolved problem. I can post the problem and Jérôme's responses here if it's of use to anyone, but it's not relevant to Dermot's issue.

cheers
RET

________________________________________________________________________
perl -e 'use Signature; printf STDOUT "%s\n", Signature->random;'

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Nov 1, 2011, 1:55 PM

Post #8 of 11 (1015 views)
Permalink
Re: Cat App on dotcloud [In reply to]

On 1 Nov 2011, at 20:15, Richard Thomas wrote:

> On 02/11/2011, at 6:38 AM, Dimitar Petrov wrote:
>
>> Since Catalyst 5.9xxxxx supports psgi natively you can check these
>> docs here also: https://metacpan.org/module/
>> Catalyst::Upgrading#Upgrading-the-PSGI-Engine
>> You want to skip the step (Then you’ll want to set-up support for
>> PSGI. To do that, you can simply:) from the blog post and just
>> write your own app.psgi file.
>>
>
> The introduction of PSGI in Cat 5.9xxxx caused me quite a few
> problems (as mentioned in my previous message). The details can be
> found on dotcloud's support site:
> https://dotcloud.zendesk.com/requests/14661
>

No, they can't:

'You do not have access to request #14661. It may have been solved or
deleted.'

I'd like to get whatever doesn't work for dotCloud working again, so
if you can share any of this info, I'd be very grateful.

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


ret at mac

Nov 1, 2011, 9:36 PM

Post #9 of 11 (1032 views)
Permalink
Re: Cat App on dotcloud [In reply to]

> I'd like to get whatever doesn't work for dotCloud working again, so if you can share any of this info, I'd be very grateful.

Hi Tom,

It's still available on their site to me, but perhaps because I raised it? Anyway, here are the guts of it (reverse-thread):

=========

Your request (#14661) has been updated.

To review the status of the request and add additional comments, follow the link below:
http://dotcloud.zendesk.com/tickets/14661

You can also add a comment by replying to this email.


Jérôme Petazzoni, Sep-03 19:55 (PDT):
Hi Richard,

I'm sorry, I had this bit of info in our knowledge base, but I couldn't connect the dot until I saw your message about downgrading to Catalyst 5.8!
Catalyst 5.9 tries to use psgi.streaming, which is not properly implemented in our version of uwsgi.
This has been fixed in more recent versions of uwsgi, and we will update soon.
Meanwhile, as you could see, forcing Catalyst version to 5.8 works!

Best regards,


Richard Thomas, Sep-03 18:26 (PDT):
Hi Jérôme,

I've got it working again. I had to manually downgrade Catalyst from 5.90022 back to 5.80033:

dotcloud [at] ourclub-default-www-:~$ cpanm install http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Runtime-5.80033.tar.gz
install is up to date. (0.01)
--> Working on http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Runtime-5.80033.tar.gz
Fetching http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Runtime-5.80033.tar.gz ... OK
Configuring Catalyst-Runtime-5.80033 ... OK
Building and testing Catalyst-Runtime-5.80033 ... OK
Successfully installed Catalyst-Runtime-5.80033
1 distribution installed
dotcloud [at] ourclub-default-www-:~$

I will report the incompatibility to the Cat dev team, but if there are other dotcloud users with Catalyst-based apps, they'll hit this issue as well. It's still not clear to me which piece of the stack has the issue: Catalyst, PSGI or nginx

cheers
RET

__________________________________________________________________
It's easier to optimize a debugged program than to debug an optimized program.

Richard Thomas
ret [at] mac


Richard Thomas, Sep-03 15:38 (PDT):
Hi Jérôme,

It's every page. There have been some changes under the hood of Catalyst that relate to its use of PSGI by default that I'm sure must be related. (Previously Catalyst::Engine::PSGI was simply an option.)

My dev machine is OSX, and the app runs quite happily under plackup there. It also seems to plackup on the dotcloud ourclub.www service if I ssh to there and try it. (I can't connect to it from a browser though, because of the port it listens on, I presume.)

I hope that helps.

cheers
RET
________________________
Sent from my iPhone


Jérôme Petazzoni, Sep-03 12:18 (PDT):
Hi Richard,

Is this happening all the time, or randomly?
Does it happen only on /demo, or other URIs as well?
If it's easy to reproduce, tell us how, and I'm sure we'll figure it out.

Best regards,


Richard Thomas, Sep-03 02:43 (PDT):
My perl / Catalyst based app is getting a series of UWSGI errors all of sudden. I can see that the app is responding to requests correctly, but in the handing back to nginx it's dying:

(from the uwsgi.log, after calling http://6dc6f98c.dotcloud.com/demo)

[Sat Sep 3 09:23:03 2011] [info] *** Request 1 (0.001/s) [28108] [Sat Sep 3 09:23:03 2011] ***
[Sat Sep 3 09:23:03 2011] [debug] "GET" request for "demo" from "10.68.47.216"
[Sat Sep 3 09:23:03 2011] [debug] Path is "/"
[Sat Sep 3 09:23:03 2011] [debug] Arguments are "demo"
[Sat Sep 3 09:23:03 2011] [debug] Found sessionid "92b296e3f0377df5e94f490e5d78241ae825934a" in cookie
[Sat Sep 3 09:23:03 2011] [debug] args: demo
[Sat Sep 3 09:23:03 2011] [debug] Rendering template "start.tt"
args: 1 0x790470
type 2
DAMN ! worker 2 (pid: 28118) died :( trying respawn ...
Respawned uWSGI worker 2 (new pid: 28120)

Any suggestions most welcome!


=========

I never did post this to the Cat dev team (until now, of course!) because the impression I got was that the issue was on the dotcloud WSGI side, and would be fixed in due course.


cheers
RET
___________________________________________________
There are people that go through life thinking they hit a triple
when they were just born on third base.

Richard Thomas
ret [at] mac

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


h.staugaard at tweakker

Nov 2, 2011, 2:30 AM

Post #10 of 11 (1010 views)
Permalink
Re: Cat App on dotcloud [In reply to]

Hi All

I've uploaded a sample app to github, showing how to configure a
Catalyst 5.9 app on dotCloud.

https://github.com/hstaugaard/Catalyst-DotCloud

/Hans

On 11/01/11 11:27, Dermot wrote:
> On 1 November 2011 01:51, Richard Thomas <ret [at] mac> wrote:
>>> Does anyone have any experience of deploying a Cat App onto dotcloud?
>>> I have an cat app that works fine on my pc using the built-in server
>>> but doesn't work on dotcloud.
>> Hi Dermot,
>> I have a Catalyst-based app running successfully on DotCloud.
>>
>>> I have seen a couple of examples but seem to have come un-stuck. After
>>> creating my Cat app and the installing the dotcloud cli, I pushed my
>>> app thus:
>>> ...
>> There are a few gotchas that I encountered along the way.
>>
>> 1) I could never get Session::Store::FastMmap to compile on my dotcloud service, and eventually gave up and used Session::Store::File
>> 2) The latest versions of Catalyst (with built-in Plack) use a type of streaming that dotcloud's nginx-based service doesn't cope with. (Or didn't, at least, when my app exploded on upgrading Catalyst a few months back. This problem may now be solved.)
>> 3) One of the tutorials had a typo in the Makefile.PL that it took me a long time to figure out.
>>
>> What I suggest you do is ssh into your dotcloud www instance, and just run perl -MMoose -e 'say "OK";' and you'll quickly see whether Moose is available or not. Until I solved the problem referred to at (3) above, I had just installed everything via ssh, ie:
>>> ssh myapp.www
>> $ cpanm install Moose
>> $ cpanm install Catalyst
>> $ cpanm install Template
>>
>> etc. Eventually I was able to plackup my app via ssh. I couldn't connect to it, of course, but at least I knew it compiled OK.
>>
>> I see miyagawa has replied to your post on dotcloud's forum as well. Hope you solve it, dotcloud is an excellent platform.
> Wow lots of information there and back on the forum. I'll get busy
> tonight when I'm not at $work and see if I can push things along.
>
> Thanks for the advice.
> Dp.
>
> _______________________________________________
> List: Catalyst [at] lists
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
> Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


paikkos at googlemail

Nov 2, 2011, 1:31 PM

Post #11 of 11 (998 views)
Permalink
Re: Cat App on dotcloud [In reply to]

On 1 November 2011 14:54, Lindolfo Lorn Rodrigues <lorn [at] lornlab> wrote:
> Hi Dermot, I got the same issue and open a ticket in dotcloud and they
> answered:
>   Jérôme Petazzoni, Sep-05 21:46 (PDT):
>
>   Hi,
>
>   I remember that had a very similar issue when I tried to run Catalyst on
> DotCloud.
>   Assuming that you used Catalyst::Devel to generate a Catalyst app
> skeleton, did you run "perl Makefile.PL" locally, to generate meta.yml and
> the inc directory?
>


This has made a big difference. I never used `perl Makefile.PL`
because I usually deploy where I have control over the http server.
Once I did and pushed myapp, I got a lot more feedback. In the end (I
was missing of loads of dependencies hey!) my Makefile looked like
this:

requires 'Catalyst::Runtime' => '5.90003';
requires 'Catalyst::Devel';
requires 'Catalyst::Plugin::ConfigLoader';
requires 'Catalyst::Plugin::Authentication';
requires 'Catalyst::Plugin::Static::Simple';
requires 'Catalyst::Action::RenderView';
requires 'Catalyst::View::TT';
requires 'Catalyst::Model::DBIC::Schema';
requires 'DBIx::Class';
requires 'DBD::Pg';
requires 'DateTime';
requires 'DateTime::Format::Strptime';
requires 'DateTime::Format::Pg';
requires 'Moose';
requires 'MooseX::NonMoose'; # This one turned up for some reason
requires 'Data::Pager';
requires 'YAML';
requires 'namespace::autoclean';
#requires 'Template::Toolkit'; # This kept on re-installing.
requires 'Plack::Builder'; # thanks to Hans for these
two. Not sure if I need them but...
requires 'Plack::Middleware::BufferedStreaming';
requires 'Module::Install::Catalyst';
requires 'Config::General';
requires 'Plack' => 0.9974;


I was treated to this:

[info] KayLectric powered by Catalyst 5.90006
PSGI app (app.psgi) loaded at 0x3a65958
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 5330)
spawned uWSGI worker 1 (pid: 5331, cores: 1)
spawned uWSGI worker 2 (pid: 5332, cores: 1)
spawned uWSGI worker 3 (pid: 5333, cores: 1)
spawned uWSGI worker 4 (pid: 5334, cores: 1)

So a big thanks to all the responders. Best get off and respond to miyagawa.

Adios.

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.