Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - viulian

Pages: 1 [2] 3
16
Sure!

Maybe you can install tightvnc + some basic window manager - and run the application there. But I don't know if the VNC session will remain active after you disconnect.
The fonts will probably look ugly also.

If you try, please post back with the results.

Thanks,

17
Hi,

You are right, the app does not work without a GUI... As it never crossed my mind to keep it running as a daemon, the GUI part cannot be disabled.

I will add this to the list of enhancements, thank you for letting me know!

18
Java SMF Backup / Re: Java SMF Backup and SMF 2.0
« on: April 17, 2008, 06:41:31 am »
Thank you :)

As is, version 1.0.X of Java SMF Backup does not work with SMF 2.0 Beta 3. This is because the action URLs have changed + some other improvements the SMF team did to the backend administration pages.

However, I've just finished some test runs of a new version I'm working on, which will also handle SMF 2.0 Beta 3. It's not yet ready to be released, so if regular backups are critical for you, please do not do the forum upgrade.

I'll post a note on the main page, as well as posting here: http://www.simplemachines.org/community/index.php?topic=115957.0

19
I guess you should try the Charles solution I posted... See what exactly Java SMF Backup is receiving from your server.

I would like to test it myself, but it seems I'm not allowed to access your test forum (probably my IP is restricted and I get those "Forbidden" errors).
I'll pm you my IP now.

Thanks and sorry for the hassle :(

20
As right now, as I cannot figure out what goes wrong AND if you are still determined to find out what goes on, you can do the following trick I did when creating the application.

This guarantees you gonna see results :)

Please use Charles: http://www.xk72.com/charles/ (free to try, http proxy).

You have to set up Charles, start it, configure it to run a proxy on some port, let's say 8000, and then use Java SMF Backup to actually do backups using the proxy localhost on port 8000.

Charles will meticulously show you what JSB will send to the forum and what pages the server will answer.

If you don't mind a debug session and watch a lot of data going on, it can help you.

At this moment I cannot do anything, because from the IP I try to connect to you I still get authorization failed (403) which I shown you in my posts above [for the new forum too]

Please keep me posted :) I'd like to hear what went wrong and post it here on the site.

21
If you still have patience to try things out, please check this post: http://www.hex.ro/forum/index.php?topic=7.msg23#msg23

It's an attachment there - and what it does, compared to the standard .jar provided in JSB is that it will save any pages it will actually see (get) from the server.

Please make a backup of your SMFBackup.jar file before replacing it with the one from there, and just run JSB once, to do the backup on that forum causing you issues. Hopefully there'll be an "errorpages" directory containing an .html file.

Please check the contents of that file and see if you can figure out what JSB actually got after attempting/connecting to your forum. You can also PM me the contents if needed.

Thanks!

22
Just tried to access the same links you paste in the previous message [as you said there were some issues with the servers] and I wanted to check out the redirect links, etc.

But still getting the

Code: [Select]
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8a DAV/2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 Server at mykimbrell.com Port 80

messages for both the main page and the forum link...

Can you please check out this post: http://www.simplemachines.org/community/index.php?topic=115957.msg1112630#msg1112630

I have fixed the guy's problem by identifying an URL protection scheme he had installed which only allowed him to access the web page. From his browser everything seemed fine as first time he saved the password and forgot and got properly redirected to the forum, but Java SMF Backup could not access the forum URL directly.

He just had a security form which didn't have an action set. That's the only reason why the JSB will complain about NullPointerException.

23
I think I have not expressed myself too clear:

Please make sure that Java SMF Backup doesn't see the same errors I saw.

24
Just clicked on the .com link, and here's what I get:
Code: [Select]
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8a DAV/2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 Server at mykimbrell.com Port 80

Also, the forum link you provided:

Code: [Select]
Forbidden

You don't have permission to access /FamilyForum/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8a DAV/2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 Server at mykimbrell.com Port 80

And another thing - I cannot see the image, irfan complains about unrecognized header.

