Git Product home page Git Product logo

Comments (5)

pnasrat avatar pnasrat commented on August 30, 2024

If I use become for the git task then it fails at:

TASK [dosomething.mb-node : MB Node | Install Apps] ****************************
failed: [default] (item={u'repo': u'https://github.com/DoSomething/mb-logging-api.git', u'name': u'mb-logging-api'}) => {"cmd": "/usr/bin/npm install", "failed": true, "item": {"name": "mb-logg
ing-api", "repo": "https://github.com/DoSomething/mb-logging-api.git"}, "msg": "", "rc": 243, "stderr": "npm WARN deprecated [email protected]: Please upgrade to 2.2.19 or higher\nnpm WARN checkPe
rmissions Missing write access to /var/www/mb-node/mb-logging-api\nnpm ERR! Linux 3.13.0-113-generic\nnpm ERR! argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\nnpm ERR! node v6.10.1\nnpm
ERR! npm  v3.10.10\nnpm ERR! path /var/www/mb-node/mb-logging-api\nnpm ERR! code EACCES\nnpm ERR! errno -13\nnpm ERR! syscall access\n\nnpm ERR! Error: EACCES: permission denied, access '/var/w
ww/mb-node/mb-logging-api'\nnpm ERR!     at Error (native)\nnpm ERR!  { Error: EACCES: permission denied, access '/var/www/mb-node/mb-logging-api'\nnpm ERR!     at Error (native)\nnpm ERR!   er
rno: -13,\nnpm ERR!   code: 'EACCES',\nnpm ERR!   syscall: 'access',\nnpm ERR!   path: '/var/www/mb-node/mb-logging-api' }\nnpm ERR! \nnpm ERR! Please try running this command again as root/Adm
inistrator.\nnpm ERR! Linux 3.13.0-113-generic\nnpm ERR! argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\nnpm ERR! node v6.10.1\nnpm ERR! npm  v3.10.10\nnpm ERR! path npm-debug.log.850731
36\nnpm ERR! code EACCES\nnpm ERR! errno -13\nnpm ERR! syscall open\n\nnpm ERR! Error: EACCES: permission denied, open 'npm-debug.log.85073136'\nnpm ERR!     at Error (native)\nnpm ERR!  { Erro
r: EACCES: permission denied, open 'npm-debug.log.85073136'\nnpm ERR!     at Error (native)\nnpm ERR!   errno: -13,\nnpm ERR!   code: 'EACCES',\nnpm ERR!   syscall: 'open',\nnpm ERR!   path: 'n
pm-debug.log.85073136' }\nnpm ERR! \nnpm ERR! Please try running this command again as root/Administrator.\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR!
/var/www/mb-node/mb-logging-api/npm-debug.log\n", "stdout": "[email protected] /var/www/mb-node/mb-logging-api\n├─┬ [email protected] \n│ ├── [email protected] \n│ ├─┬ [email protected] \n│ │ ├── bytes@
1.0.0 \n│ │ └── [email protected] \n│ └─┬ [email protected] \n│   └── [email protected] \n├─┬ [email protected] \n│ ├─┬ [email protected] \n│ │ └── [email protected] \n│ ├── [email protected] \n│ ├── cookie
@0.1.0 \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├── path
[email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├─┬ [email protected] \n│ │ └─┬ [email protected] \n│ │   ├── [email protected] \n│ │   └── [email protected] \n│ ├── [email protected] \n│ └
── [email protected] \n├─┬ [email protected] \n│ └── [email protected] \n├─┬ [email protected] \n│ ├── [email protected] \n│ ├─┬ [email protected] \n│ │ ├─┬ [email protected] \n│ │ │ └── [email protected] \n│ │ ├──
 [email protected] \n│ │ └─┬ [email protected] \n│ │   ├── [email protected] \n│ │   ├── [email protected] \n│ │   ├── [email protected] \n│ │   ├── [email protected] \n│ │   ├── process-nextick-a
[email protected] \n│ │   └── [email protected] \n│ ├── [email protected] \n│ ├── [email protected] \n│ ├─┬ [email protected] \n│ │ ├── [email protected] \n│ │ └─┬ [email protected] \n│ │   └── [email protected] \n│ ├── [email protected]
 \n│ ├── [email protected] \n│ ├── [email protected] \n│ └── [email protected] \n└─┬ [email protected] \n  ├── [email protected] \n  ├─┬ [email protected] \n  │ └── [email protected] \n  ├── [email protected] \n  ├─┬ [email protected]
.0 \n  │ └── [email protected] \n  └── [email protected] \n\n", "stdout_lines": ["[email protected] /var/www/mb-node/mb-logging-api", "├─┬ [email protected] ", "│ ├── [email protected] ", "│ ├─┬ raw-body
@1.1.7 ", "│ │ ├── [email protected] ", "│ │ └── [email protected] ", "│ └─┬ [email protected] ", "│   └── [email protected] ", "├─┬ [email protected] ", "│ ├─┬ [email protected] ", "│ │ └── [email protected] ", "
│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│
├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├─┬ [email protected] ", "│ │ └─┬ [email protected] ", "│ │   ├── fre
[email protected] ", "│ │   └── [email protected] ", "│ ├── [email protected] ", "│ └── [email protected] ", "├─┬ [email protected] ", "│ └── [email protected] ", "├─┬ [email protected] ", "│ ├── hooks@0
.2.1 ", "│ ├─┬ [email protected] ", "│ │ ├─┬ [email protected] ", "│ │ │ └── [email protected] ", "│ │ ├── [email protected] ", "│ │ └─┬ [email protected] ", "│ │   ├── [email protected] ", "│ │   ├── core-u
[email protected] ", "│ │   ├── [email protected] ", "│ │   ├── [email protected] ", "│ │   ├── [email protected] ", "│ │   └── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected]
", "│ ├─┬ [email protected] ", "│ │ ├── [email protected] ", "│ │ └─┬ [email protected] ", "│ │   └── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ ├── [email protected] ", "│ └── [email protected] ",
 "└─┬ [email protected] ", "  ├── [email protected] ", "  ├─┬ [email protected] ", "  │ └── [email protected] ", "  ├── [email protected] ", "  ├─┬ [email protected] ", "  │ └── [email protected] ", "  └── [email protected] "
, ""]}

