jsfrederick
Posts: 23
Joined: Sat Feb 25, 2017 9:03 pm
Location: Virginia, USA

Re: NextCloud on Pi 2/3 Start to finish Guide

Tue Jun 27, 2017 1:26 pm

I big shout out to NextcloudPi. It's a great solution and easy to install and implement.

Javi_VM
Posts: 6
Joined: Tue Jan 13, 2015 10:10 am

Re: NextCloud on Pi 2/3 Start to finish Guide

Wed Jun 28, 2017 7:09 pm

I think I'll probably go to flash NextcloudPi. Seems a fairly good option and anyway I believe it would be good for my system to get a fresh starts (too much playing around, installing and uninstalling things, I am afraid). I use kodi quite a lot too, so I guess I'll have to install it and configure it back again but I do not believe it is going to be hard work.

So there we go!!

Bolkar
Posts: 1
Joined: Sun Jul 30, 2017 11:29 pm

Re: NextCloud on Pi 2/3 Start to finish Guide

Sun Jul 30, 2017 11:31 pm

I believe there is an typo in the guide.
Where it says "
'memcache.local' => '\OC\Memcache\APC',
"
It should be "
'memcache.local' => '\OC\Memcache\APCu',
"
instead.

Al_Harley
Posts: 3
Joined: Sun Aug 13, 2017 12:50 am

Re: NextCloud on Pi 2/3 Start to finish Guide

Sun Aug 13, 2017 1:12 am

Hello,

First let me say thank you for this tutorial, it was very easy to follow and worked like a charm(although I'm sure I missed something).

When I go to my URL I get to the create admin account page. This tells me that I can access the server from outside. However, when I set it up using the parameters you indicated(/CloudDATA and nextclouduser, PASSWORD(I entered the one I created), nextcloud, localhost), and try to set up the admin account online, I get an error which states the following:

Error while trying to create admin user:
Failed to connect to the database: an exception occurred in the driver:
SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: yes)

I've scoured the internet trying to find what I may have done wrong and can't find anything. I've erased and reinstalled the entire system 3 times with the same results. I'm a complete NOOB to Pi and would appreciate any help possible. If you need to see any of my configurations, please let me know which ones and how to access them(complete NOOB, lol). Thank you so much in advance I look forward to your reply.

Thank you again for all your hard work and for writing this up.

Respectfully,
Al

burnt rees
Posts: 3
Joined: Tue Aug 15, 2017 1:43 pm

Re: NextCloud on Pi 2/3 Start to finish Guide

Tue Aug 15, 2017 1:49 pm

@AI_Harley The error you are getting is the mysql (or in this case mariadb?) is saying that the password and username are incorrect. When you are in the web browser initially setting up nextcloud, the top portion is asking for you nextcloud admin credentials. The bottom portion along with the directory information are you MYSQL login information. Enter the password from the earlier steps from when you were setting up your mysql and it should work. Post back with any further questions, I'll be browsing this thread for the next few days. Cheers!

@Bolkar Thanks, this was giving me a 503 error with the typo. OP, maybe it is a typo or maybe this entry is broken for the latest NextCloud (12.0.2)
Thanks for the write up!

Does anyone have a solution where I can connect to both the local host server as well as the DDNS server on a single client? I can access the DDNS away from home, but I would like to use the local server connection since it is faster and less redundant. Also, is a SSL cert. still secure if you use it to connect to the local host server instead of the DDNS that was used to create it? What I did was add an exception for my computer to connect to the raspberry pi through the local network instead of using the DDNS. So far I am using the web client for local host and the windows desktop application for the DDNS server.

Also, how secure is this form of data storage? I am worried with all of my information on the cloud, is it likely that this server will be cracked? Any resources to prevent my raspberry pi server from being attacked (eg. MITM, etc.) Thank you

rodofrn
Posts: 1
Joined: Sat Aug 19, 2017 1:16 am

Re: NextCloud on Pi 2/3 Start to finish Guide

Sat Aug 19, 2017 1:19 am

Hello, really well written guide, thanks for posting it!
I do have a problem tohugh, after completing the installation and REBOOTING, I can no longer access the nextcloud webGUI. The only thing I did different than you was i installed nextcloud12.zip instead of 10.
When I try to go to the webpage (either domain or local ip) I this:

Code: Select all

This page isn’t working

rpicloud.ddns.net is currently unable to handle this request.
HTTP ERROR 503
Do you have any idea what is going on? I can provide logs and everything you need! THANKS!

burnt rees
Posts: 3
Joined: Tue Aug 15, 2017 1:43 pm

Re: NextCloud on Pi 2/3 Start to finish Guide

Sat Aug 19, 2017 6:06 am

rodofrn wrote:
Sat Aug 19, 2017 1:19 am
Hello, really well written guide, thanks for posting it!
I do have a problem tohugh, after completing the installation and REBOOTING, I can no longer access the nextcloud webGUI. The only thing I did different than you was i installed nextcloud12.zip instead of 10.
When I try to go to the webpage (either domain or local ip) I this:

Code: Select all

This page isn’t working

rpicloud.ddns.net is currently unable to handle this request.
HTTP ERROR 503
Do you have any idea what is going on? I can provide logs and everything you need! THANKS!
Bolkar's post should solve your problem, as I've stated in the post above yours. Just read his solution about three posts above yours. Let us know if it solves your problem.
Bolkar wrote:
Sun Jul 30, 2017 11:31 pm
I believe there is an typo in the guide.
Where it says "
'memcache.local' => '\OC\Memcache\APC',
"
It should be "
'memcache.local' => '\OC\Memcache\APCu',
"
instead.

burnt rees
Posts: 3
Joined: Tue Aug 15, 2017 1:43 pm

Re: NextCloud on Pi 2/3 Start to finish Guide

Sun Aug 20, 2017 3:54 am

Hi guys, after some research I figured out how to follow a recommended php.ini configuration from the admin control panel and how to delete an annoying bug where I could not delete some files! Read below if any of this sounds relevant to you! :D
Problem 1: php.ini file:
The PHP OPcache is not properly configured. For better performance we recommend to use following settings in the php.ini:
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
EDIT: Fixed the above error by going to
/etc/php/7.0/cli/php.ini
and manually resetting the values.

Problem 2 : Locked files and folders, unable to delete them.
EDIT: I SOLVED THIS PROBLEM AFTER GETTING P****D OFF A LITTLE BIT LOL..
SOURCE
pedropt
Apr 25

For those that do not know how to connect or even the owncloud database name in mysql (mariadb) , follow these instructions :

0 - put your nextcloud under maintenance mode on config.php , so no one access it while you are doing changes .

1st - open your config.php in your nextcloud server folder under "config" folder .

2nd - there should be a field the like this : " 'dbname' => " , in this field there is your database name .

3rd - open a terminal window and execute under a root account :

mysql -u root -p
"enter your password"

then connect to nextcloud database with the following command :

connect database
database = your config.php databasename field

after this point all you have to do is to issue the sql command to delete all data inside the oc_file_locks table

-DELETE FROM oc_file_locks WHERE 1;

then after this point all you have to do is :
\q

to close sql prompt and you are done .

Remove the maintenance mode from config.php and start uploading your files over web interface or dav .

Al_Harley
Posts: 3
Joined: Sun Aug 13, 2017 12:50 am

Re: NextCloud on Pi 2/3 Start to finish Guide

Fri Aug 25, 2017 1:00 am

burnt rees wrote:
Tue Aug 15, 2017 1:49 pm
@AI_Harley The error you are getting is the mysql (or in this case mariadb?) is saying that the password and username are incorrect. When you are in the web browser initially setting up nextcloud, the top portion is asking for you nextcloud admin credentials. The bottom portion along with the directory information are you MYSQL login information. Enter the password from the earlier steps from when you were setting up your mysql and it should work. Post back with any further questions, I'll be browsing this thread for the next few days. Cheers!
Hi Burnt Rees,
Thank you for your input. I followed these steps a total of three times and I was sure to save the password I set up in the earlier steps. I will start over again, double check all my work, and post my results.

The only difference is that I went with nextcloud 12 instead of 10. Thanks again and I'll post results.

Al

Al_Harley
Posts: 3
Joined: Sun Aug 13, 2017 12:50 am

Re: NextCloud on Pi 2/3 Start to finish Guide

Fri Sep 29, 2017 3:13 am

burnt rees wrote:
Tue Aug 15, 2017 1:49 pm
@AI_Harley The error you are getting is the mysql (or in this case mariadb?) is saying that the password and username are incorrect. When you are in the web browser initially setting up nextcloud, the top portion is asking for you nextcloud admin credentials. The bottom portion along with the directory information are you MYSQL login information. Enter the password from the earlier steps from when you were setting up your mysql and it should work. Post back with any further questions, I'll be browsing this thread for the next few days. Cheers!
I figured it out, it was a very simple error. I left the following line as follows:

CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'PASSWORD';

emphasis on "PASSWORD". Once I replaced that with the actual password I assigned, it worked like a charm. Thank you again!

Baccart
Posts: 1
Joined: Sat Sep 30, 2017 6:17 pm

Re: NextCloud on Pi 2/3 Start to finish Guide

Sat Sep 30, 2017 6:20 pm

Hi,

I followed the guide and whole system worked fine.
After finished guide, I rebooted and raspberry pi doesn't boot anymore.
I did all on fresh install, did updates and reboots to check if all is fine.
I run headless setup, so I can't see what error pop up on boot.

Is there anything I could do ?

Thanks,

nachoparker
Posts: 13
Joined: Mon Feb 20, 2017 8:39 am

Re: NextCloud on Pi 2/3 Start to finish Guide

Sun Oct 01, 2017 5:13 pm

Hi, you could save some time by using a well prooved Nextcloud installation on Raspbian.

You can check out NextCloudPi

https://ownyourbits.com/2017/02/13/next ... -pi-image/

Image

Image

FlexMcMurphy
Posts: 44
Joined: Mon May 19, 2014 3:47 pm

NextCloudPi problem with LetsEncrypt

Sun Oct 01, 2017 9:32 pm

Hey Nacho,

I spent all day trying to get NextCloudPi up and running. It looks amazing and it was working for a while but I couldn't get SAMBA working properly... then I ran the letsencrypt in the config but it keeps giving me errors and now I can't get in to the NextCloudPi web admin screen. I get connection refused. I set up the dynamic dns from my router and it is updating correctly to my routers external ip address but I still get connection refused from letsencrypt when it tries to "Fetch"? a connection to that dynamic dns? Or such is my understanding.

I hacked a solution to SAMBA in the smb.conf file and now I can see the shares in my Windows explorer but the Web Admin screen still wont load over http or https when I type in the fixed ip address of my Pi. That was working earlier. I think it was messing with letsencrypt that broke it or maybe when I updated to a new version via the Raspbian config utility.

I downloaded the latest 12.0.3 version of the torrent and it says I have NextCloudPi version 0.31.6 when I log in to the image via ssh.

I'm not sure what logs or config files I should be looking at. I guess it's fine if it just works but no clue where to start when it doesn't!

Any advice gratefully accepted!

Flex

Return to “Networking and servers”

Who is online

Users browsing this forum: No registered users and 17 guests