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

Missing API #7

Open
hallsofvallhalla opened this issue Dec 18, 2011 · 10 comments
Open

Missing API #7

hallsofvallhalla opened this issue Dec 18, 2011 · 10 comments

Comments

@hallsofvallhalla
Copy link

i am getting this error when trying to signup
HTTP ERROR: 505: (URL: http://98.90.34.6/effect/api/user_create)

and this when trying to login as admin
HTTP ERROR: 505: (URL: http://98.90.34.6/effect/api/user_login)

i dont have a api directory other than one in the magik directory

it is online so you can test it. I appreciate the help so far.

@hallsofvallhalla
Copy link
Author

when i hit those links i get

This XML file does not appear to have any style information associated with it. The document tree is shown below.

api/xml
No XML found in request

@jhuckaby
Copy link
Owner

Wow, I have never seen that error code before. The HTTP specification says
it means "Version Not Supported", but that isn't coming from the Effect
Games code as far as I know. Seems like something is wrong with your
server or maybe your Apache web server. That is really weird.

The only thing I can suggest is to check the various error logs on your
server and see if anything sheds some light. Definitely check the Apache
Error Log (its location varies depending on how / where you installed it,
and you might want to locate your httpd.conf file and crank up the LogLevel
to "debug", then restart Apache).

Oh, I think I see where that is coming from. The JavaScript library I am
using for AJAX calls uses the "505" error code to mean "Could not determine
HTTP Status Code". I guess this is some kind of error it cannot read, or
there is nothing coming back from the server at all. Definitely check the
Effect server error logs as well (/logs/effect/error.log and
/logs/effect/debug.log) and see if they contain any useful information.

I'd check permissions too. Make sure you run the
/effect/bin/setup_db.pl script
which should create all the necessary directories and set permissions (run
it as root).

Sorry I couldn't help further, but good luck!

  • Joe

On Sun, Dec 18, 2011 at 12:49 PM, hallsofvallhalla <
[email protected]

wrote:

i am getting this error when trying to signup
HTTP ERROR: 505: (URL: http://98.90.34.6/effect/api/user_create)

and this when trying to login as admin
HTTP ERROR: 505: (URL: http://98.90.34.6/effect/api/user_login)

i dont have a api directory other than one in the magik directory

it is online so you can test it. I appreciate the help so far.


Reply to this email directly or view it on GitHub:
#7

@hallsofvallhalla
Copy link
Author

well i finally worked through that issue but now when I try to login or register and hit submit i get a logging in box then it goes away. Error console says response.description is undefined.

i have it up permanatly now at
http://games.indie-resource.com/effect/

@jhuckaby
Copy link
Owner

I'm so sorry you are having these problems. I never experienced any of
these before.

So, what is happening now is the "user_create" API call is essentially
returning "nothing", meaning the server crashed again. You'll have to
check the Apache Error Log and Effect Logs for clues. I can't tell
anything else from the browser, alas.

/logs/effect/debug.log
/logs/effect/error.log

/var/log/httpd/error_log (the location of this log may vary depending on
how Apache was installed).

Good luck, and I'm sorry this is so difficult. May I ask what flavor and
version of Linux you are installing this on? Did you end up using "yum" to
install a stock Apache / ImageMagick or are you using your own custom
compiled ones?

  • Joe

On Mon, Dec 19, 2011 at 1:40 PM, hallsofvallhalla <
[email protected]

wrote:

well i finally worked through that issue but now when I try to login or
register and hit submit i get a logging in box then it goes away. Error
console says response.description is undefined.

i have it up permanatly now at
http://games.indie-resource.com/effect/


Reply to this email directly or view it on GitHub:
#7 (comment)

@hallsofvallhalla
Copy link
Author

I am using Fedora 16 and I installed everything from the instructions except for Magik from the other error I was getting. But both apache and magic start up fine. I will check the error logs again. I appreciate the help and the value of this software far exceeds the trouble I am having. I figured I would have some issues so I don't mind working through them.

Sorry if I am pestering you :)

@jhuckaby
Copy link
Owner

Hmm, Fedora should be just fine. How odd.

No worries, I don't mind helping, and I am very glad someone still has
interest in the engine :)

I should warn you, however, that I am going on vacation for the holidays
this week, so I might not be able to reply to your e-mails until next week.

I find the best way to debug issues like this is to use a "tail" command
and watch the live Effect Debug log right as you click the "Create Account"
button, so you can see everything the server is trying to do, and
hopefully, where it is crashing:

tail -f /logs/effect/debug.log

You could also gzip and send me your log if you wanted, too.

Have a great holiday!

  • Joe

On Mon, Dec 19, 2011 at 2:04 PM, hallsofvallhalla <
[email protected]

wrote:

I am using Fedora 16 and I installed everything from the instructions
except for Magik from the other error I was getting. But both apache and
magic start up fine. I will check the error logs again. I appreciate the
help and the value of this software far exceeds the trouble I am having. I
figured I would have some issues so I don't mind working through them.

Sorry if I am pestering you :)


Reply to this email directly or view it on GitHub:
#7 (comment)

@hallsofvallhalla
Copy link
Author

do you know if anyone else has gotten this setup and working?

I am wondering if there is some redirection or scripts it is looking for on effect.com. I still see it in places but may not be being used.

@jhuckaby
Copy link
Owner

None that I know of, but I installed the GitHub fork myself on many vanilla
servers (Amazon EC2) to make sure it worked.

There may still be a few instances of the code trying to contact the
mothership, but not during simple API calls like "user_create". All that
does is write files to the local filesystem in /data/effect/. Maybe check
permissions there? The Apache user will need permission to write.

  • Joe

On Mon, Dec 19, 2011 at 2:12 PM, hallsofvallhalla <
[email protected]

wrote:

do you know if anyone else has gotten this setup and working?

I am wondering if there is some redirection or scripts it is looking for
on effect.com. I still see it in places but may not be being used.


Reply to this email directly or view it on GitHub:
#7 (comment)

@hallsofvallhalla
Copy link
Author

i am a bit lost on this one. The logs show the same as the errors I am getting here. Missing XML. Not sure what it is looking for. should anything show up in /data/effect/users? Is that where it writes? I do have a few folders that lead to a metadata file.

@jhuckaby
Copy link
Owner

Hmm, not sure. Missing XML would mean that you just hit the URL directly,
and didn't send a HTTP POST. Can you gzip and send me the
/effect/logs/debug.log file? My direct e-mail address is:

[email protected]

Thanks!

  • Joe

On Mon, Dec 19, 2011 at 2:38 PM, hallsofvallhalla <
[email protected]

wrote:

i am a bit lost on this one. The logs show the same as the errors I am
getting here. Missing XML. Not sure what it is looking for. should anything
show up in /data/effect/users? Is that where it writes? I do have a few
folders that lead to a metadata file.


Reply to this email directly or view it on GitHub:
#7 (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

2 participants