Problem with setting up a production environment

920 views
Skip to first unread message

Leonardo Mario Martinez

unread,
Oct 16, 2014, 2:48:54 PM10/16/14
to tai...@googlegroups.com
I tried to set up a production environment using this doc http://taigaio.github.io/taiga-doc/dist/setup-production.html.

Except the configuration needed to download trough a proxy everything goes right until step 4.1.2 with the section:

Install all dependencies needed for run gulp and compile taiga-front

npm install bower install

You must use sudo npm install to correct install.

the bower install command show an error when executed with or without sudo. The error is:

/usr/bin/env: node: No such file or directory

To solve this you must create a symbolic link:

ln -s /usr/bin/nodejs /usr/bin/node

I hope this may help others.

Greetings.

Leonardo Martinez

Andrey Antukh

unread,
Oct 16, 2014, 5:35:58 PM10/16/14
to Leonardo Mario Martinez, tai...@googlegroups.com
Hi Leonardo.

Thank for you suggestion, but that concrete step should work properly with normal user (without sudo).

I have tested it, previously publish the documentation. Also we have scripts that uses the same sentences as in documentation: https://github.com/taigaio/taiga-vagrant  and https://github.com/taigaio/taiga-scripts that uses that sentences without sudo: https://github.com/taigaio/taiga-scripts/blob/master/scripts/setup-frontend.sh#L31

The documentation is only tested with clean virtual image of ubuntu 14.04. Are you using other version of ubuntu or other linux distribution?

Thanks.


Greetings.
Andrey

--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/2493792b-0313-47ce-bbd9-eaa3a276c582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Leonardo Mario Martinez

unread,
Oct 17, 2014, 8:59:04 AM10/17/14
to tai...@googlegroups.com, leonardo....@gmail.com
El jueves, 16 de octubre de 2014 18:35:58 UTC-3, Andrei Antoukh escribió:
Hi Leonardo.

Thank for you suggestion, but that concrete step should work properly with normal user (without sudo).
I have tested it, previously publish the documentation. Also we have scripts that uses the same sentences as in documentation: https://github.com/taigaio/taiga-vagrant  and https://github.com/taigaio/taiga-scripts that uses that sentences without sudo: https://github.com/taigaio/taiga-scripts/blob/master/scripts/setup-frontend.sh#L31

The documentation is only tested with clean virtual image of ubuntu 14.04. Are you using other version of ubuntu or other linux distribution?

I'm using a fresh an updated VM of Ubuntu Server 14.04 (not Ubuntu Desktop) behind a proxy.

The server is now working perfectly.

Greetings.

Leonardo


parix...@gmail.com

unread,
Oct 29, 2014, 12:35:24 PM10/29/14
to tai...@googlegroups.com, leonardo....@gmail.com
I am having the same issue.  The install gets stuck at 4.1.2.  I did Leo's fix but now I am getting an error when I gulp deploy:
taiga@taiga:~/taiga-front$ gulp deploy
[12:31:40] Requiring external module coffee-script/register

Error: Cannot find module 'jade'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/home/taiga/taiga-front/node_modules/gulp-jade/index.js:4:15)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (/home/taiga/taiga-front/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/home/taiga/taiga-front/gulpfile.coffee:2:8)
  at Object.<anonymous> (/home/taiga/taiga-front/gulpfile.coffee:1:1)
  at Module._compile (module.js:456:26)
  at Object.loadFile (/home/taiga/taiga-front/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
  at Module.load (/home/taiga/taiga-front/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
  at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:159:12)
  at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)
  at Liftoff.launch (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:152:5)
  at Object.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:67:5)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:497:10)
  at startup (node.js:119:16)
  at node.js:902:3

Andrey Antukh

unread,
Oct 29, 2014, 12:40:39 PM10/29/14
to parix...@gmail.com, tai...@googlegroups.com, Leonardo Mario Martinez
Hi!

Seems that you does not have installed node dependencies.

