Skip to content
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

Closed
prem911 opened this issue Jan 8, 2017 · 13 comments
Closed

Uploaded zip is deployed but Node application doesnot start #7

prem911 opened this issue Jan 8, 2017 · 13 comments

Comments

@prem911
Copy link

prem911 commented Jan 8, 2017

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.

@Souler
Copy link
Member

Souler commented Jan 10, 2017

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?

@prem911
Copy link
Author

prem911 commented Jan 10, 2017

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?

@Souler
Copy link
Member

Souler commented Jan 10, 2017

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?

@prem911
Copy link
Author

prem911 commented Jan 11, 2017 via email

@prem911
Copy link
Author

prem911 commented Jan 12, 2017

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.
I verified this by manually creating a zip and uploading it to AWS beanstalk application and the deployment went fine.

@Souler
Copy link
Member

Souler commented Jan 12, 2017

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!

@prem911
Copy link
Author

prem911 commented Jan 12, 2017 via email

@prem911
Copy link
Author

prem911 commented Jan 18, 2017

Any update on this?

@greggmojica
Copy link

Same here. Any thoughts??

@Souler
Copy link
Member

Souler commented Jan 22, 2017

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)?

@jarnaiz
Copy link
Member

jarnaiz commented Jan 24, 2017

Hello,

I think this workaround maybe can solve the problem: sindresorhus/gulp-zip#64 (comment)
Related to: phonegap/build#495 (comment) and sindresorhus/gulp-zip#62

I dont test it, if its works, please tell us,
Thanks :)

@wolfit
Copy link

wolfit commented Sep 4, 2017

Yes, this workaround works well (Tested on Windows 10).
You could consider update your README with info on this and close this issue.
.....], { base: './', nodir: true})......

@Souler Souler closed this as completed in e91659d Sep 5, 2017
@Souler
Copy link
Member

Souler commented Sep 5, 2017

Done. Thank you for you feedback @wolfit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants