composer not found error on journal deploy

5 views
Skip to first unread message

Jennifer Strejevitch

unread,
Aug 14, 2017, 7:52:39 AM8/14/17
to elife-continuum-list
When does composer get added?

./bldr deploy:journal,prod

(...)


[54.165.110.217] out:                    * Reloading nginx configuration nginx
[54.165.110.217] out:                      ...done.
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-repository
[54.165.110.217] out:     Function: builder.git_latest
[54.165.110.217] out:         Name: g...@github.com:elifesciences/journal.git
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: The following requisites were not found:
[54.165.110.217] out:                                  require:
[54.165.110.217] out:                                      cmd: composer
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-repository
[54.165.110.217] out:     Function: file.directory
[54.165.110.217] out:         Name: /srv/journal
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.journal-repository
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: config-file
[54.165.110.217] out:     Function: file.managed
[54.165.110.217] out:         Name: /srv/journal/app/config/parameters.yml
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.journal-repository
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: var-directory
[54.165.110.217] out:     Function: file.directory
[54.165.110.217] out:         Name: /srv/journal/var
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.journal-repository
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: var-directory
[54.165.110.217] out:     Function: cmd.run
[54.165.110.217] out:         Name: chmod -R g+s /srv/journal/var
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.var-directory
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: npm-build-dependencies
[54.165.110.217] out:     Function: pkg.installed
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: 4 targeted packages were installed/updated.
[54.165.110.217] out:      Started: 11:36:04.994430
[54.165.110.217] out:     Duration: 3730.519 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               c++-compiler:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       1
[54.165.110.217] out:                   old:
[54.165.110.217] out:               c++abi2-dev:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       1
[54.165.110.217] out:                   old:
[54.165.110.217] out:               g++:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       4:4.8.2-1ubuntu6
[54.165.110.217] out:                   old:
[54.165.110.217] out:               g++-4.8:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       4.8.4-2ubuntu1~14.04.3
[54.165.110.217] out:                   old:
[54.165.110.217] out:               libjpeg-progs:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       1
[54.165.110.217] out:                   old:
[54.165.110.217] out:               libjpeg-turbo-progs:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       1.3.0-0ubuntu2
[54.165.110.217] out:                   old:
[54.165.110.217] out:               libstdc++-4.8-dev:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       4.8.4-2ubuntu1~14.04.3
[54.165.110.217] out:                   old:
[54.165.110.217] out:               libstdc++-dev:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       1
[54.165.110.217] out:                   old:
[54.165.110.217] out:               make:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       3.81-8.2ubuntu3
[54.165.110.217] out:                   old:
[54.165.110.217] out:               optipng:
[54.165.110.217] out:                   ----------
[54.165.110.217] out:                   new:
[54.165.110.217] out:                       0.6.4-1ubuntu0.14.04.1
[54.165.110.217] out:                   old:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-npm-install
[54.165.110.217] out:     Function: cmd.run
[54.165.110.217] out:         Name: npm install
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.journal-repository
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-node-modules-manual-install
[54.165.110.217] out:     Function: cmd.run
[54.165.110.217] out:         Name: node node_modules/mozjpeg/lib/install.js
[54.165.110.217] out: node node_modules/optipng-bin/lib/install.js
[54.165.110.217] out:
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.journal-npm-install
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: composer-install
[54.165.110.217] out:     Function: cmd.run
[54.165.110.217] out:         Name: composer --no-interaction install --no-suggest --classmap-authoritative
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.config-file, journal.var-directory
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-nginx-redirect-existing-paths
[54.165.110.217] out:     Function: file.managed
[54.165.110.217] out:         Name: /etc/nginx/traits.d/redirect-existing-paths.conf
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: File /etc/nginx/traits.d/redirect-existing-paths.conf updated
[54.165.110.217] out:      Started: 11:36:08.734639
[54.165.110.217] out:     Duration: 98.291 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               diff:
[54.165.110.217] out:                   New file
[54.165.110.217] out:               mode:
[54.165.110.217] out:                   0644
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-nginx-robots
[54.165.110.217] out:     Function: file.managed
[54.165.110.217] out:         Name: /etc/nginx/traits.d/robots.conf
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: File /etc/nginx/traits.d/robots.conf updated
[54.165.110.217] out:      Started: 11:36:08.833628
[54.165.110.217] out:     Duration: 12.338 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               diff:
[54.165.110.217] out:                   New file
[54.165.110.217] out:               mode:
[54.165.110.217] out:                   0644
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: journal-nginx-vhost
[54.165.110.217] out:     Function: file.managed
[54.165.110.217] out:         Name: /etc/nginx/sites-available/journal.conf
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: File /etc/nginx/sites-available/journal.conf updated
[54.165.110.217] out:      Started: 11:36:08.847957
[54.165.110.217] out:     Duration: 46.395 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               diff:
[54.165.110.217] out:                   New file
[54.165.110.217] out:               mode:
[54.165.110.217] out:                   0644
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: running-gulp
[54.165.110.217] out:     Function: cmd.script
[54.165.110.217] out:         Name: retrying-gulp
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.composer-install, journal.journal-node-modules-manual-install, journal.journal-npm-install
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: maintenance-mode-end
[54.165.110.217] out:     Function: cmd.run
[54.165.110.217] out:         Name: ln -s /etc/nginx/sites-available/journal.conf /etc/nginx/sites-enabled/journal.conf
[54.165.110.217] out: /etc/init.d/nginx reload
[54.165.110.217] out:
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.running-gulp
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: maintenance-mode-check-nginx-stays-up
[54.165.110.217] out:     Function: cmd.run
[54.165.110.217] out:         Name: sleep 2 && /etc/init.d/nginx status
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.maintenance-mode-end
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: syslog-ng-for-journal-logs
[54.165.110.217] out:     Function: file.managed
[54.165.110.217] out:         Name: /etc/syslog-ng/conf.d/journal.conf
[54.165.110.217] out:       Result: False
[54.165.110.217] out:      Comment: One or more requisite failed: journal.composer-install
[54.165.110.217] out:      Changes:
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: logrotate-for-journal-logs
[54.165.110.217] out:     Function: file.managed
[54.165.110.217] out:         Name: /etc/logrotate.d/journal
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: File /etc/logrotate.d/journal updated
[54.165.110.217] out:      Started: 11:36:08.898339
[54.165.110.217] out:     Duration: 10.3 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               diff:
[54.165.110.217] out:                   New file
[54.165.110.217] out:               mode:
[54.165.110.217] out:                   0644
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: listener_syslog-ng
[54.165.110.217] out:     Function: service.mod_watch
[54.165.110.217] out:         Name: syslog-ng
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: Service reloaded
[54.165.110.217] out:      Started: 11:36:09.291667
[54.165.110.217] out:     Duration: 40.844 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               syslog-ng:
[54.165.110.217] out:                   True
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: listener_nginx-server-service
[54.165.110.217] out:     Function: service.mod_watch
[54.165.110.217] out:         Name: nginx
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: Service restarted
[54.165.110.217] out:      Started: 11:36:09.332882
[54.165.110.217] out:     Duration: 1041.7 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               nginx:
[54.165.110.217] out:                   True
[54.165.110.217] out: ----------
[54.165.110.217] out:           ID: listener_redis-server
[54.165.110.217] out:     Function: service.mod_watch
[54.165.110.217] out:         Name: redis-server
[54.165.110.217] out:       Result: True
[54.165.110.217] out:      Comment: Service restarted
[54.165.110.217] out:      Started: 11:36:10.374926
[54.165.110.217] out:     Duration: 1127.305 ms
[54.165.110.217] out:      Changes:
[54.165.110.217] out:               ----------
[54.165.110.217] out:               redis-server:
[54.165.110.217] out:                   True
[54.165.110.217] out:
[54.165.110.217] out: Summary for local
[54.165.110.217] out: --------------
[54.165.110.217] out: Succeeded: 107 (changed=89)
[54.165.110.217] out: Failed:     12
[54.165.110.217] out: --------------
[54.165.110.217] out: Total states run:     119
[54.165.110.217] out: Total run time:   273.010 s
[54.165.110.217] out: Error provisioning, state.highstate returned: 2
[54.165.110.217] out:

2017-08-14 12:36:12,088 - ERROR - 54.165.110.217 - buildercore.core - sudo() received nonzero return code 2 while executing!        Requested: /bin/bash /tmp/highstate.sh-20170814123132    Executed: sudo -S -p 'sudo password:'  /bin/bash -l -c "/bin/bash /tmp/highstate.sh-20170814123132"

Traceback (most recent call last):
  File "/Users/jen.strejevitch/Projects/de-elife/builder/venv/lib/python2.7/site-packages/fabric/main.py", line 745, in main
    *args, **kwargs
  File "/Users/jen.strejevitch/Projects/de-elife/builder/venv/lib/python2.7/site-packages/fabric/tasks.py", line 427, in execute
    results['<local-only>'] = task.run(*args, **new_kwargs)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/venv/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run
    return self.wrapped(*args, **kwargs)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/decorators.py", line 58, in wrap2
    return func(pname, *args, **kwargs)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/decorators.py", line 155, in _wrapper
    res = func(*args, **kwargs)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/decorators.py", line 20, in wrap
    result = fn(*args, **kw)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/deploy.py", line 47, in deploy
    bootstrap.create_update(stackname, part_filter)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/decorators.py", line 19, in _wrapper
    return func(stackname, *args, **kwargs)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/bootstrap.py", line 408, in create_update
    update_stack(stackname, part_filter)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/decorators.py", line 19, in _wrapper
    return func(stackname, *args, **kwargs)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/bootstrap.py", line 400, in update_stack
    [fn(stackname) for fn in subdict(service_update_fns, service_list).values()]
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/bootstrap.py", line 391, in <lambda>
    ('ec2', lambda stackname: update_ec2_stack(stackname, concurrency)),
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/bootstrap.py", line 461, in update_ec2_stack
    stack_all_ec2_nodes(stackname, _update_ec2_node, username=BOOTSTRAP_USER, concurrency=concurrency)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/core.py", line 275, in stack_all_ec2_nodes
    return parallel_work(single_node_work, params)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/src/buildercore/core.py", line 288, in parallel_work
    return execute(parallel(single_node_work), hosts=params['public_ips'].values())
  File "/Users/jen.strejevitch/Projects/de-elife/builder/venv/lib/python2.7/site-packages/fabric/tasks.py", line 421, in execute
    error(err)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/venv/lib/python2.7/site-packages/fabric/utils.py", line 358, in error
    return func(message)
  File "/Users/jen.strejevitch/Projects/de-elife/builder/venv/lib/python2.7/site-packages/fabric/utils.py", line 54, in abort
    raise env.abort_exception(msg)
buildercore.config.FabricException: One or more hosts failed while executing task 'single_node_work'

Giorgio Sironi

unread,
Aug 14, 2017, 8:39:09 AM8/14/17
to Jennifer Strejevitch, elife-continuum-list
It was previously in elife/php7.sls but has now been extracted, see this change:
https://github.com/elifesciences/journal-formula/commit/dc05b34da0f0647e676b7b86163129fdc8a08718
This needs to be update in your builder-private/salt/top.sls, I'll update builder-private-example too.

--
You received this message because you are subscribed to the Google Groups "elife-continuum-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elife-continuum-list+unsub...@googlegroups.com.
To post to this group, send email to elife-continuum-list@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elife-continuum-list/daf43c47-deb5-4d9a-bf05-89ac32ffa20e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Giorgio Sironi
@giorgiosironi
Reply all
Reply to author
Forward
0 new messages