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

Server and local build fails #134

Closed
vargalas opened this issue Sep 17, 2015 · 37 comments
Closed

Server and local build fails #134

vargalas opened this issue Sep 17, 2015 · 37 comments

Comments

@vargalas
Copy link

It seems, currently it's not possible to build on meteorkitchen. Even if I use only the minimal example provided, the error message is the same:

Executing: build
*** Meteor Kitchen v0.9.48 ***
Meteor Application Generator - www.meteorkitchen.com
Copyright (c) Petar Korponaić

Downloading input file...
Reading input file...
Executing "meteor create /home/B6bpSNajH2S23LazY/2mXWctePoLfGzfwks/"...
Removing packages "autopublish" and "insecure"...
Cannot read meteor packages file "/home/B6bpSNajH2S23LazY/2mXWctePoLfGzfwks/.meteor/packages". No such file or directory
Error executing: build. Exit code: 255

I guess, it's a server config problem.

If I download the generated config, it cannot build, throws an error. Something like custom.bootstrap.less cannot be found.
Sorry, I cannot copy it right now, because I'm cannot access any of the compters I used for testing. One was codio.com and the other was a Mac.

@perak
Copy link
Owner

perak commented Sep 17, 2015

Hi @vargalas

This happened to me too :) When application id starts with a number, kitchen's server cannot build it properly. What you can do is: goto "view source" page (json editor) select and copy all, then create new aplication (any, minimal - no matter) and paste into new application's json editor (and save). Now try to build and let me know what hapens.

About local build: it works normaly - I tested under windows, linux and mac. Are you sure your local verson is latest (v0.9.48)? Also, I wish to see error message, please copy&paste when you access computers.

@perak
Copy link
Owner

perak commented Sep 17, 2015

btw, brand new gui is what we need - curently I am creating classes for manipulation with input file structure (metadata) and I'l open new repository ("kitchen-gui") soon, so everyone is welcome to contribute.

@vargalas
Copy link
Author

Thanks! I'll try it in the afternoon. And in the evening, I'll re-test on my mac and post the error.

This project looks damn good. Thank you for your work!

@kadirerdogan
Copy link

@perak i hope you are thinking about a gui with "drag and drop" feature :) It would be great to create a page and then drop some components or previously created pages to the newly created one.

@perak
Copy link
Owner

perak commented Sep 17, 2015

@vargalas thanks!

@kadirerdogan exactly, and much more - I am preparing classes and functions that very flexible manipulates with input file structure, so it will be easy to implement.

@kadirerdogan
Copy link

@perak Do you have a todo list for the gui? or a feature list?

@vargalas
Copy link
Author

@kadirerdogan will this fix the issue with the build?
Or just chatting here not related to the problem.

@kadirerdogan
Copy link

@vargalas i was just excited about perak's news on the gui and the cli. Sorry if i created a delay about the fix.

@vargalas
Copy link
Author

is the application id the id after the details in the url? If yes: I created another one. This id is: WQPjKAWgzRrgAqyjM

The online build fails:

Downloading input file...
Reading input file...
Executing "meteor create /home/B6bpSNajH2S23LazY/WQPjKAWgzRrgAqyjM/"...
Removing packages "autopublish" and "insecure"...
Cannot read meteor packages file "/home/B6bpSNajH2S23LazY/WQPjKAWgzRrgAqyjM/.meteor/packages". No such file or directory
Error executing: build. Exit code: 255

@perak
Copy link
Owner

perak commented Sep 17, 2015

@vargalas typing from mobile phone. I'l check what's the problem with server in ~30 minutes when I reach my computer.

@perak
Copy link
Owner

perak commented Sep 17, 2015

@vargalas got problems on server, will be fixed in few minutes...

@vargalas
Copy link
Author

@perak I'm not often writing love poems to males, but I'm thinking about one now ;)
I'd like to make a POC for a humanitarian organisation (for free) on the weekend, because the situation is quite hot. Kitchen could help me a lot, saving many hours of work.

@perak
Copy link
Owner

perak commented Sep 17, 2015

:D ahahhah, love poem!

@perak
Copy link
Owner

perak commented Sep 17, 2015

OK... now it should work normally (online build).

Did you succeed with local build?

@vargalas
Copy link
Author

Thank you! Online build works!

Interesting. I have no file not found errors anymore. Appid starting with number is also OK.
When I specified an already existing dir (empty), it failed.
I deleted the directory and it works :).

On the other location (Codio online ide - cool!) the environment caused the problem. It was not possible to make a symlink and that broke things. It doesnt work there, because I cannot install kitchen without sudo. At least it seems like.
But for me it's not a problem, I can create my skeleton locally or online.

Thank you very much!

@perak
Copy link
Owner

perak commented Sep 17, 2015

Glad it works. Enjoy! 👍

@perak
Copy link
Owner

perak commented Sep 17, 2015

P.S. appId starting with number is fixed too.

@perak
Copy link
Owner

perak commented Sep 17, 2015