Try run `npm install in the same directory and after that, try again the `gulp deploy`

Greetings.
Andrey


For more options, visit https://groups.google.com/d/optout.

parix...@gmail.com

unread,
Oct 29, 2014, 1:41:12 PM10/29/14
to tai...@googlegroups.com, parix...@gmail.com, leonardo....@gmail.com
Thank  you Andrey for the reply.

When I run npm install from ~/taiga-front, I am not getting the following:


taiga@taiga:~/taiga-front$ npm install
npm WARN package.json Tai...@0.0.1 No repository field.
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-coffeelint requires gulp-util@'^3.0.0' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-util,
npm WARN unmet dependency which is version 2.2.20
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-csslint requires gulp-util@'^3.0.0' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-util,
npm WARN unmet dependency which is version 2.2.20
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-jade requires through2@'~0.4' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/through2,
npm WARN unmet dependency which is version 0.6.3
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-minify-html requires through2@'^0.5.1' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/through2,
npm WARN unmet dependency which is version 0.6.3
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-uglify requires through2@'~0.4.0' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/through2,
npm WARN unmet dependency which is version 0.6.3
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-changed/node_modules/gulp-util requires through2@'^0.6.1' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-changed/node_modules/through2,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-template/node_modules/gulp-util requires through2@'^0.6.1' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-template/node_modules/through2,
npm WARN unmet dependency which is version 0.5.1

Leonardo Mario Martinez

unread,
Oct 29, 2014, 2:04:21 PM10/29/14
to parix...@gmail.com, tai...@googlegroups.com
As I wrote in my first mail, I needed to run 'npm install' and 'bower install' with sudo.



Leonardo M. Martinez

===

"La única manera de descubrir los límites de lo posible es aventurarse hacia lo imposible."
Segunda ley de Clarke

parix...@gmail.com

unread,
Oct 29, 2014, 2:24:12 PM10/29/14
to tai...@googlegroups.com, parix...@gmail.com
Yes, I have done that to run them with sudo 

Andrey Antukh

unread,
Oct 30, 2014, 4:20:03 AM10/30/14
to Parixit Davé, tai...@googlegroups.com
Hi!

npm install should not be run with sudo! Becuase it should install dependencies locally with user permission.

try the solution purposed here: http://stackoverflow.com/a/20765400/1022392

Greetings
Andrey


For more options, visit https://groups.google.com/d/optout.

parix...@gmail.com

unread,
Nov 3, 2014, 3:47:54 PM11/3/14
to tai...@googlegroups.com, parix...@gmail.com
I am getting the following:

taiga@taiga:~/taiga-front$ npm install findu...@0.1.2
npm WARN package.json Tai...@0.0.1 No repository field.
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-coffeelint requires gulp-util@'^3.0.0' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-util,
npm WARN unmet dependency which is version 2.2.20
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-csslint requires gulp-util@'^3.0.0' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-util,
npm WARN unmet dependency which is version 2.2.20
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-jade requires through2@'~0.4' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/through2,
npm WARN unmet dependency which is version 0.6.3
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-minify-html requires through2@'^0.5.1' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/through2,
npm WARN unmet dependency which is version 0.6.3
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-uglify requires through2@'~0.4.0' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/through2,
npm WARN unmet dependency which is version 0.6.3
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-changed/node_modules/gulp-util requires through2@'^0.6.1' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-changed/node_modules/through2,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-template/node_modules/gulp-util requires through2@'^0.6.1' but will load
npm WARN unmet dependency /home/taiga/taiga-front/node_modules/gulp-template/node_modules/through2,
npm WARN unmet dependency which is version 0.5.1
findu...@0.1.2 node_modules/findup-sync
├── gl...@3.1.21 (inhe...@1.0.0, grace...@1.2.3, mini...@0.2.14)
└── lod...@1.0.1
taiga@taiga:~/taiga-front$ bower install
taiga@taiga:~/taiga-front$ vi ~/taiga-front/conf/main.json
taiga@taiga:~/taiga-front$ cd ~/taiga-front/
taiga@taiga:~/taiga-front$ gulp deploy
[15:47:05] Requiring external module coffee-script/register

Alejandro Alonso

unread,
Nov 4, 2014, 3:30:14 AM11/4/14
to parix...@gmail.com, tai...@googlegroups.com
I was having a similar problem and I did the following:
cd ~/taiga-front/
rm -rf ~/.npm; rm -rf node_modules 
npm install
bower install
gulp deploy

And worked ok. I also tried a fresh vagrant install and worked fine.




For more options, visit https://groups.google.com/d/optout.



--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

parix...@gmail.com

unread,
Nov 4, 2014, 8:49:07 AM11/4/14
to tai...@googlegroups.com, parix...@gmail.com
Thank you Alejandro.  Below is what I get when I run your commands:

taiga@taiga:~/taiga-front$ npm install
npm WARN package.json Tai...@0.0.1 No repository field.
npm WARN deprecated gulp-...@0.2.4: use gulp-rimraf instead
npm ERR! Error: EACCES, mkdir '/home/taiga/tmp/npm-9855-H_ccCosm'
npm ERR!  { [Error: EACCES, mkdir '/home/taiga/tmp/npm-9855-H_ccCosm']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/home/taiga/tmp/npm-9855-H_ccCosm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/taiga/taiga-front
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/taiga/tmp/npm-9855-H_ccCosm
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/taiga/tmp/npm-9855-H_ccCosm'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/taiga/taiga-front/npm-debug.log
npm ERR! not ok code 0
taiga@taiga:~/taiga-front$ bower install
taiga@taiga:~/taiga-front$ gulp deploy
[08:47:23] Failed to load external module coffee-script/register
[08:47:23] Local gulp not found in ~/taiga-front
[08:47:23] Try running: npm install gulp

Alejandro Alonso

unread,
Nov 4, 2014, 9:02:55 AM11/4/14
to Parixit Davé, tai...@googlegroups.com
Could you try to execute my commands again but this time after a "sudo rm -rf /home/taiga/tmp"?

parix...@gmail.com

unread,
Nov 4, 2014, 9:13:28 AM11/4/14
to tai...@googlegroups.com, parix...@gmail.com
Great! That worked perfectly!  Can the docs locate at:http://taigaio.github.io/taiga-doc/dist/setup-production.html be updated with the fixes?

Here is the Ubuntu version I am using:
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

parix...@gmail.com

unread,
Nov 4, 2014, 10:09:08 AM11/4/14
to tai...@googlegroups.com, parix...@gmail.com
Ok - I have everything up and running, thank you for making such awesome software!  

The only thing, I would add to the docs is to install nginx.  My version of Ubuntu did not have it installed.  Everything else went smoothly.

Thank you!! 

Alejandro Alonso

unread,
Nov 4, 2014, 10:19:00 AM11/4/14
to Parixit Davé, tai...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

parix...@gmail.com

unread,
Nov 4, 2014, 1:50:37 PM11/4/14
to tai...@googlegroups.com, parix...@gmail.com
I am getting a:
2014/11/04 13:45:52 [error] 12212#0: *1 connect() failed (111: Connection refused) while connecting to upstream

when I try to register a new user or log in as the default admin account.

Andrey Antukh

unread,
Nov 5, 2014, 11:36:00 AM11/5/14
to Parixit Davé, tai...@googlegroups.com
Hi!

2014-11-04 19:50 GMT+01:00 <parix...@gmail.com>:
I am getting a:
2014/11/04 13:45:52 [error] 12212#0: *1 connect() failed (111: Connection refused) while connecting to upstream

when I try to register a new user or log in as the default admin account.

That happens because the backend seems to be down.

Can you paste the last 10 or 20 lines from /home/taiga/logs/gunicorn.stderr.log ?
Also you can check the status of circusd with circusctl status.
 
In any case, I strongly recommend update the ~/circus.ini with the new configuration (I have updated 5 min ago... with some minor changes)  from: http://taigaio.github.io/taiga-doc/dist/setup-production.html#_circus_and_gunicorn 
and restart the circus daemon with sudo service circus restart.

Greetings.
Andrey

 

For more options, visit https://groups.google.com/d/optout.



--

parix...@gmail.com

unread,
Nov 5, 2014, 2:51:42 PM11/5/14
to tai...@googlegroups.com, parix...@gmail.com
Hi Andrey,

That was it! I didn't have ~/circus.ini

Alejandro Alonso

unread,
Nov 6, 2014, 1:33:59 AM11/6/14
to Parixit Davé, tai...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

eaton...@gmail.com

unread,
Nov 10, 2014, 5:17:13 PM11/10/14
to tai...@googlegroups.com, parix...@gmail.com
I have the same issue as you... 

This is what I get:

taiga@agile:~/taiga-front$ gulp deploy
[22:14:51] Failed to load external module coffee-script/register

/home/taiga/taiga-front/gulpfile.coffee:51
    "#{paths.app}/plugins/**/*.scss"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected string
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:159:12)
    at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)
    at Liftoff.launch (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:152:5)

Any help would be appreciated!

Alejandro Alonso

unread,
Nov 11, 2014, 1:05:01 AM11/11/14
to eaton...@gmail.com, tai...@googlegroups.com, Parixit Davé
Did you execute this?

mv ~/tmp ~/tmp_old

cd ~/taiga-front/
rm -rf ~/.npm; rm -rf node_modules
npm install
bower install
gulp deploy

Regards, 


For more options, visit https://groups.google.com/d/optout.



--

eaton...@gmail.com

unread,
Nov 11, 2014, 3:42:52 AM11/11/14
to tai...@googlegroups.com, eaton...@gmail.com, parix...@gmail.com
That took care of it... thank you guys, this is really looking good!
Reply all
Reply to author
Forward
0 new messages