raphaelluchini / popcorntime-smarttv

Version of Popcorn time for Samsung SmartTv
217 stars 48 forks source link

Failed to install on latest master #16

Closed umpirsky closed 9 years ago

umpirsky commented 9 years ago

It failed when I run grunt:

umpirsky@zenbook:~/Projects/popcorntime-smarttv$ grunt 
Running "jshint:files" (jshint) task
>> 20 files lint free.

Running "requirejs:dist" (requirejs) task
>> Error: ENOENT, no such file or directory
>> '/home/umpirsky/Projects/popcorntime-smarttv/src/app/others/Cache.js'
>> In module tree:
>>     AppInit
>>       App
>>         providers/Scrapers
>>           providers/Ysubs
Warning: RequireJS failed. Use --force to continue.

Aborted due to warnings.
umpirsky commented 9 years ago

Looks like case sensitivity issue?

umpirsky commented 9 years ago

After $ git mv src/app/others/cache.js src/app/others/Cache.js grunt command worked, but:

$ grunt deploy
Running "samsung:default_options" (samsung) task
Clean folders
Creating zip file
Creating XML file
XML has been saved!
Please go to http://192.168.1.5 to test your popcorntime server.
Fatal error: listen EACCES
cajadas commented 9 years ago

That's probably because you are already using port 80 for some other application.

umpirsky commented 9 years ago

@cajadas How can I change port? Thanks.

cajadas commented 9 years ago

I've seen that configuration on the source code a while back but ignored it because i'm pretty sure that when you call the "sync apps" function on your smarttv it will send a request only to port 80.

You should disable the app that is using port 80 instead and try again. Its probably your apache server.

umpirsky commented 9 years ago

@cajadas Thanks!

But still problems:

umpirsky@zenbook:~/Projects/popcorntime-smarttv$ sudo service apache2 stop
umpirsky@zenbook:~/Projects/popcorntime-smarttv$ lsof -i tcp:80 | awk 'NR!=1 {print $2}' | xargs kill 
umpirsky@zenbook:~/Projects/popcorntime-smarttv$ grunt deploy
Running "samsung:default_options" (samsung) task
Clean folders
Creating zip file
Creating XML file
XML has been saved!
Please go to http://192.168.1.5 to test your popcorntime server.
Fatal error: listen EACCES
cajadas commented 9 years ago

probably your user does not have sufficient privileges. try sudo grunt deploy instead.

umpirsky commented 9 years ago

@cajadas OK, looks like it works now, thanks.