If this is what Java SMF Backup sees, it will give you that null pointer.
Or maybe there's some other settings - you see the pages ok in IE/Firefox, but please try to attempt from another computer :)


25
Can you please show me more informations ? (some more logs) so I can pinpoint where it fails ?

There was another case on the simplemachines forum of a person who had an .htaccess based authorisation to the forum, before actually seeing the forum's login page. And he had a cookie set in browser, and he always saw the forum's login page. But when Java SMF Backup tries to connect, it will not get the forum's page first.

Please try and access the forum page from another computer or from IE if you use Firefox, etc - and see if you really see the forum page first.
And, of course, paste some more logs please :)

26
Java SMF Backup / Re: Great Backup App!
« on: May 19, 2007, 06:10:23 pm »
Thanks!

I've just registered on tinyportal -> http://www.tinyportal.net/index.php?action=profile;u=22273

We can continue the discussion there.

27
Java SMF Backup / Re: How can I restore smf forum from a backup?
« on: March 27, 2007, 01:59:25 pm »
Well.. I am a bit confused - my application only backs up the forum database. You can restore it using PHP MyAdmin (Import utility) [ or via command line using mysql, if you have SSH access to your forum].

If you need to restore the forum files (found on your public html directory) you need to have a backup of the forum directory (which you should obtain from CPanel, or via FTP etc - depending on your setup).

28
Java SMF Backup / Re: Login failed error
« on: March 13, 2007, 01:52:02 am »
PS:

Please start the application by double clicking on the .jar file, instead of using the older SMFBackup.exe file [as the latter still contains an older version of SMFBackup.jar embedded in it].

29
Java SMF Backup / Re: Login failed error
« on: March 13, 2007, 01:43:13 am »
Please put the attached jar file into your JavaSMFBackup directory, replacing the existing one (you should not have the application running, otherwise you might not be able to overwrite it).

Then restart the application and have it make a backup..
It should create a directory named "errorpages" containing within one .html file named by your forum..
It's actually the .html page as well as the headers from the request and the answer from your forum.

You can doubleclick on it.. Please tell me what the forum think the error is (in my test runs I found possible messages):

You should enter your password.
Password incorrect.

My log from the app. window is:

[13/03 01:33:29] Next run at: Mar 13, 2007 1:45:00 PM
[13/03 01:33:31] Backup request received.
[13/03 01:33:31] Connection starting.
[13/03 01:33:31] Connecting to http://www.hex.ro/forum/index.php?action=admin
[13/03 01:33:33] Issuing POST to http://hex.ro/forum/index.php?action=login2
[13/03 01:33:34] Saving answer to: D:\JavaSMFBackup\errorpages\Hex.Ro2989.html
[13/03 01:33:34] class smfbackup.http.SMFException: No Refresh header received. Login failed ?
[13/03 01:33:34] Next run at: Mar 13, 2007 1:45:00 PM


The thing is that the requests the application sends trigger an error on the forum. These requests might be altered in some way by the proxy you said you were using.. and I need to know in what way.

It will be helpfull for me to see the .html page (doesn't contain any passwords and you can edit the forum address if you feel like - I just want to see the flow) as well as the text you see in the application window..

Thanks!

30
Java SMF Backup / Re: Login failed error
« on: March 09, 2007, 02:36:42 pm »
What the application does is the same as the browser will do.. I mean it just clicks and follows the redirects. What happens is that the redirect it was expecting did not arrive - and when I coded the program this happened when the password was bad (There was a redirect but to a page containing an error message such as cookie error, session error, or bad password - but NOT to the admin page).

This can also happen if the forum is integrated with other CMS and the SMF login flow is changed.. Do you have the forum running standalone on the domain - or is it integrated with other CMS/etc ?

I will update the code in the weekend so it would write down (to the logs) the .html page where it got redirect (and maybe containing some error which will actually tell what the forum thinks about the login).
In fact I'll rewrite the logging part - as it seems that its difficult to figure out what doesn't work when it should.

I'll keep the thread updated - thanks for the message :)

Pages: 1 [2] 3