Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8051869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:24:03+00:00 2026-06-05T07:24:03+00:00

I am trying to move my development environment (symfony2 application) from my windows 7

  • 0

I am trying to move my development environment (symfony2 application) from my windows 7 localhost to a virtual machine using vagrant and the default ubuntu 10.04 64 bit machine. Everything is set up and it almost works, but there is one thing bothering me:

When I run ant and it executes phpunit, I get the following error while executing my selfmade bootstrap:

stty: standard input: Invalid argument

I could narrow the problem down to the following line of code, which executes the symfony cache:warmup command:

executeCommand($application, "cache:warmup");

This executes the following command:

php app/console -e test -q cache:warmup

Running phpunit without ant works fine, so does running ant without the executeCommand line.

I read a bit about this stty error and looked up ~/.bashrc, ~./profile, /etc/bash.bashrc, /etc/profile as well as /root/.bashrc and /root/.profile without finding anything like tty or stty. SO I don’t know what I could delete to make it work.

I am a bit stuck as I need the cache warmup and cannot figure out what is going wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:24:04+00:00Added an answer on June 5, 2026 at 7:24 am

    This took a while to figure out, but I now got it.

    For some reason, the options passed to the symfony2 application object causeing the issue only when run by ant.
    I don’t have any insight on what causes it, but changing the command to this fixes the issue:

    php app/console --env=test --quiet cache:warmup
    

    As this is only the long form and does not change anything, I’m very happy. My whole executeCommand function looks like this:

    function executeCommand($application, $command, Array $options = array()) {
        $options["--env"] = "test";
        $options["--quiet"] = true;
        $options = array_merge($options, array('command' => $command));
    
        $application->run(new ArrayInput($options));
    }
    

    The only lines changes are 2 and 3 where the key for the array was changed from -eand -q. I hope this helps one or another who struggles with an issue like this!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to move a development environment from production to my local machine
I'm trying to move my database.mdf file from a development environment to a SQL
I'm from a php environment and trying to move to Tomcat/jsp. I'm used to
Trying to move some divs using hover, this is my markup: <div class=item dark-grey>
Im trying to move data from one table to another because the needs of
I'm trying to move a table into SQL Azure using SSIS. I have an
I'm trying to move snapshots of data from our MongoDB into our Oracle BI
I am trying to move a single file (call it foo.txt) from one repository
I'm trying to move a rather complex app to Extjs. In our current application
I am currently trying to set up a development environment for learning Ruby. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.