Hi,

Congrats with the release!

I'm following the instructions on github, but have troubles trying to make a build with the command:

build/bin/phing -f build/phing/build.xml build

Execution of target "make:local" failed for the following reason: /var/www/govcms/build/phing/build.xml:287:38: Drush exited with code 1
[phingcall] /var/www/govcms/build/phing/build.xml:287:38: Drush exited with code 1
       [if] Error in IfTask
Execution of target "make" failed for the following reason: /var/www/govcms/build/phing/build.xml:225:12: Error in IfTask

I've tried it on several Linux machines and the outcome is always this. I would be very helpful to any directions towards solving this.
Cheers!

Comments

pkil’s picture

Hey barbun,

Can you please output here what you got from the command you need to run before the phing build command:
composer install --prefer-dist --working-dir=build

Hopefully we might be able to find something in there.

Thanks.

barbun’s picture

Hey pkil,

Thanks for your reply.
There were no errors while running this command (composer install --prefer-dist --working-dir=build), what I currently get is:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> PhantomInstaller\Installer::installPhantomJS
  - Installing phantomjs (1.9.8)
    Loading from cache

Don't think you can tell anything from this?:)

Btw, I'm running Ubuntu.

pkil’s picture

Migrated to https://github.com/govCMS/govCMS/issues/4 as per the Project Overview issue tracking

wiifm’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Status: Active » Closed (fixed)
barbun’s picture

Status: Closed (fixed) » Active

Thanks for your help!
However, still no luck. Now it fails a bit farther though :)

Calling install_drupal(Array) [0.17 sec, 7.84 MB]                                                                                                                           [debug]
exception 'Exception' with message 'Resolve all issues below to continue the installation. For help configuring your database server, see the <a                            [error]
href="http://drupal.org/getting-started/install">installation handbook</a>, or contact your hosting provider.<p class="error">Failed to connect to your database server.
The server reports the following message: <em>SQLSTATE[28000] [1045] Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: NO)</em>.<ul><li>Is
the database server running?</li><li>Does the database exist, and have you entered the correct database name?</li><li>Have you entered the correct username and
password?</li><li>Have you entered the correct database hostname?</li></ul></p>' in /var/www/govcms/docroot/includes/install.core.inc:415
Stack trace:
#0 /var/www/govcms/docroot/includes/install.core.inc(339): install_run_task(Array, Array)
#1 /var/www/govcms/docroot/includes/install.core.inc(77): install_run_tasks(Array)
#2 /var/www/govcms/build/vendor/drush/drush/includes/drush.inc(708): install_drupal(Array)
#3 /var/www/govcms/build/vendor/drush/drush/includes/drush.inc(694): drush_call_user_func_array('install_drupal', Array)
#4 /var/www/govcms/build/vendor/drush/drush/commands/core/drupal/site_install_7.inc(80): drush_op('install_drupal', Array)
#5 /var/www/govcms/build/vendor/drush/drush/commands/core/site_install.drush.inc(289): drush_core_site_install_version('govcms', Array)
#6 [internal function]: drush_core_site_install('govcms')
#7 /var/www/govcms/build/vendor/drush/drush/includes/command.inc(368): call_user_func_array('drush_core_site...', Array)
#8 /var/www/govcms/build/vendor/drush/drush/includes/command.inc(219): _drush_invoke_hooks(Array, Array)
#9 [internal function]: drush_command('govcms')
#10 /var/www/govcms/build/vendor/drush/drush/includes/command.inc(187): call_user_func_array('drush_command', Array)
#11 /var/www/govcms/build/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(62): drush_dispatch(Array)
#12 /var/www/govcms/build/vendor/drush/drush/drush.php(70): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#13 /var/www/govcms/build/vendor/drush/drush/drush.php(11): drush_main()
#14 {main} [0.61 sec, 20.56 MB]
Command dispatch complete [0.61 sec, 20.49 MB]                                                                                                                             [notice]
 Timer  Cum (sec)  Count  Avg (msec) 
 page   0.44       1      440.49
    [drush] You are about to create a /var/www/govcms/docroot/sites/default/settings.php file and CREATE the 'travis_ci_govcms_drupal' database. Do you want to continue? (y/n): y
    [drush]   ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Execution of target "install" failed for the following reason: /var/www/govcms/build/phing/build.xml:410:38: Drush exited with code 1

BUILD FAILED
/var/www/govcms/build/phing/build.xml:410:38: Drush exited with code 1
Total time: 9.8648 seconds

Then, as a workaround, I tried to set my root password to empty value, and got this:

Unable to send e-mail. Contact the site administrator if the problem persists. [77.66 sec, 103.69 MB]                                                                       [error]
Thank you for installing the Metatag module. It is recommended to read the module's README.txt file as there are some known issues that may affect this site. [77.66       [status]
sec, 103.69 MB]
Honeypot installed successfully. Please configure Honeypot to protect your forms from spam bots. [77.66 sec, 103.69 MB]                                                    [status]
To use menu blocks, find the "Add menu block" link on the administer blocks page. [77.66 sec, 103.69 MB]                                                                   [status]
Password policy module successfully installed. Please review the available configuration settings. [77.66 sec, 103.7 MB]                                                   [status]
Risky permissions have been automatically disabled. [77.66 sec, 103.7 MB]                                                                                                  [status]
To use Superfish go to the administer blocks page and enable a Superfish block. [77.66 sec, 103.7 MB]                                                                      [status]
Content permissions have been rebuilt. [77.66 sec, 103.7 MB]                                                                                                               [status]
The sitemap links were rebuilt. [77.66 sec, 103.7 MB]                                                                                                                      [status]
Content permissions have been rebuilt. [77.66 sec, 103.7 MB]                                                                                                               [status]
Command dispatch complete [77.66 sec, 103.65 MB]                                                                                                                           [notice]
 Timer                Cum (sec)  Count  Avg (msec) 
 page                 77.46      1      77459.91   
 drupal_http_request  0.188      90     2.085
    [drush] You are about to create a /var/www/govcms/docroot/sites/default/settings.php file and CREATE the 'travis_ci_govcms_drupal' database. Do you want to continue? (y/n): y
Execution of target "install" failed for the following reason: /var/www/govcms/build/phing/build.xml:410:38: Drush exited with code 1

BUILD FAILED
/var/www/govcms/build/phing/build.xml:410:38: Drush exited with code 1
Total time: 2 minutes  30.63 seconds

Also, I was expecting to specify the database and credentials myself, so I went to /build/phing/ and created build.properties based on the default.build.properties file that is already in there. Then when I try to:

../bin/phing build:no-clean

I get

Buildfile: /var/www/govcms/build/phing/build.xml
     [exec] 
     [exec] master
 [property] Loading /var/www/govcms/build/phing/build.properties

BUILD FAILED
Target 'build:no-clean' does not exist in this project.
Total time: 0.0893 seconds

And if I just run the usual build the build.properties file gets erased.

wiifm’s picture

Status: Active » Fixed

Hey @barbun, can you please transfer your comment to github, we are not going to use 2 issues trackers for govCMS ;) Your issue is here https://github.com/govCMS/govCMS/issues/4

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.