perak / kitchen-site

Meteor Kitchen site source code
MIT License
282 stars 38 forks source link

Server and local build fails #134

Closed vargalas closed 8 years ago

vargalas commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

@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 commented 8 years ago

@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 commented 8 years ago

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

vargalas commented 8 years ago

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

kadirerdogan commented 8 years ago

@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 commented 8 years ago

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 commented 8 years ago

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

perak commented 8 years ago

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

vargalas commented 8 years ago

@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 commented 8 years ago

:D ahahhah, love poem!

perak commented 8 years ago

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

Did you succeed with local build?

vargalas commented 8 years ago

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 commented 8 years ago

Glad it works. Enjoy! :+1:

perak commented 8 years ago

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

perak commented 8 years ago

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 commented 8 years ago

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

vargalas commented 8 years ago

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

perak commented 8 years ago

:+1:

vargalas commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

@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 commented 8 years ago

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 commented 8 years ago

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

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

vargalas commented 8 years ago

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 commented 8 years ago

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

vargalas commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

OK, thanks for detailed info :+1:

vargalas commented 8 years ago

Exactly the same command on my Mac works :)

perak commented 8 years ago

Great! Looks like problem with meteor...

perak commented 8 years ago

(btw, Ubuntu 14.04 - works correctly for me)

vargalas commented 8 years ago

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

perak commented 8 years ago

Nincs mit Laci! :)

vargalas commented 8 years ago

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 https://github.com/perak/kitchen-site/issues/134#issuecomment-141587913.