About codio online ide: if only symlink is a problem, maybe you can just create meteor-kitchen.sh script that executes meteor-kitchen binary passing all received arguments (it's located in ~/.meteor-kitchen/bin/meteor-kitchen).

If you succeed, please let me know, so I'l include that into documentation for "codio" and similar environments.

@vargalas
Copy link
Author

I'll try it tomorrow and I'll comment the result here.

@vargalas
Copy link
Author

I'll probably sleep in a sec now. Exceptional evening.

@perak
Copy link
Owner

perak commented Sep 17, 2015

👍

@vargalas
Copy link
Author

On codio.com I created a meteor-kitchen.sh with this content:

~/.meteor-kitchen/bin/meteor-kitchen "$@"

With this, the local build runs fine here, too. Thank you!

@vargalas vargalas reopened this Sep 18, 2015
@vargalas
Copy link
Author

I'm back. The code generation with meteor-kitchen runs without errors. When I log into the directory and run meteor, I receive the following error (mentioned above).

=> Started proxy.                                                                                                                                                               
=> Started MongoDB.                                                                                                                                                             
=> Errors prevented startup:                                                                                                                                                    

   While building the application:                                                                                                                                              
   client/styles/styles/styles.less:1:1: Less compiler error: '../framework/bootstrap3/custom.bootstrap.less' wasn't found                                                      

=> Your application has errors. Waiting for file change. 

Framework directory is empty.

@perak
Copy link
Owner

perak commented Sep 18, 2015

@vargalas looks like too many styles/styles/styles in path... I'l try to find out what's the problem tonight. Until then, what OS are you using in this particular case?

@perak
Copy link
Owner

perak commented Sep 18, 2015

hum, thinking again... custom.bootstrap.less should be created automatically by nemo64:bootstrap package on first run, but looks like that didn't happen. What if you try to clean run app (from hidden .meteor directory in app root, delete local dir. Also, if that doesn't help, try to remove and then add nemo64:bootstrap package

@perak
Copy link
Owner

perak commented Sep 18, 2015

Does that hapen in codio or you are running on "real" OS?

About codio: thanks, I'l add that note into documentation. 👍

@vargalas
Copy link
Author

It's on Codio now.
Os is Ubuntu:

uname -a                                                                                                                                         
Linux happy-chris 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   

I can test it at home in 2-2.5 hours.

@vargalas
Copy link
Author

I'll boot a server on DigitalOcean and I can test there now. I'll get back with the results.

@vargalas
Copy link
Author

It's not my lucky day. Fresh DO image, Ubuntu 14.04, Meteor installed:
It doesnt seem to be a kitchen related problem, though.

  root@meteorKitchenTest:~# meteor-kitchen http://www.meteorkitchen.com/api/getapp/json/Yzy8d7425vuesk5QW ./meteorTest                                                            

*** Meteor Kitchen v0.9.48 ***                                                                                                                                                  
Meteor Application Generator - www.meteorkitchen.com                                                                                                                            
Copyright (c) Petar Korponaić                                                                                                                                                   
<petar.korponaic@gmail.com>                                                                                                                                                     

Downloading input file...                                                                                                                                                       
Reading input file...                                                                                                                                                           
Executing "meteor create ./meteorTest/"...                                                                                                                                      
./meteorTest/: created.                                                                                                                                                         

To run your new app:                                                                                                                                                            
  cd ./meteorTest/                                                                                                                                                              
  meteor                                                                                                                                                                        
Removing packages "autopublish" and "insecure"...                                                                                                                               
Checking installed packages...                                                                                                                                                  
Executing "meteor add aldeed:collection2 service-configuration accounts-facebook standard-app-packages accounts-base http email spiderable iron:router natestrauser:font-awesome
 matb33:collection-hooks perak:user-roles copleykj:livestamp less nemo64:bootstrap reactive-dict accounts-password mrt:moment rajit:bootstrap3-datepicker mizzao:bootboxjs"...  

/root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:278                   
                                                throw(ex);                                                                                                                      
                                                      ^                                                                                                                         
Error: Extracted archive '/tmp/.tmp1n80pj6' should only contain one entry                                                                                                       
    at Object.Future.wait (/root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/futur
e.js:398:15)                                                                                                                                                                    
    at /root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:556:31                                
    at Array.forEach (native)                                                                                                                                                   
    at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/under
score/underscore.js:79:11)                                                                                                                                                      
    at /root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:554:9                                 
    at /root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:352:18                                
    at [object Object]._.extend.withValue (/root/.meteor/packages/meteor-tool/.1.1.4.xvre8c++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:1
15:14)  

(...)
Error executing "meteor". Error executing "meteor". No such file or directory    

@vargalas
Copy link
Author

FYI: the server build for the same project is fine. It generates all the files. If I download it, I can run the generated Meteor project.

I guess, this issue is not related to kitchen. I'll get back with the result on Mac later.
But please don't spend your time on this, unless it happens with you or sy else, too!

@perak
Copy link
Owner

perak commented Sep 18, 2015

OK, thanks for detailed info 👍

@vargalas
Copy link
Author

Exactly the same command on my Mac works :)

@perak
Copy link
Owner

perak commented Sep 18, 2015

Great! Looks like problem with meteor...

@perak
Copy link
Owner

perak commented Sep 18, 2015

(btw, Ubuntu 14.04 - works correctly for me)

@vargalas
Copy link
Author

That's why I love this profession :) Computers have souls I swear ;)
Thank you for your help and for this great tool, too.

@perak
Copy link
Owner

perak commented Sep 18, 2015

Nincs mit Laci! :)

@vargalas
Copy link
Author

Akkor jol lattam a "proba" repot a github profilodon :)

2015-09-19 0:49 GMT+02:00 Petar Korponaić notifications@github.com:

Nincs mit Laci! :)


Reply to this email directly or view it on GitHub
#134 (comment).

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

3 participants