FriendUPCloud / friendup

FriendOS is a free web based platform that runs in your browser. It allows you to work and play, collaboratively, across devices.
https://friendos.com/
Other
347 stars 87 forks source link

Default credentials are not accepted #21

Closed rabejens closed 7 years ago

rabejens commented 7 years ago

I just installed friendup for the first time, and it won't let me log in. It says the credentials are invalid. Have they changed in the meantime?

Followup 1: I investigated this and looked at the database. The install script only created FGlobalVariables table, no more.

Followup 2: I manually inserted FriendCoreDatabase.sql into the newly created database but still no luck.

Followup 3: I now started a separate MySQL server from a sameersbn/mysql Docker container, linked this to my friendup container and this does not work either.

titlestad commented 7 years ago

If you are using Linux Mint 18 - you might not have the php packages needed for accessing module calls.

These are: php-cli php-mysql php-gd php-curl php-imap

Updating the installer now.

titlestad commented 7 years ago

Another thing to consider - FriendUP has anti cracking measures in its login prompt. If you type in the wrong password for a username more than 3 times, you will be locked out. Try to empty the FUserLogin table and see if this remedies your problem.

rabejens commented 7 years ago

I was using an Ubuntu 16 Docker container to install it in there, and even when I tore everything down and set it up anew, I couldn't log in.

titlestad commented 7 years ago

It should work just fine.

First, see if your database has been installed. It should have many tables. Second, make sure you're running Friend Core from your build directory. Third, if all else fails, try to drop your "friendup" database, and re-run the install script.

I updated the Readme.md file today. Search for "serving kernel" and read how to start Friend Core from there.

rabejens commented 7 years ago

I just tried it again. After running the install script, it won't let me log in, and the database only has the FGlobalVariables table.

I dropped all tables in the database I use (it comes from the sameersbn/mysql container) and ran the install script for a second time.

When the installer asked me how to configure phpMyAdmin, or better, what webserver to use, I chose apache2 because this is what the install script pulls.

However, still no luck - it won't let me log in. Maybe the Docker container for Ubuntu 16 is a bit different from a "real" Ubuntu 16 and there is something going on that prevents the correct database initialization.

Are any additional services needed to be running besides from MySQL?

I'll try a virtual machine with a "real" Ubuntu server in it as a next step.

A quick followup: I now explicitly installed and started the MySQL server BEFORE installing (as with Docker, services are not started by default) and now it works. But the login screen won't let me enter "m"s.

titlestad commented 7 years ago

Aha, are you using a Mac? We have had this problem on Macs - still trying to figure it out. It seems to be occurring randomly.

rabejens commented 7 years ago

Yes, I am using Docker for Mac and wanted to install this into a container. That's also the reason for my other comment in the suggestions thread to create an unattended installer. Ultimately, I want to get a Synology DiskStation in the not-so-far future and want to run it there, along with the other very similar project "Amibian.js".

titlestad commented 7 years ago

Ah cool :)

titlestad commented 7 years ago

Closing this issue, as it seems it has been resolved.