from tower.

pnasrat avatar pnasrat commented on August 30, 2024

Discussed in slack mb-* is obsolete - see DoSomething/devops#257

from tower.

pnasrat avatar pnasrat commented on August 30, 2024

Further failure

/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"     install 'nginx'
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxslt1.1 nginx-common nginx-core
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  nginx
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/773 kB of archives.
After this operation, 2,755 kB of additional disk space will be used.
(Reading database ... 76393 files and directories currently installed.)
Preparing to unpack .../nginx_1.11.12-1~trusty_amd64.deb ...
Unpacking nginx (1.11.12-1~trusty) over (1.4.6-1ubuntu3.7) ...
dpkg: error processing archive /var/cache/apt/archives/nginx_1.11.12-1~trusty_amd64.deb (--unpack):
 trying to overwrite '/etc/default/nginx', which is also in package nginx-common 1.4.6-1ubuntu3.7
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nginx_1.11.12-1~trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

from tower.

pnasrat avatar pnasrat commented on August 30, 2024

@blisteringherb what's the desired version and origin of nginx running in production - does it vary at all? Trying to understand the interplay between using the ubuntu packages and the nginx.org ones here.

from tower.

blisteringherb avatar blisteringherb commented on August 30, 2024

We've got nginx 1.4.6 (Ubuntu) running for some Laravel apps, and 1.11.9 on Northstar. We should probably be running the latest 1.11.9 on all apps since it seems to work OK.

from tower.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.