Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

AceEngine does not start. #16

Closed
wmsgeek opened this issue Oct 6, 2014 · 23 comments
Closed

AceEngine does not start. #16

wmsgeek opened this issue Oct 6, 2014 · 23 comments

Comments

@wmsgeek
Copy link

wmsgeek commented Oct 6, 2014

06.10.2014 02:18:00 DEBUG INIT: Plugin loaded: Stat
06.10.2014 02:18:00 DEBUG INIT: Plugin loaded: Torrenttv
06.10.2014 02:18:00 DEBUG INIT: Plugin loaded: Ytv
06.10.2014 02:18:00 INFO HTTP: Using gevent 1.0
06.10.2014 02:18:00 INFO HTTP: Server started.

but ace engine does not start i have tried reinstalling the ace but same result. running windows server 2008.

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

Are you referring to the commit 996e891?

@wmsgeek
Copy link
Author

wmsgeek commented Oct 6, 2014

well, the thing is before that commit i was getting error related to ace key that it could not get etc. so i downloaded the latest *.zip and its having mentioned issue.

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

What's the problem then? If you didn't configure aceengine to start in aceconfig.py, it won't start automatically.

@wmsgeek
Copy link
Author

wmsgeek commented Oct 6, 2014

do we need to edit something in the aceconfig.py? in the older version it started automatically.

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

No, it never started automatically. Code for autostart has been added only 2 days ago with commit 996e891

@wmsgeek
Copy link
Author

wmsgeek commented Oct 6, 2014

see what im doing is, download the latest package and double click the acehttp.py (default config)
and this is the result

