Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
assetic:dump on capifony gives ReflectionException
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matteo G  
View profile  
 More options Oct 9 2012, 11:49 am
From: Matteo G <matt...@gmail.com>
Date: Tue, 9 Oct 2012 08:49:03 -0700 (PDT)
Local: Tues, Oct 9 2012 11:49 am
Subject: assetic:dump on capifony gives ReflectionException

I'm trying to understand what lead to this problem, but I really don't know
where to look for...
I'm using symfony-standard on master, and capifony to deploy.

The problems shows up only when I'm using capifony, not on local machine,
with the assetic:dump command.

This is the really strange command that I got on capifony:

--> Updating code base with rsync_with_remote_cache strategy
--> Creating cache directory...........................✔
--> Creating symlinks for shared directories...........✔
--> Creating symlinks for shared files.................✔
--> Normalizing asset timestamps.......................✔
--> Downloading Composer...............................✔
--> Updating Composer dependencies.....................✔
--> Downloading Composer...............................✔
--> Dumping an optimized autoloader....................✔
--> Building bootstrap file............................✔
--> Installing bundle's assets.........................✔
--> Warming up cache...................................✔
--> Dumping all assets to the filesystem...............✘
*** [err :: preinternet]
*** [err :: preinternet]
*** [err :: preinternet]
*** [err :: preinternet] [ReflectionException]
*** [err :: preinternet] Class Vivacom\CargoBundle\Entity\string does not
exist
*** [err :: preinternet]
*** [err :: preinternet]
*** [err :: preinternet]
*** [deploy:update_code] rolling back
failed: "sh -c 'sh -c '\\''cd /var/www/cargo/releases/20121009154303 && php
app/console assetic:dump --env=prod --no-debug'\\'''" on preinternet

the same command that fails with capifony called locally works:

php app/console assetic:dump --env=prod --no-debug
Dumping all prod assets.
Debug mode is off.

17:46:20 [file+] /media/Dati/internet/cargo/app/../web/css/compiled/all.css
17:46:21 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/modernizr.js
17:46:21 [file+]
/media/Dati/internet/cargo/app/../web/images/compiled/tags/e-store.png
17:46:22 [file+]
/media/Dati/internet/cargo/app/../web/images/compiled/logo.png
17:46:22 [file+] /media/Dati/internet/cargo/app/../web/js/compiled/base.js
17:46:27 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/sottomenu.js
17:46:27 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/form_iscrizione.js
17:46:28 [file+]
/media/Dati/internet/cargo/app/../web/images/compiled/tags/collezioni.png
17:46:28 [file+] /media/Dati/internet/cargo/app/../web/js/compiled/tree.js
17:46:29 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/sonata_backend.js
17:46:33 [file+]
/media/Dati/internet/cargo/app/../web/css/compiled/cargo.css
17:46:34 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/sottomenu.js
17:46:35 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/combinazioni.js
17:46:36 [file+]
/media/Dati/internet/cargo/app/../web/css/compiled/ui-theme-lightness.css
17:46:36 [file+] /media/Dati/internet/cargo/app/../web/js/compiled/filtri.js
17:46:37 [file+]
/media/Dati/internet/cargo/app/../web/images/compiled/tags/collezioni.png
17:46:37 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/homepage.js
17:46:38 [file+]
/media/Dati/internet/cargo/app/../web/images/compiled/tags/le-voci.png
17:46:38 [file+]
/media/Dati/internet/cargo/app/../web/js/compiled/slideshow.js

tried with cap -d deploy and by viewing log files on the remote server. No
clues.

I really don't know where that "Class Vivacom\CargoBundle\Entity\string
does not exist" comes from.
The capifony recipe worked perfectly since 6 days ago, since than I didn't
make any deploy.
Today the problem shows up...

Any idea about what this could be? Or what can I do to debug this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matteo G  
View profile  
 More options Oct 9 2012, 12:19 pm
From: Matteo G <matt...@gmail.com>
Date: Tue, 9 Oct 2012 09:19:19 -0700 (PDT)
Local: Tues, Oct 9 2012 12:19 pm
Subject: Re: assetic:dump on capifony gives ReflectionException

I managed to reproduce the problem locally!
It's a cache problem, that occur only the first time after clearing the
cache....for example

./app/console --env=prod cache:clear
./app/console --env=prod --no-debug assetic:dump ERROR
./app/console --env=prod --no-debug assetic:dump OK

even manually:
rm -rf app/cache/*
./app/console --env=prod --no-debug assetic:dump ERROR
./app/console --env=prod --no-debug assetic:dump OK

and also:
rm -rf app/cache/*
./app/console --env=prod cache:warmup
./app/console --env=prod --no-debug assetic:dump ERROR
./app/console --env=prod --no-debug assetic:dump OK

Any idea? This is really strange....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matteo G  
View profile  
 More options Oct 9 2012, 4:13 pm
From: Matteo G <matt...@gmail.com>
Date: Tue, 9 Oct 2012 13:13:44 -0700 (PDT)
Local: Tues, Oct 9 2012 4:13 pm
Subject: Re: assetic:dump on capifony gives ReflectionException

another weird behavior with the --no-debug option

rm -rf app/cache/*
./app/console --env=prod --no-debug assetic:dump ERROR
[ReflectionException]                                  
  Class Vivacom\CargoBundle\Entity\string does not exist  

rm -rf app/cache/*
./app/console --env=prod assetic:dump OK

WTF?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matteo G  
View profile  
 More options Oct 10 2012, 3:53 am
From: Matteo G <matt...@gmail.com>
Date: Wed, 10 Oct 2012 00:53:43 -0700 (PDT)
Local: Wed, Oct 10 2012 3:53 am
Subject: Re: assetic:dump on capifony gives ReflectionException

could anybody that uses assetic please try to do:

./app/console --env=prod cache:clear
./app/console --env=prod --no-debug assetic:dump

and see if any errors pop up.
Many thanks in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matteo G  
View profile  
 More options Oct 10 2012, 8:47 am
From: Matteo G <matt...@gmail.com>
Date: Wed, 10 Oct 2012 05:47:48 -0700 (PDT)
Local: Wed, Oct 10 2012 8:47 am
Subject: Re: assetic:dump on capifony gives ReflectionException

it was my total fault. Sorry! :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francis Roux-Serret  
View profile  
 More options Nov 15 2012, 6:36 pm
From: Francis Roux-Serret <francis.roux.ser...@gmail.com>
Date: Thu, 15 Nov 2012 15:36:14 -0800 (PST)
Local: Thurs, Nov 15 2012 6:36 pm
Subject: Re: assetic:dump on capifony gives ReflectionException

Had the same and found out that one of the getter was

public function(string $param)

which we all know is BAD !! Should have done

/**
 * xxxxxx
 * @var string $param
 **/
public function($param)

And no more error !!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »