-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App does not restart after exiting post update (LINUX) #22
Comments
This issue is similar to #21 except that i use nw-builder instead of nwjs-builder-phoenix. |
Update: But if i do close that window before starting update progress, the new app with v 2.0 starts successfully and all happens as expected. Attaching the screenshot of window shown by nw.js @dsheiko do you have any idea what's going on because of that window and does it really affect the restart process ? Also i have one more question - i have modified the shell script and put some echo statements just to debug. Below is my swap.sh in my project
I have custom logPath and the only log i see in there is echo of first rsync command. Nothing else. Even in cases of successful restart all i see is just one entry of that first rsync command. Is that normal ? |
the same |
Hey @dsheiko hope you can help me out here.
Current OS - linux x64
I am currently following basic steps (swapping strategy)
App downloads update successfully, backup folder is created successfully, current app exits but new one does not restart. I tried supplying a log file and checking for logs but there are no errors being reported there. I know that we open a background process via spawn to perform the swapping but i cannot figure out where to look for errors occurring in that spawned process (assuming there's some error in that process which prevents new app to start). Can you guide me as to where should i look for logs that may indicate why the restart fails ?
Also i cannot perform the update unless i start the application using
sudo
as without it app is unable to unzip the new version in /tmp folder because of insufficient permissions. I temporarily changed /tmp permissions to get around this.Thanks for this project, appreciate your efforts !
The text was updated successfully, but these errors were encountered: