rejetto forum

Software => HFS ~ HTTP File Server => FHFS => Topic started by: raybob on August 25, 2012, 02:00:38 AM

Title: Version 2.0.x Minor Feature Requests & Bug Reports
Post by: raybob on August 25, 2012, 02:00:38 AM
Any requests for small new features (wishlists), or general discussion about the development of 2.0.x can be held here.

For build-specific bug reports or issues related to 2.0.x, create a topic with your version number in the title.

Any feature requests/wishlists will now be considered for 2.1, which is in the planning state.  See the topic dedicated to it.
Title: Re: Version 2.0 Beta Discussion
Post by: makwuzz on September 02, 2012, 02:24:13 PM
I've added a few accounts. I let a couple of hours later, about 4-5 hours. error occurs when I try to login. The error message is "authenticating" that stuck well to hang HFS.
When i tried to reinstall it several times, about 5 times. This happens over and over again continuously.

My advice, there is an auto backup feature if a registrant account. so, if there is an error like that and I reinstall fhfs, I did not lose all my accounts.

Thank you so much.
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 02, 2012, 06:08:34 PM
There already is that feature.  Go to the admin console and find the 'export accounts' button.

It sounds like your problem is not of the server being corrupt but rather HFS crashing for whatever reason.

Just go into task manager and end the process 'server.dll' then shutdown, restart the server using the main Launcher, no need to reinstall.

Two questions:
1) Did you create the accounts with the normal new account page, in the admin console, or directly in HFS?
2) Can you still access other pages in FHFS after it hangs when signing in?

If you want the bug to be fixed, try uploading a macros log that captures the events immediately before and during the failed logon.
Title: Re: Version 2.0 Beta Discussion
Post by: makwuzz on September 03, 2012, 12:50:46 PM
Yes. I already knew about the account backup feature. but that's not what I mean.
I mean, if someone was registering an account, then FHFS can do automated backups of newly registered accounts without me into the admin console. Because when there is an error as I did today, I did not lose the account.

Yap. I was already turned off "server.dll process" in task manager forcibly. Then I restart FHFS through the main launcher, still I can not log in using one registered account. Even using an administrator account. So I could not get into the admin console and backup account that eventually required me to reinstall FHFS and aya lost all registered accounts.
After I reinstall FHFS, I was trying to register some new accounts. Then I waited for some time, about 3-4 hours. And when I try to login, the same error occurs again. And so on.
I had thought that the error was my windows. Therefore I also have tried to reinstall windows. then i update it and install FHFS. But still the same error repeated. : (

1. I created a new account through the normal new account page.
2. Yes I can access other pages in FHFS, like Create an account, Security, Contact, etc.. But when I do log in, there was an error.

I hope the files I uploaded are the files you need.


Anyway, there is more hope and my question.
1. When I upload via filezilla client, why limit registered account does not work? I can upload a file (7GB) that the amount exceeds the limits "account limit" (2Gb).
2. Am I able to set up access to my server so that only people who live in countries south korea?
3. Can direct link to the file uploaded by the registered account has a limit of a grace period? Once beyond the grace period then, direct url link is missing / can not be accessed anymore. For example, any direct link can only be accessed for 4 hours.

Thanks for your answers and help.
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 03, 2012, 02:53:10 PM
Anyway, there is more hope and my question.
1. When I upload via filezilla client, why limit registered account does not work? I can upload a file (7GB) that the amount exceeds the limits "account limit" (2Gb).
2. Am I able to set up access to my server so that only people who live in countries south korea?
3. Can direct link to the file uploaded by the registered account has a limit of a grace period? Once beyond the grace period then, direct url link is missing / can not be accessed anymore. For example, any direct link can only be accessed for 4 hours.

I'll take a look at the logs.

1) There is no way to limit usage via Filezilla, sadly (that I know of).  You'll notice though that if you log on with HTTP it'll tell you you're over the limit.  Account usage is calculated when logging on, logging off, deleting files, and uploading files, only.  I have 'consider a different FTP program' written down in my todo list.  Filezilla client is great but the server is rather average... my other concern with it is that it only stores passwords as unsalted MD5 hashes :(

2) No.  I do believe HFS has an option though to only allow certain IPs and IP ranges to connect.  I don't know of ANY web server that can allow only certain countries to connect.  That would involve looking up every single IP's country of origin and then deciding whether or not to allow the connection... potentially a time-consuming process to say the least.

3) No.  After 4 hours you can just rename the file.

--- EDIT: So I looked at the logs... if you can any time and wanna be really super helpful you can go into HFS, click on the menu, then debug, then enable macros log.  Then try to log in (after you know it will fail).  Then upload the file macros-log.html (or send it to admin@fhfs.tk since it will probably contain sensitive data).

--- EDIT: I have an idea what might be causing your problem... did you by chance reboot your computer at all between accounts working and not working?  HFS might be failing to save its ini file for whatever reason... upload your files 'hfs.ini' and 'hfs.vfs' before and after the problem.

--- EDIT: When the logon fails, does HFS itself actually lock up and not respond to any more requests?  Because according to the log it responded to the signin request with a "200 OK"
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 03, 2012, 03:35:14 PM
Scrap everything above, I've identified the problem!

It seems to be a result of this bug: http://www.rejetto.com/forum/index.php/topic,10326.0.html

But of course there's a workaround :)

Put the patched file attached below in your FHFS folder and let me know if it solves the problem.
Title: Re: Version 2.0 Beta Discussion
Post by: makwuzz on September 04, 2012, 02:17:52 PM
Yeah.
After I replace the file to a folder ajax.signin.tpl fhfs, I can login.  ;D

Thank you very much.

By the way, I observe, the solution of my problem, you remove the line "{. If | {. ^ Notes | {. ^ Username.} | PassresetID.} | {:" On file ajax.signin.tpl.

Are there any negative consequences arising from the removal of syntax?
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 04, 2012, 03:20:42 PM
No, that is still there, and don't delete it or you may face the same problem.  What I did was add this line a few lines above that one:

Code: [Select]
{.if|{.^notes|{.^username.}|validationID.}|{:

Right above the part where it tries to delete the user's validation ID.

If it didn't exist and FHFS tried to delete it, HFS would crash.
Title: Re: Version 2.0 Beta Discussion
Post by: makwuzz on September 05, 2012, 03:11:55 PM
Report errors:

1. When I set up the outgoing email on the admin console, I can not use SSL. Always the error message: "Email.exe [1904]: ERROR => Connection attempt to localhost: 4650 failed: IO :: Socket :: INET: connect: Unknown error"
And I set up the port on the host 443, but why turn into 4650?
2. Why slow upload speeds? While the download and upload speed of my internet when I test through speedtest.net can be up to 60Mbps.

My hope in the next version fhfs:

1. There's automatic backup feature if there is a newly created account.
2. There is a monitor speed when uploading files.
3. There is a time limit feature direct link made ​​by the user. eg: after 4 hours of direct link is lost.
4. Limit account works if the user upload a file through FileZilla.

Thank you.
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 05, 2012, 11:24:26 PM
Report errors:
1. When I set up the outgoing email on the admin console, I can not use SSL. Always the error message: "Email.exe [1904]: ERROR => Connection attempt to localhost: 4650 failed: IO :: Socket :: INET: connect: Unknown error"
And I set up the port on the host 443, but why turn into 4650?
2. Why slow upload speeds? While the download and upload speed of my internet when I test through speedtest.net can be up to 60Mbps.

1. This is supposed to happen.  HTTP and outgoing SMTP are both piped through STunnel, and 4650 is the port that connects HFS and your SSL email provider.  4650 is supposed to show up, you have some other problems.  Oh and by the way, why on earth are you using 443 for email?  That's for HTTPS!  The outgoing email port should always be 587, or 25 for normal, or 465 for SSL.
2. That's a well-known HFS problem (not mine).

My hope in the next version fhfs:

1. There's automatic backup feature if there is a newly created account.
2. There is a monitor speed when uploading files.
3. There is a time limit feature direct link made ​​by the user. eg: after 4 hours of direct link is lost.
4. Limit account works if the user upload a file through FileZilla.

Thank you.

1. Maybe...
2. That has to do with HFS, not FHFS.  I think it does that anyway...?
3. Maybe... not likely.
4. Nothing I can do about that except for changing to a different FTP program.
Title: Re: Version 2.0 Beta Discussion
Post by: Qwerty Uiop on September 11, 2012, 02:32:46 AM
Is there a reason that my thumbnails do not show? There is a white blank where they should be and if I click on the blank (where it should be) I get a pop-up where the image is shown. Also, photo gallery mode does not work either. Is this just a browser issue? (Using Chrome mainly).
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 11, 2012, 01:56:00 PM
Is there anything in the FHFS\content-thumbs folder ?
Title: Re: Version 2.0 Beta Discussion
Post by: Qwerty Uiop on September 11, 2012, 11:59:43 PM
Yes, it contains two files per one picture. Now my page shows a Photos column and their is white where there should be a picture. If I click on the white, I get a pop-up of the picture in question. Happens with every type of picture (GIF, JPG, PNG, etc...)
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 12, 2012, 07:28:59 PM
EDIT: I did some debugging and I found the problem... the problem is that the PHP script 'encodethumbs.php' assumes you have the standard content directory of "C:\program files\FHFS", and so it would fail if you are using a non-standard content directory (which I hope you are, or else this is a problem but not the one you're experiencing).

The only thing though is that you said there were files in your content-thumbs folder, while this bug would have prevented any files from being there...

Anyway I developed a fix for it to be included in beta 4, but I attached it here for you to try and let me know if it works - note that it won't fix existing pictures, just ones you upload from then on.

Just extract the files from the zip and place them into your FHFS folder, overwriting the old files.

Title: Re: Version 2.0 Beta Discussion
Post by: Qwerty Uiop on September 12, 2012, 10:32:04 PM
The files were not there naturally. I placed them in this folder after I created this folder in hopes of making it work. I deleted the folder and the files and replaced the files with the files you uploaded. This however, just made the blank photo spaces in the "Photos" column.
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 13, 2012, 12:53:17 AM
So it still doesn't work? Don't bother placing anything in the content-thumbs folder because the files there are of a completely different format.

The only way I can see what's happening is if you enable the HFS macros log (HFS interface -> Menu -> Debug -> Enable macros.log and Append macros.log), and then upload a photo over the web interface and load the page (or whatever you do normally when the problem occurs).  Then disable the macros log and upload it here or email it to admin@fhfs.tk.
Title: Re: Version 2.0 Beta Discussion
Post by: Mick Mickle on September 15, 2012, 09:26:37 PM
Your FHFS program seems like it can be very useful, but I'm having a problem getting to square one. After putting the FHFS folder under c:\program files as instructed, when I first run FHFS_Launcher, I get the error that the port is blocked -- check firewall.  That's to be expected.  When I then restore FHFS from the tray icon, I can change the port to a desired port (I easily found that parameter in the hfs.ini file).  However, with a better port specified, I get the cmd line window telling me that :
"The service name is invalid. More help is available by typing NET HELPMSG 2185. The service name is invalid. More help is available by typing NET HELPMSG 2185. FHFS has been shut down successfully! Press any key to continue . . ."

Unfortunately, what service is involved or where to go from here. I know you're putting off docs until you've got a fully functional product, but a little better starter info would be appreciated.  I should note that I'm trying to install on WHS 2011.  I haven't had any problems on that OS with either the HFS 2.2f or the hfs.282a_SSL_FR.

Thanks!
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 17, 2012, 12:39:32 AM
I have reproduced the problem, and it's because there are more references to the HTTP port than just in hfs.ini, you're not supposed to change it like that.

You have to stop whatever is running on port 80, setup FHFS like normal, then change the HTTP port once you get into the admin console.

Then you can restart whatever you had running on port 80 before.
Title: Re: Version 2.0 Beta Discussion
Post by: raybob on September 17, 2012, 07:38:07 PM
Here's what you can do.  First off, extract the 3 files in the zip archive below, and copy them into the FHFS folder, in place of the existing ones.

Then, change the port in hfs.ini like you did before.  Last, create a file called 'installvars.db', open it with notepad, and inside place this line (modify the value as needed)
Code: [Select]
HTTPPORT=8080;
That must be done with a fresh installation, but hopefully it will work. 

** This isn't needed for build 4 and later...
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: Виктор on November 29, 2012, 08:33:53 PM
Hello, I really liked your prorama, but there are still many questions and requests.
1. copy of the screen, this error occurs every time you start, why?
2.How load on the processor?
3.Why no video support (RAWR-Player for example)
4.Bude support multiple languages​​? (eg I can translate into Ukrainian)
5.What are your plans for next?
I would like to help us fine ...

Sorry for my english translate google
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: raybob on December 01, 2012, 02:37:55 AM
Hello, I really liked your prorama, but there are still many questions and requests.
1. copy of the screen, this error occurs every time you start, why?
2.How load on the processor?
3.Why no video support (RAWR-Player for example)
4.Bude support multiple languages​​? (eg I can translate into Ukrainian)
5.What are your plans for next?
I would like to help us fine ...

Sorry for my english translate google

1) Not sure why that's happening.  Can you give me any information about your system?  Try going into the admin console and reinstalling the FileZilla and STunnel services.

2) FHFS is composed of several components... HFS itself only takes one core but very often takes 100% of that core, FileZilla is multithreaded but doesn't take very much... then other command-line apps like PHP, Imagemagick, etc. also can run once in a while but they don't take much CPU even when they are running.  I guess I recommend at least a dual core, but I have run it on a single-core VM sufficiently.

3) This will come later, but in the form on HTML5 video, so only a few formats will be supported.  I don't really know anything about the RAWR-player or how it works.

4) Sadly translations aren't available at the moment.  HFS does include an easy "special strings" method for creating translations though.  Unfortunately I'm the only one working on FHFS and I only know English and French so that doesn't leave much room for translations.  :)

5) ... I have a LOT of plans :)  The cool part is that I think FHFS (as of 2.x) is at the stage where it finally "just works" (except on windows 8) so any future versions will be major rewrites with new features.  I actually use notepad to keep a list of all the things I want to do... copying it into Word tells me that I have written 22,000 words   :P
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: almulder on December 01, 2012, 07:35:45 AM
In regards to
Quote
"MSI-based installer (for 32-bit systems only)"
fix was easy for x64 systems. Just move the folder from "Program Files x86" to "Program Files" Before running. And also change to run as "admin".

Quote
5) ... I have a LOT of plans   The cool part is that I think FHFS (as of 2.x) is at the stage where it finally "just works" (except on windows  so any future versions will be major rewrites with new features.  I actually use notepad to keep a list of all the things I want to do... copying it into Word tells me that I have written 22,000 words   
Can you tell me what features are not supposed to work right now so I don't list them as bugs? (Created new thread for ya for bug list, you can reply there)

-almulder
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: almulder on December 01, 2012, 08:26:43 AM
Hello, I really liked your prorama, but there are still many questions and requests.
1. copy of the screen, this error occurs every time you start, why?
2.How load on the processor?
3.Why no video support (RAWR-Player for example)
4.Bude support multiple languages​​? (eg I can translate into Ukrainian)
5.What are your plans for next?
I would like to help us fine ...

Sorry for my english translate google

Lets give this a try:

(Remember admin mode for windows users)

Code: [Select]
Fix Possibility 1 - Launch FHFS as admin and "Stop FHFS Service" then try again, Launch FHFS as admin and "Start FHFS Service"


If it issue continues try:

Code: [Select]
Fix Possibility 2 - From within Admin Panel - you might also need to reinstall "Visual C++" then "FileZilla Service" then "STunnel Service"
(Has the same issue and that fixed it.)



If it still continues check:

Code: [Select]
(For windows users)
Make sure its not installed in "Program Files x86" if so, move it to "Program Files"



If it still continues try :

Code: [Select]
Fix Possibility 4 - Needed to reinstall FHFS to fix issue. (This also happened to me if i manually changed the port numbers within FHS instead of the Admin Panel)


If it still gives issues after reinstall of FHFS:

Code: [Select]
I have no idea. Sorry we tried.
- almulder
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: Виктор on December 01, 2012, 07:20:54 PM
Hi all,
system
Athlon II X2 215
ddr3 - 2GB
win7 32

I can not get rid of this error, it may be necessary to reinstall the OS
I have a few more suggestions est, can I make what would the user himself could choose Archive Selected File (s)?
it would be nice to create a group, the settings for each group.
why are you using an insecure system spam filtering (What's 9 + 9?) That figure can even Google why not use reCAPTCHA?
Allow the transfer and I will translate all the Russian and Ukrainian UTB will raise the ranking of your little programs))) or can provide a place for you to test on your server.
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: raybob on December 01, 2012, 07:26:48 PM
Hi all,
system
Athlon II X2 215
ddr3 - 2GB
win7 32

I can not get rid of this error, it may be necessary to reinstall the OS
I have a few more suggestions est, can I make what would the user himself could choose Archive Selected File (s)?
it would be nice to create a group, the settings for each group.
Allow the transfer and I will translate all the Russian and Ukrainian UTB will raise the ranking of your little programs))) or can provide a place for you to test on your server.

User grouping and a new permissions system is meant to be one of the big projects for 3.0.

Translations probably won't make it in until then either (I have to make a system for it first) but you could definitely help :)
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: Виктор on December 01, 2012, 07:29:30 PM
why are you using an insecure system spam filtering (What's 9 + 9?) That figure can even Google why not use reCAPTCHA?
I really liked your project, you are very good, hope to see new opportunities in the next version, please if you need to care (except coding and funding)
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: almulder on December 01, 2012, 08:14:04 PM
Nice thought someone had for the HFS i thought you might be able to add to FHFS Since some of the basic functionality is already there.

Themes by User. Currently you have it so they can pick from colors. Down the road it would be nice to have the option for them to pick from layout options also.

So the would get:

Layout option:
Color layout option:

and then maybe to the right have a screen shot that loads according to what they pick.

(http://imageshack.us/a/img705/9932/defaultj.png)

 (http://imageshack.us/a/img339/3770/livek.png)

So for each layout you could have different color schemes.

Also have a file within each theme / color for what options are available when it comes to "Style/Layout" Drop downs.


And maybe somewhat easy way for updating the list would be like:

Having it look at the folder structure.

(http://img24.imageshack.us/img24/2376/folderuzx.png)

And the txt file could be used for the version compliance.  (Just a thought)
So if your using ver2.0.0 only Win Explore theme would show
Or if your using ver2.0.2 FHFS and Live Themes would show.
to show if it is compliant with older versions to current version add 2 text files with the version from the lowest compliant build and then one with highest compliant build.

Or have it look in the text file for the two lines oldest and most current. That way as people make themes me will know if it is compatible with what versions.

- almulder
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: raybob on December 01, 2012, 08:31:15 PM
I already do have themes (some call them skins) planned for a future version. 

Basically the way it would work though is that the user would select their theme, and that would tell FHFS to pick from a series of registered CSS files.  I definitely don't want to have varying user template.tpl core templates.

Note though that once I create the system for themes, some one else will need to create them (as with translations).

I was also planning to have more of a global-oriented themes system but that would be a little harder to create.

You can try deleting user template.css to see the basic layout you would have to work with :)
Title: Re: Version 2.0 Feature Requests/Ideas
Post by: Виктор on December 02, 2012, 07:34:58 PM
What about indexing in search engines Google and etc? it would be great to open the folder and indexed files of users, or the site will be bad in the rankings of search engines ?