sjarvela / kloudspeaker

Document management system
GNU General Public License v2.0
95 stars 40 forks source link

Cannot finish installation...? #141

Open FragZServer opened 8 years ago

FragZServer commented 8 years ago

Hello, I seem to have an issue setting up a local test website with kloudspeaker. I tried the default setup with a mysql server on localhost to test it, the tables get created and all and at the end I get this: http://prntscr.com/baud73

So I made an admin admin account (remember this is all to test before implementing on our site) and it does not redirect me to any login page. I tried going back to localhost/kloudspeaker to have the normal login page and I try to login and get this: http://prntscr.com/baudil (request failed, invalid login)

Any help is appreciated, once all this is setup I will surely donate! I like the project.

sjarvela commented 8 years ago

This sounds like the setup was finished, but there is some configuration error that prevents the app itself.

Please look at the PHP error log for any errors.

FragZServer commented 8 years ago

How would one take a look at those? Still kinda new and I made this on a local website to test it first. I did read in the config a way to enable debug and stuff but where is that and where do logs go? Ill post logs once I can... do you want logs when I install or when I try to log?

sjarvela commented 8 years ago

It's in the regular PHP log file, location is up to the server configuration. Under Apache it goes to Apache log folder, but this depends on server OS.

Or search with google for your enviroment, like Ubuntu: http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files

mattdeveluk commented 8 years ago

Same problem as here.

sjarvela commented 8 years ago

Like I said, I need to know what is the problem. Error "request failed" does not itself mean anything, it could be, for example, that you have typo in configuration, or missing configuration, or invalid configuration, etc. Literally anything.

mattdeveluk commented 8 years ago

I will look at error logs and let you know later today.

sjarvela commented 8 years ago

Any progress?

OutsourcedGuru commented 8 years ago

This is fairly disappointing. I setup a new Ubuntu 16.04.1LTS server with LAMP stack just for this installation. I followed the instructions and Step 4 to setup the database seems to have worked. But then Step 5 suggests that I "login as admin..." but doesn't describe how you want me to do this. Since this is a server I can't bring up a browser and do this on the server so logging into a terminal there does me no good, right?

If I remotely access the http://servername/kloudspeaker/backend/install folder after Step 4 I can't continue, just like the OP. "Kloudspeaker Installer requires administrator user"

If I remotely try to access http://servername/kloudspeaker/backend/dav I then get an authentication popup. But it doesn't work for root, my own admin login, the MySQL root login nor the kloudspeaker admin that I created in Step 4.

Also, I note that there isn't an index.html file in the kloudspeaker folder itself. I copied/renamed the example but since the installation hasn't finished there's no content whatsoever.

sjarvela commented 8 years ago

Exactly how are you installing the package? If you download the installation package and unzip it, there is index.html in the root. That's the page you need to open to log in after installation (ie. "http://servername/kloudspeaker").

And in any error case, look at the PHP error log. Any messages "Request failed" cannot be resolved without the error from the log.

OutsourcedGuru commented 8 years ago

@sjarvela (Right you are.) That's odd. On the Microsoft Windows computer, the zip file appears to have an index.html in it. When I used the Ubuntu unzip program on the server itself, it didn't pull that out (for some unknown reason). Using unzip to list the file contents:

me@server:~$ unzip -l master.zip|grep index 311 2016-10-11 06:14 kloudspeaker-master/backend/dav/index.php 1838 2016-10-11 06:14 kloudspeaker-master/backend/example/example_index.html 1610 2016-10-11 06:14 kloudspeaker-master/backend/install/index.php 853 2016-10-11 06:14 kloudspeaker-master/backend/plugin/FileViewerEditor/viewers/FlowPlayer/resources/flowplayer-6.0.3/index.html 41877 2016-10-11 06:14 kloudspeaker-master/backend/plugin/FileViewerEditor/viewers/ViewerJS/resources/ViewerJS/index.html 3163 2016-10-11 06:14 kloudspeaker-master/backend/plugin/Watermarking/markers/PDFMarker/fpdf/doc/index.htm 829 2016-10-11 06:14 kloudspeaker-master/backend/plugin/Watermarking/markers/PDFMarker/fpdf/tutorial/index.htm 1742 2016-10-11 06:14 kloudspeaker-master/backend/update/index.php 6155 2016-10-11 06:14 kloudspeaker-master/backend/vendor/PHPMailer/examples/index.html 4175 2016-10-11 06:14 kloudspeaker-master/example_dev_index.html 4210 2016-10-11 06:14 kloudspeaker-master/js/tests/index.html

...versus using WinZip to list them on the PC...

indexdothtml

Unfortunately, it looks like the unzip program has bugs in it. I'll start from scratch and use something else to unzip the installation.

sjarvela commented 8 years ago

It seems you are extracting "master.zip" under Ubuntu, and that sounds like you have downloaded the repository archive from master branch, instead of downloading the release package from Releases page.

There is a difference, repository is for development, and does not work as is for installation.

So Ubuntu unzip works just fine, I suppose, just grab the release package instead.

OutsourcedGuru commented 8 years ago

Excellent! Got this working by re-installing. Your last comment seems to indicate how I went wrong. By downloading on the PC, copying that ZIP file to a USB drive and mounting it on Ubuntu I was then able to unzip into the Apache2 area and it is now a lot happier. I have a new question but I'll start a new thread. (Thanks.)

FoneBone2k commented 7 years ago

Hi, I know that this thread is a little older but I've got a similar problem to finish the installation... This is the error message I get:

Parse error: syntax error, unexpected '[' in .../www/kloudspeaker/backend/plugin/ItemDetails/ItemDetails.plugin.class.php on line 105

I've read that kloudspeaker requires PHP version =>5.2, I'm on 5.2.17...

Any suggestions? Thx in advance.

Small update: Installing kloudspeaker 2.6.14 works fine. Upgrading to 2.7.27 causes the same error as above!

2nd update: No icons are shown in 2.6.14 in kloudspeaker.min.css.

jake-lower17 commented 7 years ago

Getting this as well on a fresh install. Parse error: syntax error, unexpected '['

When I load backend/check.php nothing shows up at all.

lucianf commented 7 years ago

Same parse error, php-fpm 5.3.3 + nginx (CentOS 6.9). Is the latest version really working at all?

sjarvela commented 7 years ago

Just checked latest package, 2.7.30, made a clean install and could not see any problems.

The error in that line mentioned (kloudspeaker/backend/plugin/ItemDetails/ItemDetails.plugin.class.php line 105) has nothing special, except that it now occurred to me that perhaps some PHP version does not support accessing array key directly from the function call, ie

return $this->env->filesystem()->getFolderInfo($item)["size"];

If this is about that, then this should become

$info = $this->env->filesystem()->getFolderInfo($item); return $info["size"];

This is just a guess, what PHP version do you have?