These are chat archives for gianlucadelgobbo/avnode

4th
Oct 2016
Andreas Lappe
@alappe
Oct 04 2016 09:01

Morning,

so I did get the certificate for accounting.avnode.net yesterday and while on it, I changed the nginx configuration a little bit to get a better tls-support. Also the certificates should get auto-renewed now, so nobody has to do it manually any more.

I also added a job to jenkins to you can deploy the accounting service – jenkins does not keep the process running but uses forever as you originally did. At the moment, it seems to accounting-service doesn't run without failures…

Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 09:02
good
I need the access to jenkins?
Andreas Lappe
@alappe
Oct 04 2016 09:03
It's on https://ci.avnode.net – I'll send you the credentials on another channel.
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 09:03
for what we use jenkins?
have a redirect on https://dev.avnode.net/
Andreas Lappe
@alappe
Oct 04 2016 09:08
nd@style /Users/nd ♥ headers http://accounting.avnode.net/
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: accounting.avnode.net
User-Agent: HTTPie/0.9.6

HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Length: 178
Content-Type: text/html
Date: Tue, 04 Oct 2016 09:07:49 GMT
Location: https://accounting.avnode.net/
Server: nginx

nd@style /Users/nd ♥
this looks good to me…
You're using jenkins to deploy code from github, so check out the latest versions and restart forever.
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 09:09
I can restart forever from jenkins?
Andreas Lappe
@alappe
Oct 04 2016 09:10
Also you asked about the state of the server: I noticed there where a lot of rsync jobs running yesterday with wildly varying pids, so it seems there's some rsync jobs that never finished. Maybe your admin could look into that… it's from /root/scripts/rsync/rsync_sites.sh
Yes you can restart forever from jenkins.
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 09:11
ok
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 10:16
it works
now I put the dumps
you could use it to manage your company invoices and offers
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 10:48
how can I make a dir writable?
from node
tried chown www-data:www-data /sites/avnode.accounting/app/public/accounts/
chown avnode:avnode /sites/avnode.accounting/app/public/accounts/
Andreas Lappe
@alappe
Oct 04 2016 11:24
the latter should do it…
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:24
yes...
Andreas Lappe
@alappe
Oct 04 2016 11:24
Ah, ok
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:24
gived also the 777
but nothing
there is a log?
Andreas Lappe
@alappe
Oct 04 2016 11:38
There is in /home/avnode/.forever/avnode.accounting.log
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:42
thx
no error there
...
Andreas Lappe
@alappe
Oct 04 2016 11:44
What should happen but does not?
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:44
I create pdf of invoices
still in test
so maybe is just writing in the wrong folder?
Andreas Lappe
@alappe
Oct 04 2016 11:46
Maybe. There's no pdf in /sites/avnode.accounting though…
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:47
and should write here var folder = './app/public/accounts/'+global.settings.dbName+'/invoices/'+result.invoice_date.getFullYear()+'/';
Andreas Lappe
@alappe
Oct 04 2016 11:48
But it should at least throw some error if it couldn't write it…
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:48
yes
I will investigate
Andreas Lappe
@alappe
Oct 04 2016 11:48
ok
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:49
to kill jetkins and run manually Delete Project???
Andreas Lappe
@alappe
Oct 04 2016 11:49
Hm? What? No ;)
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:50
yes seems too much :)
Andreas Lappe
@alappe
Oct 04 2016 11:50
You can do forever stop avnode.accounting
and then start it manually…
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:50
do not work
Andreas Lappe
@alappe
Oct 04 2016 11:50
and when you're done you can use the button in jenkins to deploy as normal
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:50
error: Forever cannot find process with id: avnode.accounting
Andreas Lappe
@alappe
Oct 04 2016 11:50
Those commands have to be run as avnode user, not avnode_root
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:51
a ok Im root now
Andreas Lappe
@alappe
Oct 04 2016 11:51
avnode@mongo:/sites/avnode.accounting$ forever stop avnode.accounting
info:    Forever stopped process:
    uid               command         script forever pid   id logfile                                     uptime        
[0] avnode.accounting /usr/bin/nodejs app.js 30453   30459    /home/avnode/.forever/avnode.accounting.log 0:1:29:53.781 
avnode@mongo:/sites/avnode.accounting$
so now it's stopped…
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 11:51
:)
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 12:07
ok now it works
installed manually a module
html-pdf
Andreas Lappe
@alappe
Oct 04 2016 12:58
ah, you have to add it to the package.json and install from there, otherwise automatic deployment etc. doesn't work…
Gianluca Del Gobbo
@gianlucadelgobbo
Oct 04 2016 14:57
therewas but a dependency was not installed from automatic deployment