Re: [symfony-users] Can't build anything after project:deploy
Hi Romain, Which version of symfony you are using. Is ok your DB connection? This is a common problem that happen after the deploy to the prod server. Bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Can't build anything after project:deploy
Hi, Sorry I'm using Symfony 1.4... My database access are correct because I can connect to my db server when I try a mysql -u Le 28 janv. 2010 à 17:57, Augusto Flavio a écrit : Hi Romain, Which version of symfony you are using. Is ok your DB connection? This is a common problem that happen after the deploy to the prod server. Bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Can't build anything after project:deploy
I had a similar problem too with the symfomy's deployment. Not building the classes but in deployment. The symfony's interface of rsync doenst clear the buffer in *sfProjectDeployTask at the moment that the rsync is executed. *The fix is only clear the outbuffer before execute the rsync command. I create a ticket that can be check here: http://trac.symfony-project.org/ticket/8177 Maybe the problem are the permissions. Have you sure that its ok? chmod 755 -R /project/* ./symfony project:permissions Whether it not resolve your problem try to find the yml not found when you run the builder. Bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Can't build anything after project:deploy
According to some tests, I don't have /tmp folder on this server, but this is where php is supposed to create tmp files, do you think this could come from there? The fact that php doesn't find this yml file ? Le 28 janv. 2010 à 18:21, Augusto Flavio a écrit : I had a similar problem too with the symfomy's deployment. Not building the classes but in deployment. The symfony's interface of rsync doenst clear the buffer in sfProjectDeployTask at the moment that the rsync is executed. The fix is only clear the outbuffer before execute the rsync command. I create a ticket that can be check here: http://trac.symfony-project.org/ticket/8177 Maybe the problem are the permissions. Have you sure that its ok? chmod 755 -R /project/* ./symfony project:permissions Whether it not resolve your problem try to find the yml not found when you run the builder. Bye Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Can't build anything after project:deploy
No. I don't have /tmp folder on my prod server too and the project works fine. Have you sure that all files is sync with the dev environment (dev server)? Did you fix the permissions? Check whether the sql file correctly. To do it run only the sql schema. ./symfony doctrine:build-sql ./symfony doctrine:insert-sql And tell me what is going on. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Can't build anything after project:deploy
build-sql works fine insert-sql throws me an error : -bash-3.2$ php ./symfony doctrine:insert-sql doctrine created tables successfully SQLSTATE[HY000]: General error: 1005 Can't create table './communau/#sql-66c9_784339.frm' (errno: 150). Failing Query: ALTER TABLE noe_poll_question ADD CONSTRAINT noe_poll_question_question_id_noe_poll_id FOREIGN KEY (question_id) REFERENCES noe_poll(id) ON DELETE CASCADE. Failing Query: ALTER TABLE noe_poll_question ADD CONSTRAINT noe_poll_question_question_id_noe_poll_id FOREIGN KEY (question_id) REFERENCES noe_poll(id) ON DELETE CASCADE On the other hand, I configured my databases.yml file so I can connect to prod database from dev environment (juste for testing ;)), and I do have a permission issue : -bash-3.2$ php symfony doctrine:build --all --env=dev --no-confirmation doctrine Dropping doctrine database doctrine Creating dev environment doctrine database doctrine generating model classes file+ /doctrine_schema_14027.yml Warning: file_put_contents(/doctrine_schema_14027.yml): failed to open stream: Permission denied in /communau/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBaseTask.class.php on line 183 Invalid schema element named 0 at path Warning At this line, I do have a reference to my tmp dir (as doctrine is using sys_get_temp_dir()) $file = realpath(sys_get_temp_dir()).'/doctrine_schema_'.rand(1, 9).'.yml'; $this-logSection('file+', $file); file_put_contents($file, sfYaml::dump($models, 4)); Problem is, we can't change the permissions on that folder, we have to ask our client's... That's my problem, right ? Le 28 janv. 2010 à 20:07, Augusto Flavio a écrit : No. I don't have /tmp folder on my prod server too and the project works fine. Have you sure that all files is sync with the dev environment (dev server)? Did you fix the permissions? Check whether the sql file correctly. To do it run only the sql schema. ./symfony doctrine:build-sql ./symfony doctrine:insert-sql And tell me what is going on. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Can't build anything after project:deploy
Yes Romain. You need have permission to access your temp dir. Ask then to your client. Bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.