06.10.2014 02:27:53 DEBUG INIT: Plugin loaded: Stat
06.10.2014 02:27:53 DEBUG INIT: Plugin loaded: Torrenttv
06.10.2014 02:27:53 DEBUG INIT: Plugin loaded: Ytv
06.10.2014 02:27:53 INFO HTTP: Using gevent 1.0
06.10.2014 02:27:53 INFO HTTP: Server started.
06.10.2014 02:28:00 INFO http_HTTPHandler: Accepted connection from 127.0.0.1 pa
th /pid/ID/stream.mp4
06.10.2014 02:28:01 ERROR http_HTTPHandler: AceClient create exception: AceExcep
tion("Socket creation error! Ace is not running? error(10061, 'No connection cou
ld be made because the target machine actively refused it.')",)
06.10.2014 02:28:01 WARNING root: Dying with error
127.0.0.1 - - [06/Oct/2014 02:28:01] code 502, message Bad Gateway
127.0.0.1 - - [06/Oct/2014 02:28:01] "GET /pid/ID/stream.mp4 HTTP/1.1" 502 -
06.10.2014 02:28:01 DEBUG AceClient_destroy: Destroying client...

and i dont see the aceengine's icon at systray.

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

So run it.

@wmsgeek
Copy link
Author

wmsgeek commented Oct 6, 2014

a simple answer should have been: set acespawn = False to True so it starts automatically.

but im still stuck. now the engine starts but error:

06.10.2014 03:05:25 DEBUG INIT: Plugin loaded: Stat
06.10.2014 03:05:25 DEBUG INIT: Plugin loaded: Torrenttv
06.10.2014 03:05:25 DEBUG INIT: Plugin loaded: Ytv
06.10.2014 03:05:26 INFO HTTP: Ace Stream spawned with pid 5204
06.10.2014 03:05:26 INFO HTTP: Using gevent 1.0
06.10.2014 03:05:26 INFO HTTP: Server started.
06.10.2014 03:05:43 INFO http_HTTPHandler: Accepted connection from 127.0.0.1 pa
th /pid/580b988f3460aee637859d378acf4645ef406b5c/stream.mp4
06.10.2014 03:05:44 ERROR http_HTTPHandler: AceClient create exception: AceExcep
tion("Socket creation error! Ace is not running? error(10061, 'No connection cou
ld be made because the target machine actively refused it.')",)
06.10.2014 03:05:44 WARNING root: Dying with error
127.0.0.1 - - [06/Oct/2014 03:05:44] code 502, message Bad Gateway
127.0.0.1 - - [06/Oct/2014 03:05:44] "GET /pid/580b988f3460aee637859d378acf4645e
f406b5c/stream.mp4 HTTP/1.1" 502 -
06.10.2014 03:05:44 DEBUG AceClient_destroy: Destroying client...

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

This is not a proxy issue.

@ValdikSS ValdikSS closed this as completed Oct 6, 2014
@deseven
Copy link
Contributor

deseven commented Oct 6, 2014

ValdikSS, on Windows, the AceStream were able to start automatically even before my commit, you can check the previous version of the aceconfig.py, there were start routines for AceStream on Windows.

wmsgeek, can you please try to start the acestream engine manually and to set the acestream port in the proxy config?

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

@deseven Damn, you're absolutely right, I totally forgot that.

@ValdikSS ValdikSS reopened this Oct 6, 2014
@wmsgeek
Copy link
Author

wmsgeek commented Oct 6, 2014

I have it set spawn to True which starts the engine automatically, which is what i wanted.
Btw most of the vlc versions do not work for me had to install a specific to get it to conneect but still i cant play the stream no activity on acehttp.py but if i disable vlc ( vlc false) it connects but then the acengine error ocures that is cant connect to aceengine even though its running. Not sure if my system is messed up or the aceproxy is buggy. Everything was fine days back but it started to throw key related errors. Maybe make it more user friendly by compiling everything in a .exe or something :)

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

Windows VLC builds have broken telnet interface. Use VLC 2.0.8, it should work. Linux versions are all fine.

@wmsgeek
Copy link
Author

wmsgeek commented Oct 6, 2014

Yep thats the one im using. Dont know why im getting acengine error.

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 6, 2014

Does it work with older revisions?

@deseven
Copy link
Contributor

deseven commented Oct 7, 2014

  1. Run the acestream engine manually (make sure that the icon appears in the systray).
  2. Get the port number from acestream.port file (in the acestream dir).
  3. Define the port in the aceconfig.py (aceport variable) and set acespawn to False.
  4. Run aceproxy.

That'll help us to know whether it's related to my commit or not.

@wmsgeek
Copy link
Author

wmsgeek commented Oct 8, 2014

after following your^ steps:
C:\p2p>acehttp.py
08.10.2014 03:21:12 DEBUG INIT: Plugin loaded: Stat
08.10.2014 03:21:12 DEBUG INIT: Plugin loaded: Torrenttv
08.10.2014 03:21:12 DEBUG INIT: Plugin loaded: Ytv
08.10.2014 03:21:12 INFO HTTP: Using gevent 1.0
08.10.2014 03:21:12 INFO HTTP: Server started.

playing this URL :http://127.0.0.1:8000/pid/580b988f3460aee637859d378acf4645ef406b5c/stream.mp4

but no activity at acehttp.py

edit:
instead of using 127.0.0.1 in the config i have used public IP and it seems to be working now. will be doing some further testing.

@deseven
Copy link
Contributor

deseven commented Oct 8, 2014

That's kinda strange... Please tell us the exact acestream version you're using. It seems that something is wrong with the localhost binding (maybe for both the proxy and the acestream).

@ValdikSS
Copy link
Owner

ValdikSS commented Oct 8, 2014

@deseven, it could be that some exception is thrown and caught, but without printing it. But i'm not sure. @wmsgeek, please test with older revision.

@deseven
Copy link
Contributor

deseven commented Oct 8, 2014

@ValdikSS i'm pretty sure that i always print something on possible errors. He said that he can't access the proxy on 127.0.0.1, maybe acestream is not accessible on localhost too.

@deseven
Copy link
Contributor

deseven commented Nov 10, 2014

Can't reproduce that on a clean windows installs (7 and 2003). Found a small bug in spawning procedures which can lead to a zombie process in a very rare circumstances, but it has nothing to do with this issue.

@ValdikSS
Copy link
Owner

ValdikSS commented Jan 5, 2015

Anything new?

@ValdikSS
Copy link
Owner

Closing in 3 days in case of no reply.

@ValdikSS ValdikSS closed this as completed Mar 8, 2015
rtfpessoa pushed a commit to rtfpessoa/aceproxy that referenced this issue Jun 3, 2017
Add jsoncheck to prevent error 500
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants