-
Notifications
You must be signed in to change notification settings - Fork 8
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
Uploaded zip is deployed but Node application doesnot start #7
Comments
I don't really understand what is the problem here. Can you try deploying the uploaded version of the plugin via the web ui and see if it deploys? |
The zip is correct is S3. However in the EC2 instance, the permissions are all wrong for folders and files and hence the node server doesnot work. What can be done to fix the permissions during the unzip in EC2? |
Mmm, I haven't heard of this issue before. What is your running OS on the machine you are deploying from? Can I get a copy of one of the zipped files so I can see what permissions are set (or at least an ls -al of the contents)? Could it be related to this? |
Its Amazon linux
Here is the dump
2017-01-11-11-01-52.zip app app.js bin config node_modules
package.json public routes views
[ec2-user@ip-172-31-28-237 current]$ ls -al
total 48
drwxr-xr-x 9 nodejs nodejs 4096 Jan 11 05:39 .
drwxr-xr-x 3 root root 4096 Jan 11 05:39 ..
drw-rw-rw- 3 nodejs nodejs 4096 Jan 11 2017 app
-rw-rw-rw- 1 nodejs nodejs 2751 Jan 11 2017 app.js
drw-rw-rw- 2 nodejs nodejs 4096 Jan 11 2017 bin
drw-rw-rw- 2 nodejs nodejs 4096 Jan 11 2017 config
drwxr-xr-x 180 nodejs nodejs 4096 Jan 11 05:39 node_modules
-rw-rw-rw- 1 nodejs nodejs 1477 Jan 11 2017 package.json
drw-rw-rw- 6 nodejs nodejs 4096 Jan 11 2017 public
drw-rw-rw- 2 nodejs nodejs 4096 Jan 11 2017 routes
drw-rw-rw- 4 nodejs nodejs 4096 Jan 11 2017 views
[ec2-user@ip-172-31-28-237 current]$ cd config/
-bash: cd: config/: Permission denied
…On Tue, Jan 10, 2017 at 10:14 PM, Juan José Herrero Barbosa < ***@***.***> wrote:
Mmm, I haven't heard of this issue before. What is your running OS on the
machine you are deploying from? Can I get a copy of one of the zipped files
so I can see what permissions are set (or at least an ls -al of the
contents)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHavY2viqRBrjrEgeHGlogHwrO27Cw5Iks5rQ7WIgaJpZM4LdtMa>
.
|
Looks like there is a problem with gulp-zip. I created a task and created a zip using gulp-zip. File permissions change and hence the resulting deployment in nodejs also fails. |
Ok, having narrowed the problem the only solution I can think of is switching gulp-zip for some other ziping module that actually works under Windows/OSX (which I assume is the SO you are developing on). I'll try yo give ir a try tonight and post back here. Also thanks for the feedback so far! |
Thanks. Mine is windows 10.
…On Thu, 12 Jan 2017 at 17:04, Juan José Herrero Barbosa < ***@***.***> wrote:
Ok, having narrowed the problem the only solution I can think of is
switching gulp-zip for some other ziping module that actually works under
Windows/OSX (which I assume is the SO you are developing on). I'll try yo
give ir a try tonight and post back here.
Also thanks for the feedback so far!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHavY9_FAICqVwwLlH2G6TYkw_ttLkjZks5rRg-ogaJpZM4LdtMa>
.
|
Any update on this? |
Same here. Any thoughts?? |
Not really. I've been digging around searching for zipping/archivers modules and all of them have an issue related with the current issue. Do you know of any module that works correctly between different OS installations (no need for it to be stream-oriented, i'll take care of that)? |
Hello, I think this workaround maybe can solve the problem: sindresorhus/gulp-zip#64 (comment) I dont test it, if its works, please tell us, |
Yes, this workaround works well (Tested on Windows 10). |
Done. Thank you for you feedback @wolfit |
The zip is uploaded to the bucket and not inside the application folder( as is done by eb deploy )
Downloaded and checked the contents. There are no missing files ( due to the gulp generation ).
However when this application is deployed, it results in module not found errors.
The app.js is the entry point, the nodejs dependent modules are loaded however the load fails for the application js modules.
The text was updated successfully, but these errors were encountered: