Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Ghost --> restart

1


Threaded Mode | Print  

 Ghost --> restart, How do you restart ghost (17 Replies, Read 17338 times)
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Hello guys,

Just wondering how you restart Ghost after installing via Softaculous, do you have to do it via the root SSH, and if so does that reset everyone who uses ghost.

I'm just wondering because when you install a theme, you have to restart it so you can select it.

I tried restarting it via JailedSSH and using service ghost restart but it failed to find a service.

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
punit
Group: Softaculous Team
Post Group: Elite Member
Posts: 267
Status:
Hi,

You need to kill the process on which node is running and then from the Ghost installation directory type
Code
[[DATADIRECTORYPATH]]/bin/npm start --production


DATADIRECTORYPATH refers to the data directory path you chose while installation. Eg : /home/USERNAME/nodejs


-----------------------
Regards
Punit Varia
Script Packaging Head
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
JailSSH:
Code

username@titanic [~]# /home/username/nodejs/bin/npm start --production
npm ERR! Error: ENOENT, open '/home/username/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!    <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!    <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-458.23.2.lve1.2.45.el6.x86_64
npm ERR! command "/home/username/nodejs/bin/node" "/home/username/nodejs/bin/npm" "start" "--production"
npm ERR! cwd /home/username
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path /home/username/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!    /home/username/npm-debug.log
npm ERR! not ok code 0


Root SSH:
Code

root@titanic [~]# /home/username/nodejs/bin/npm start --production
npm ERR! Error: ENOENT, open '/root/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!    <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!    <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-458.23.2.lve1.2.45.el6.x86_64
npm ERR! command "/home/username/nodejs/bin/node" "/home/username/nodejs/bin/npm" "start" "--production"
npm ERR! cwd /root
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path /root/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!    /root/npm-debug.log
npm ERR! not ok code 0


Edited by Licensecart : December 9, 2013, 1:04 pm

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
punit
Group: Softaculous Team
Post Group: Elite Member
Posts: 267
Status:
Hi,

Are you executing NPM START command from the directory where ghost is installed ?

first cd to the directory where ghost is installed and then execute NPM START command.

Let us know if you have some issue.


-----------------------
Regards
Punit Varia
Script Packaging Head
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Quote From : punit December 10, 2013, 5:15 am
Hi,

Are you executing NPM START command from the directory where ghost is installed ?

first cd to the directory where ghost is installed and then execute NPM START command.

Let us know if you have some issue.


Hell mate, yeah I've tried executing it on both jailedssh and root in these folders:

Code
/home/username/ using command: /nodejs/bin/npm start --production


Code
/home/username/nodejs using command: /bin/npm start --production



Error log (npm-debug.log)                   

Code
0 info it worked if it ends with ok
1 verbose cli [ '/home/username/nodejs/bin/node',
1 verbose cli  '/home/username/nodejs/bin/npm',
1 verbose cli  'start',
1 verbose cli  '--production' ]
2 info using npm@1.3.14
3 info using node@v0.10.22
4 error Error: ENOENT, open '/home/username/package.json'
5 error If you need help, you may report this log at:
5 error    <http://github.com/isaacs/npm/issues>
5 error or email it to:
5 error    <npm-@googlegroups.com>
6 error System Linux 2.6.32-458.23.2.lve1.2.45.el6.x86_64
7 error command "/home/username/nodejs/bin/node" "/home/username/nodejs/bin/npm$
8 error cwd /home/username


Do I need something installed on the server to get the command working, we have CloudLinux 6 OS.

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
punit
Group: Softaculous Team
Post Group: Elite Member
Posts: 267
Status:
Hi,

You have to first cd to the path where you have installed ghost
eg :
Code
cd /home/username/public_html


and then
Code
/home/username/nodejs/bin/npm start --production


Or open a ticket with FTP details I will check it.
https://www.softaculous.com/support/
   
   


-----------------------
Regards
Punit Varia
Script Packaging Head
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Quote From : punit December 10, 2013, 9:13 am
Hi,

You have to first cd to the path where you have installed ghost
eg :
Code
cd /home/username/public_html


and then
Code
/home/username/nodejs/bin/npm start --production


Or open a ticket with FTP details I will check it.
https://www.softaculous.com/support/
   
   


Ah I see what I did wrong (wrong folder) but I get this output now:

Code

username@titanic [~/public_html/licensecart.com/blog]# /home/username/nodejs/bin/npm start --production

> ghost@0.3.3 start /home/username/public_html/licensecart.com/blog
> node index


events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at net.js:1135:9
    at dns.js:72:18
    at process._tickCallback (node.js:415:13)

npm ERR! ghost@0.3.3 start: `node index`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the ghost@0.3.3 start script.
npm ERR! This is most likely a problem with the ghost package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!    node index
npm ERR! You can get their info via:
npm ERR!    npm owner ls ghost
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-458.23.2.lve1.2.45.el6.x86_64
npm ERR! command "/home/username/nodejs/bin/node" "/home/username/nodejs/bin/npm" "start" "--production"
npm ERR! cwd /home/username/public_html/licensecart.com/blog
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!    /home/username/public_html/licensecart.com/blog/npm-debug.log
npm ERR! not ok code 0


but
Code
npm owner ls ghost
doesn't have a output.

Edited by Licensecart : December 10, 2013, 9:26 am

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
punit
Group: Softaculous Team
Post Group: Elite Member
Posts: 267
Status:
Hi,

You have got this error because npm is not stopped

please first kill the npm process by executing
Code
killall -9 node


Also from root execute
Code
service cron restart


Then
Code
cd /home/username/public_html

Code
/home/username/nodejs/bin/npm start --production



-----------------------
Regards
Punit Varia
Script Packaging Head
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Super :D thank you, finally got the bleeder :) .

Hopefully this will help others too.

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
punit
Group: Softaculous Team
Post Group: Elite Member
Posts: 267
Status:
Hi,

Forgot to mention that node will stop as you close your terminal.

To keep running node in background execute following command :

Code
cd /home/username/public_html


Code
/home/username/nodejs/bin/npm start --production > /home/username/nodejs/[[ghostlog]] 2>&1 &


After this you can close the terminal. Node will keep on running in background.

NOTE : [[ghostlog]] is the log file placed inside [[DATADIRECTORY]] i.e /home/username/nodejs/ghost*.log


-----------------------
Regards
Punit Varia
Script Packaging Head
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Quote From : punit December 10, 2013, 10:37 am
Hi,

Forgot to mention that node will stop as you close your terminal.

To keep running node in background execute following command :

Code
cd /home/username/public_html


Code
/home/username/nodejs/bin/npm start --production > /home/username/nodejs/[[ghostlog]] 2>&1 &


After this you can close the terminal. Node will keep on running in background.

NOTE : [[ghostlog]] is the log file placed inside [[DATADIRECTORY]] i.e /home/username/nodejs/ghost*.log


Ah thanks mate I was wondering why it wasn't finishing lol :)

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Quote From : punit December 10, 2013, 9:53 am
Hi,

You have got this error because npm is not stopped

please first kill the npm process by executing
Code
killall -9 node


Also from root execute
Code
service cron restart


Then
Code
cd /home/username/public_html

Code
/home/username/nodejs/bin/npm start --production



I've noticed just, that if you use killall -9 node, it stops all the ghost blogs on the server, it's a bit annoying when other customers have a blog and you just turn theirs off to a 503 error. Is there a way to just kill the process per install?

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

If you execute the command as the user it should only kill the process for your account.

Also if you want to just kill the node for your blog you can use "ps aux" to find your process id and then kill that particular process.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Ghost --> restart
Licensecart
Group: NOC
Post Group: Newbie
Posts: 13
Status:

Licensecart
Quote From : Brijesh January 22, 2014, 6:03 am
Hi,

If you execute the command as the user it should only kill the process for your account.

Also if you want to just kill the node for your blog you can use "ps aux" to find your process id and then kill that particular process.


Hey mate do I have to give them ssh fully because on Jailed SSH they get:

Attempting to create directory /home/cwmike/perl5
cwmike@titanic [~]# killall -9 node
-jailshell: killall: command not found
cwmike@titanic [~/public_html]# /home/cwmike/nodejs/bin/npm start --production > /home/cwmike/nodejs/[[ghostlog]] 2>&1 &
[1] 776220
cwmike@titanic [~/public_html]# -jailshell: /home/cwmike/nodejs/[[ghostlog]]: Permission denied

Edited by Licensecart : January 22, 2014, 12:38 pm

-----------------------
Michael Dance
Licensecart » Certified Distribution for Blesta, Interworx, CraftSRV, Softaculous, Virtualizor, Litespeed & SSLs.
support[at]licensecart.com
IP: --   

Ghost --> restart
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
Quote From : CubicWebs January 22, 2014, 12:33 pm
Quote From : Brijesh January 22, 2014, 6:03 am
Hi,

If you execute the command as the user it should only kill the process for your account.

Also if you want to just kill the node for your blog you can use "ps aux" to find your process id and then kill that particular process.


Hey mate do I have to give them ssh fully because on Jailed SSH they get:

Attempting to create directory /home/cwmike/perl5
cwmike@titanic [~]# killall -9 node
-jailshell: killall: command not found
cwmike@titanic [~/public_html]# /home/cwmike/nodejs/bin/npm start --production > /home/cwmike/nodejs/[[ghostlog]] 2>&1 &
[1] 776220
cwmike@titanic [~/public_html]# -jailshell: /home/cwmike/nodejs/[[ghostlog]]: Permission denied


Softaculous sets up a cron which will start the Ghost Blog IF its offline. There is a cron.php file created and you can see the contents.
So you dont need to give shell access at all.

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 25, 2024, 5:20 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.026