Recent Posts

Pages: 1 2 [3] 4 5 ... 8
21
Java SMF Backup / Re: 403 Forbidden
« Last post by viulian on December 13, 2009, 04:58:30 pm »
Can you please try this version:

http://hex.ro/wb/tracker/EasyTracker.php?id=17

By default the user agent is the jakarta one , so before trying to do backup, please go to Settings and put this user agent:

Code: [Select]
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)

Please keep me updated :)
22
Java SMF Backup / Re: 403 Forbidden
« Last post by petarl on December 13, 2009, 03:18:25 pm »
Sure, no problem.
23
Java SMF Backup / Re: 403 Forbidden
« Last post by viulian on December 13, 2009, 03:10:22 pm »
Yep, I can add it.

Can you please leave the username / pass active 1, 2 days, to allow me to test the changes ?

Thanks,
24
Java SMF Backup / Re: 403 Forbidden
« Last post by petarl on December 13, 2009, 02:52:34 pm »
No, I don't have any control over that httpd server and I can't modify anything regarding server configuration. Is there any possibility to add field in Java SMF Backup to change User-Agent?
25
Java SMF Backup / Re: 403 Forbidden
« Last post by viulian on December 13, 2009, 05:27:36 am »
Thanks for the pm - I've checked the issue.

It seems that your httpd server / host firewall is configured to allow only some "User-Agent" values. When I was connecting with Firefox, the .../index.php?action=admin URL displayed properly (login page was there).

However, when Java SMF Backup wanted to connect to the same URL, your host replied directly with 403 auth denied.

After some trial and error, I found the difference. Java SMF Backup uses Apache Jakarta Http Client which, by default, has User-Agent header with value "Jakarta Commons-HttpClient/3.1".
Only after I made the application to fake the User-Agent by replacing it with Firefox one: "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)" only then the application was able to connect and do proper backup.

Do you have control over that httpd server / reverse proxy / etc,  which replies 403 when it doesn't recognize an "User-Agent" ? To me it seems a way to weed out robots. If so, please add the user agent above (Jakarta....) to the allowed list of user agents.

Thanks,
26
Java SMF Backup / Re: 403 Forbidden
« Last post by petarl on December 13, 2009, 12:56:32 am »
I disabled the Quick Theme Changer, but no luck. I also sent you PM with login parameters.

Thanx.
27
Java SMF Backup / Re: 403 Forbidden
« Last post by viulian on December 13, 2009, 12:31:48 am »
Hello,

403 means that it tried to access a resource without sending the proper credentials. However, this might mean:
a) http server configuration
b) some other 'form' tags in the login page, not the login one itself.
etc...

Can you try to disable the quick theme changer at the bottom of the Login page ?
Also, please make sure that you selected the proper forum version ...
To fully understand what the problem is about, I would need a PM from you with an admin username / pass of the forum, to configure the backup application and see where it fails to connect and what is attempting to do. Then you can remove the user. If there are bugs in the application, I will fix and offer a new version for download.

Thank you,
28
Java SMF Backup / 403 Forbidden
« Last post by petarl on December 13, 2009, 12:06:21 am »
My host is bplaced.net and the forum address is forum.baator.bplaced.net. When I start Java SMF Backup 1.3.3 I get the following in log file:

Code: [Select]
[12/12 23:07:46] Next run at: 13.12.2009. 21.00.00
[12/12 23:07:53] Backup notification received.
[12/12 23:07:53] Starting backup procedure.
[12/12 23:07:53] Connecting to admin backend.
[12/12 23:07:53] smfbackup.http.SMFException: Connect failed: HTTP/1.1 403 Forbidden

at smfbackup.http.SMFConnection.doLogin(SMFConnection.java:121)

at smfbackup.http.SMFConnection.doBackup(SMFConnection.java:203)

at smfbackup.http.SMFConnection.doJob(SMFConnection.java:514)

at smfbackup.run.Manageable.run(Manageable.java:29)

[12/12 23:07:53] Next run at: 13.12.2009. 21.00.00

Can anyone help?
29
Java SMF Backup / Re: secs or sc input field?
« Last post by ChaWhoZer on July 04, 2009, 09:59:39 am »
How  should be able to see (if you save the argument from Charles to an .html page) what was the absurdity message.

I assumption it's something accompanying to the affair affidavit - but can't in fact say what goes wrong..

(i beggarly it's a barter off - no amount how abundant logging I can put in the application, alone the user is able to investigate what goes on - as there are aloofness issues to yield into account).


30
Java SMF Backup / Re: Is there a maximum backup size Java SMF Backup can handle?
« Last post by viulian on April 15, 2009, 10:36:30 pm »
Hello, and welcome to the forum.

There are a couple of things you need to try out.

First: is it working in the browser ? Try logging into the administrative backend, and issue a backup command - do one trial for it compressed - and another trial for it uncompressed.

If it's working with uncompressed only, please disable compression in the backup tool also. The thing is that when the php scripts attempt to compress the database in memory - they do not use any sort of caching or something, so they first read the SQL backup in memory (let's say 50-60 Mb of data) and then they try to zip it which uses almost the same amount of memory. So if you have a limitation on how much memory a php script can use, it will already be killed - and you'll end up with an empty file.

Second: Please check the log files on the server. Java SMF Backup si just a wrapper, it does the clicks for you as you would do it in the browser. If something went wrong, I would first check the logs on the server, around the time when the backup happens.

Third: If you are using some other theme beside the default one, that might cause the issues. The backup tool tries to identify the form in which it has to put the username and password. If you use some other theme, it might also add its own forms handling language selections, or other things that might confuse the form detection.
To test this you can create a 'backup' user that is admin, and make the user's theme the default one. If backup works then from the Java SMF Backup, then it's the theme.

PS: if none of above works (I mean no errors on the server side, and it works with or without compression in the browser, but not the same with Java SMF Backup), I will have to ask you to provide me with a temporary admin username / pass so I could check it myself and see how the app behaves, and then will provide a bug fix as soon as possible.

Thank you,
Pages: 1 2 [3] 4 5 ... 8