Giter Site home page Giter Site logo

nextcloud / nextcloudpi Goto Github PK

View Code? Open in Web Editor NEW
2.4K 79.0 288.0 8.72 MB

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...

Home Page: https://nextcloudpi.com

Shell 50.16% Python 6.11% PHP 24.10% CSS 8.96% JavaScript 8.81% Dockerfile 0.96% Makefile 0.90%
nextcloud qemu raspbian raspberry-pi arm x86-64

nextcloudpi's Introduction

English | Traditional Chinese 繁體中文 | Simplified Chinese 简体中文

(The translated README pages are not updated at this time)

NextcloudPi

Telegram icon Matrix icon Nextcloud icon

Forum icon

NextcloudPi logo

This is the build code for the NextcloudPi open-source community project.

NextcloudPi is a ready to use image for Virtual Machines, Raspberry Pi, Odroid HC1, Rock64 and other boards. (⇒ Downloads)

This code also generates the NextcloudPi LXD and LXC containers and there is an install script for the latest supported Debian based system as well.

Find the documentation at docs.nextcloudpi.com, the documentation is all written by volunteers.

Please reach out in the Matrix or Telegram Wiki group chats if you want to help out to keep them up-to-date and we'll add you to the Wiki Group on the forum.


master

VM Tests

Docker Tests

devel

VM Tests

Docker Tests


Features

  • Raspberry Pi OS/Debian 11 (Bullseye)
  • Nextcloud
  • Apache, with HTTP2 enabled
  • PHP 8.1
  • MariaDB
  • Redis memory cache
  • ncp-config TUI for easy setup ( RAM logs, USB drive and more )
  • Automatic redirection to HTTPS
  • APCu PHP cache
  • PHP Zend OPcache enabled with file cache
  • HSTS
  • Cron jobs for Nextcloud
  • Sane configuration defaults
  • Full emoji support
  • Postfix email
  • Secure

Extras

  • Setup wizard
  • NextcloudPi Web Panel
  • Wi-Fi ready
  • Ram logs
  • Automatic security updates, activated by default.
  • Let’s Encrypt for trusted HTTPS certificates.
  • Fail2Ban protection against brute force attacks.
  • UFW firewall
  • Dynamic DNS support for no-ip.org
  • Dynamic DNS support for freeDNS
  • Dynamic DNS support for duckDNS
  • Dynamic DNS support for spDYN
  • Dynamic DNS support for Namecheap
  • dnsmasq DNS server with DNS cache
  • ModSecurity Web Application Firewall
  • NFS ready to mount your files over LAN
  • SAMBA ready to share your files with Windows/Mac/Linux
  • USB automount
  • Remote updates
  • Automatic NCP updates
  • Automatic Nextcloud updates
  • Update notifications
  • Nextcloud backup and restore
  • Nextcloud online installation
  • Format USB drive to BTRFS
  • BTRFS snapshots
  • Automatic BTRFS snapshots
  • BTRFS snapshot auto sync
  • scheduled rsync
  • UPnP automatic port forwarding
  • Security audits with Lynis and Debsecan
  • ZRAM
  • SMART hard drive health monitoring

Extras can be activated and configured using the web interface at HTTPS port 4443

ncp-web

Or from the command line using

sudo ncp-config

NCP-config

Docker has been discontinued

Docker has been discontinued for the time being, please read the announcement here: https://help.nextcloud.com/t/nextcloudpi-planning-to-discontinue-its-docker-version-with-nc-25/158895

Run in LXD

# Imports the LXC image, replace the X's with version number
lxc image import "NextcloudPi_LXD_vX.XX.X.tar.gz" --alias "nextcloudpi"

# Launches a container from the image
lxc launch "nextcloudpi" ncp

# Starts the container you've launched from the imported image
lxc start ncp

Run in Proxmox

Use the install script from tteck to install the LXC container on your Proxmox instance

He has multiple helper scripts available for Proxmox on his website, do go have a look if you're using Proxmox. 👍

Installation: bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/nextcloudpi-v5.sh)"

Default Settings: 2GB RAM - 8GB Storage - 2vCPU

(Check his website if this has changed and we haven't had the time to update it here yet, it's located under: Media - Photo > NextcloudPi LXC)

Thenk you tteck ❤️ for making the helper script & letting us use this for Proxmox installations 🙏

You can find his GitHub repository with his helper scripts here.

How to build

Packages

  • apt-utils
  • apt-transport-https
  • build-essential
  • binfmt-support
  • binutils
  • bzip2
  • ca-certificates
  • chroot
  • cron
  • curl
  • dialog
  • lsb-release
  • jq
  • git
  • psmisc
  • procps
  • wget
  • whiptail
  • qemu
  • qemu-user-static

Raspberry Pi IMG

git clone https://github.com/nextcloud/nextcloudpi.git
cd nextcloudpi
./build/build-SD-rpi.sh

Armbian-based board

./build-SD-armbian.sh odroidxu4   # supported board code name

LXD

./build/build-LXD.sh

NextcloudPi can be installed in any architecture running the latest Debian

Note: this assumes a clean Debian install, and there is no rollback method

Curl install scripts

This is executed as root as indicated by the #

# curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash

If you're not root you can run it with sudo like so

curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash

Links

Website

Downloads

Nextcloud Forum

Nextcloud Forum Support

(Use the Forum for Support questions please, there's a NCP tag available, it will bridge your post to the Matrix and Telegram chats)

Contact

You can find us on the Forum, Telegram or Matrix

nextcloudpi's People

Contributors

aeon512 avatar b-abel avatar bhopmann avatar bit67 avatar budulinek avatar chiyi4488 avatar coltkondo avatar dsmic avatar fanid avatar frazhome avatar iolaum avatar llucax avatar mad73923 avatar mayermart avatar mb-finski avatar nachoparker avatar necopinus avatar ovpc avatar paschaef avatar qrest avatar rababerladuseladim avatar schoetju avatar soongjr avatar tanarri avatar thecalcaholic avatar thomasheller avatar timmthaler avatar tomturnschuh avatar zaoqi avatar zendaiowl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nextcloudpi's Issues

Doesn't work well on iPhone app

Work ok for awhile after fresh restart of server. But after several concurrent transferring it just crashed.
After I turned on the "Automatic upload of camera images" it crashed the server with the below settings:

------------------------------------
- Upload camera photos/videos: ON
------------------------------------
- Upload camera photos: ON
- Only use Wi-Fi connection: ON
------------------------------------
Upload camera videos automatically
------------------------------------
Upload camera videos: ON
Only use Wi-fi connection: ON
------------------------------------
Upload images in the background: Off
------------------------------------
UPLOAD ALL CAMERA PHOTOS/VIDEOS: OFF
(THIS ONE CAUSE MAJOR HANG TO THE APP BECAUSE I HAVE MORE THAN 1000+ Images and Videos in the gallery)
------------------------------------
Use Subfolder: ON

Adding 2nd user seems to create instability

Hi,

I encountered massive Problems, when adding a second user to my Nextcloud.
Prior to adding a second user the system seemed to work fine.
After adding a second user, the log in for the second user did never work reliable.
Error Messages started to come up sporadically for the first user "admin" as well.

Following more details:
Hope they are sufficient to reproduce. Let me know if you need logs, including path where to find them.


First time this behaviour was encountered with a system which started at v.0.12 and which was continously upgraded to v.0.16.0
Second time with a system upgraded to v.0.16.1
Third time with a system upgraded to v.0.16.0

Below the exact sequence of events with the third try.


Flashed image NextCloudPi_06-28-17.tar.bz2 to SD card

Booted Raspberry Pi (Ethernet, keyboard and HDMI Monitor connected)

called sudo raspi-config

  • changed localization settings (timezone, keyboard and UTF code)
  • changed password
  • enabled SSH
  • expand filesystem
  • reboot

logged into nextcloud (admin, ownyourbits)
admin user: Selected settings - admin => worked
admin user: Selected settings - apps => worked
admin user: Added a new user at settings - users (name "test", password, nothing else)
admin user: Selected settings - admin => worked
admin user: Selected settings - apps => worked
Logged in on a different computer for new user "test" => received error message 2., tried second time, received error message 3.
admin user: Selected settings - Personal => received error message 1.
admin user: deleted user "test"
admin user: Selected settings - Personal => received error message 1.
admin user: created user "test"
Logged out with user admin
Logged in with user test => received error message 2., tried second time, received error message 3.
Rebooted
logged into nextcloud (admin, ownyourbits)
admin user: Selected settings - Personal => worked
Logged in on a different computer for new user "test" => received error message 2., tried second time, received error message 3.


  • Used Opera on one Win Computer and Firefox and Chromium on Linux computer.

  • cleared Browsercache => Still same observations

  • First time problem was encountered error messages were received with settings - admin, second time with settings - admin and settings - apps. I.e. the menue options which were not used prior to creating a new user.


Browser Error Message 1 (appeared with tries 1 and 2)

This page isn’t working

192.168.178.33 is currently unable to handle this request.
HTTP ERROR 500


Browser Error Message 2

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache/2.4.25 (Raspbian) Server at 192.168.178.33 Port 443


Browser Error Message 3

Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.


Output of pgrep sqld => 888
Output of pgrep apache2 => 902, 921, 922
Output of pgrep php-fpm7.0 => 738, 1383, 1385, 1386

Q: Using my own subdomain

Thanks for this great tool! It definitely smooths out the process of using/installing NC.

I have a really basic question about domains. So instead of using no-ip, I just want to use my own subdomain. So traditionally with NC and apache, to use my own subdomain, I would edit /etc/apache2/sites-available/nextcloud.conf (right?). But with NextCloudPi, am I supposed to instead use dnsmasq? Or do I do both?

Sorry for my newb question. I always get stuck on DNS stuff...

Not able to SSH to 11.0.3 image

I loaded up 11.0.3 image on my pi, it works great, now got everything running.

SSH is not working, the pi is not accepting the connection.

nc-datadir didn't work for me

Hello,
I used the NextCloudPi image to install and all worked great, thanks! Then I ran nc-automount to auto mount my WD Pidrive, all is good, but when I ran nc-datadir I got this error:
Launching nc-datadir
./nc-datadir.sh: line 34: [: too many arguments
data directory Your data directory is invalid
Please check that the data directory contains a file ".ocdata" in its root.

Cannot create "data" directory
This can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/12/go.php?to=admin-dir_permissions

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:145
Stack trace:
#0 /var/www/nextcloud/console.php(91): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#2 {main} not found

I ran also ran:
pi@raspberrypi:/media/USBdrive $ ls -la
total 48
drwxrwxr-t 9 root pi 4096 Jun 2 14:02 .
drwxr-xr-x 3 root root 4096 May 30 18:12 ..
drwxr-xr-x 2 root root 4096 May 31 18:30 chuck
drwxr-xr-x 2 root root 4096 Dec 31 1969 data
drwxr-xr-x 2 root root 4096 Dec 31 1969 images
drwx------ 2 root root 16384 Dec 31 1969 lost+found
drwxr-xr-x 5 mysql mysql 4096 Jun 1 17:35 ncdatabase
drwxr-xr-x 4 root root 4096 Dec 31 1969 shared
drwxr-xr-x 2 root root 4096 Dec 17 20:18 tmp
lrwxrwxrwx 1 root root 15 May 28 15:30 USBdrive -> /media/USBdrive
pi@raspberrypi:/media/USBdrive $

So I think I have something somewhere gone bad.
Also I am running this through SSH [email protected] on my local network.

I am kind new at this type of thing so your patience is appreciated.
thanks
carlos

letsencrypt authorization fails

I have just completed a fresh install and am trying to install letsencrypt from the setup utility and I get the following error message

Configuring letsencrypt
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for mycloud.ownyourbits.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mycloud.ownyourbits.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for mycloud.ownyourbits.com

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: mycloud.ownyourbits.com
    Type: connection
    Detail: DNS problem: NXDOMAIN looking up A for
    mycloud.ownyourbits.com

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you're using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

Can't get No-IP to work

Hello,
I am logged in as pi.
When I run sudo raspi-config -> 0 NextCloudPi Configuration** ->no-ip
My data for Active, User, Pass, Domain & Time are correct.
I get this error:
Launching no-ip
update-rc.d: error: no runlevel symlinks to modify, aborting!
Done. Press any key...

When I enter: sudo noip2 -S
I get this:

No noip2 processes active.

Configuration data from /usr/local/etc/no-ip2.conf.
Account [email protected]
configured for:
host -.fakename.com
host ftp.fakename.com
host mail.fakename.com
host www.fakename.com
Updating every 30 minutes via /dev/eth0 with NAT enabled.

Any help would greatly appreciated.
thanks
carlos

Can not connect to NextCloudPi (error: untrusted domain)

I installed NextCloudPi but when I open the IP of the the Pi in the browser (from PC in local LAN or with browser on my mobile phone (not connected to WLAN)), it gives me the following message:

grafik

Translation from german by me and my english is not that good:

You access the server from a not trusted domain.

Please contact your administrator. If you are the Administrator of this instance, configure the “trusted_domains”-setting in config/config.php. A sample configuration …
If your configuration allows, as administrator you can use the following button, to set this domain as a trusted domain.

I don’t understand that, so I clicked the button.

Then my firefox complains that it can not connect!?
The browser shows the following URL:
https://localhost/index.php/settings/admin?trustDomain=nextcloudpi

Don't understand why it shows "localhost"?!?

Let's encrypt worked:
Launching letsencrypt
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for **********.dyndns.org
Waiting for verification...
Cleaning up challenges
Deploying Certificate for **********.dyndns.org to VirtualHost /etc/apache2/sites-available/nextcloud.conf
Adding Strict-Transport-Security header to ssl vhost in /etc/apache2/sites-available/nextcloud.conf


Congratulations! You have successfully enabled https://**********.dyndns.org

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=**********.dyndns.org

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at
    /etc/letsencrypt/live/**********.dyndns.org/fullchain.pem. Your
    cert will expire on 2017-09-03. To obtain a new or tweaked version
    of this certificate in the future, simply run letsencrypt-auto
    again with the "certonly" option. To non-interactively renew all
    of your certificates, run "letsencrypt-auto renew"

  • If you like Certbot, please consider supporting our work by:

    Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
    Donating to EFF: https://eff.org/donate-le

Done. Press any key...

ssh entry is missing

in the root directory of the Image must be the "ssh" file without any extension, otherwise the connection will be refused

Change Default TCP Port (apache2)

How can the default TCP (https:443) port be changed?

I modified the file /etc/apache2/sites-available/nextcloud.conf and changed the line --

<VirtualHost _default_:443> to <VirtualHost _default_:4343>
enabled the new site and reloaded apache2 configuration.

This did not seem to be sufficient. I am not sure if there are any other rules (ie., like fail2ban) that need to be updated, or any other configuration files that need modification, but making only the above configuration change did not seem to be sufficient.

Thank You.

Enable ssh on first boot

I would like to try the image but I don't have any display or keyboard so I need ssh enable form the beginning to be able to use the Pi.

With the normal Raspbian image you can achieve this adding a file called ssh to the SD root (it doesn't matter the content).

I tried this with NextCloudPi but it's not working.

Questions on backup

This is not a good way to start my first question ever on GitHub/nextcloudpi but I am trying to get my nextcloud install to perform a backup.
I installed the latest image running NC12 from ownyourbits. I finally managed to the system working with my data directory and database moved to the external USB drive.

I tried following the many tutorials for backup but it never seems to work.

My USB storage drive path for NC is /media/ncstore/ncdata, I have both the data files and database files there. What I am not able to do is copy that to another external device.

I am relatively new to linux and NC, but can usually fumble my way eventually. Not sure if did this correctly, but I tried naming the drive ncstore so I could identify the drives by name but that doesnt seem to be working. I did the partitioning on my liux machine with Gparted. Partitioned all the drives to Ext4.

I tried using Rsync to copy the directories from my NC USB drive to another USB drive but it doesnt work. I dont recall the error message ( I will post when I get a change to try again).

Will the new nextcloud pi image have the ability to run backup with the new USB data directory? Would be nice if it could copy the directory name when creating the new storage location and make that default.

I am super excited about running my nextcloud pi / raspberry pi server. I have wanted to do something like this for years.

Trying to get all my methods working first then I will build a fresh install.

Would it be possible to perform the backup to a network shared drive, example if I plug another external USB drive into my router?

I appreciate the help. Looking forward to a full implementation of NextcloudPi so I can cut the cord to onedrive/gdrive

automount and moving swapfile bug

Not so much an issue as some questions. I used the NCPi-config to move my swap file to my external hard disk. That works fine. Now, when I use the "free -t" command, it lists swap 0 Total, 0 used, and 0 free. I think that Raspbian is NOT recognizing the move of the swap file. I do see that the dphys-swapfle config file for swap does point the the correct location and is the correct size.

Just wondering if you are seeing the same thing. I am asking because I installed RPi-Monitor and it displays the swap file info. It get's that data from /proc/meminfo. on my machine that shows 0 for both total and available swap. I would like to get RPi-Montior working with the correct swap info if possible.

White screen with HTTP status 500

Flashed latest NextcloudPi 12.0 image onto a pi2, enabled ssh, plugged into my router via ethernet and disabled https.
NextCloudPi updated to version v0.12.15
Enabled nc-automount for external usb disk
Moved data and database to the usb disk
Updated nc-limits to 20gb.
Successfully deployed Nextcloud via the browser and started installing some apps.
Added Linux desktop client to a laptop and began syncing a few files and folders up to 5gb in size for about 12gb data total.
Nextcloud server crashed during the sync and wouldn't re-connect via the browser or ssh.
status-php server replied: Internal Server Error popped up on the desktop Nextcloud client under settings.
I hard rebooted the Pi and am able connect over ssh, but not via the browser or desktop client.
Typing in the pi's ip only shows a white screen in Firefox or HTTP 500 error in Chromium.
Here is the output from Nextcloud.log

Failure to load after updates

Today...

  • ran sudo apt-get update & upgrade on RPi's Raspi side
  • updated NCP to version 0.16.2
  • went to ip of ncp, received a solid white screen (Firefox). Chrome reports 500 error.

The service is currently unusable.

no-ip installer "Installation to ... failed"

Hi

I am attempting to run the installer for no-ip on my raspberry pi B running raspbian jesse and see the message

Launching installation
Installation to 192.168.0.24 failed

I suspect this is not the solution, but I am trying this whilst sshed in remotely via the noip domain in question. Would this be an issue?

Thanks for your time


What I've already done

run sudo apt-get update and sudo apt-get upgrade

I have installed dialog and run the following

./installer.sh no-ip.sh 192.168.0.24

I see the dialog that says Enter the desired configuration for no-ip

I enter my noip credentials

Active: yes
user: <email>
pass: <pass>
time: 30

I press

The error message

Launching installation
Installation to 192.168.0.24 failed

The remaining thing to try

I suspect this is not the solution, but I am trying this whilst sshed in remotely via the noip domain in question. Would this be an issue?

Let's Encrypt certificate auto renewall, How ?

I’ve enable Let’s Encrypt, resulting a certificate valid for only two month.
How do I renew (automaticly) the certificate ?
Do I have to “sudo nextcloudpi-config” every two month ?

Nextcloud 12 permissions issue on external USB

Hello and thanks for creating this!
I used your 12.0.0 file and it installed fine, I changed default pw and set for my region etc, I also connected an ext4 external HDD (sda1) and used the nc-automount option – I didnt do anything with fstab as it was not in instructions that I saw…
I moved the db and data to the USB drive and I see them there with www-data and mysql owners
pi@pi3:~$ ls /media/USBdrive -all
total 32
drwxr-xr-x 5 root root 4096 May 26 02:22 .
drwxr-xr-x 3 root root 4096 May 26 02:20 ..
drwx—— 2 root root 16384 May 26 01:51 lost+found
drwxr-x— 8 www-data www-data 4096 May 26 02:40 ncdata
drwxr-xr-x 5 mysql mysql 4096 May 26 03:00 ncdatabase
I was able to connect and login to the web GUI and create a user for myself, and also connect via phone
BUT I get permission denied listing the data directory AND I cannot create folders or files as my user I created in the web GUI or on my phone app, it just says “error creating folder”

pi@pi3:~$ ls /media/USBdrive/ncdata -all
ls: cannot open directory /media/USBdrive/ncdata: Permission denied

I saw another user claim this same issue and he provided a link to edit /etc/fstab – so i did that and now my permissions are thus:
pi@pi3:~$ ls /media/USBdrive -all
total 32
drwxrwxr-x+ 5 pi pi 4096 May 26 02:22 .
drwxr-xr-x 3 root root 4096 May 26 02:20 ..
drwxrwxr-x+ 2 pi pi 16384 May 26 01:51 lost+found
drwxrwxr-x+ 8 pi pi 4096 May 26 02:40 ncdata
drwxrwxr-x+ 5 pi pi 4096 May 26 03:33 ncdatabase

But now the Web GUI will not load at all and I still cannot create folders from the phone app.

So what permissions are needed or what steps are needed for a clean install of your 12.0.0 with a USB ext4 drive already attached? the nc-automount seemed to say this would do all of this for you but I’m hitting these permission issues.

Is there a way to easily reverse the changes I made or should I start from scratch and reflash the sd card image? If so , what is the proper step to ensure correct permissions so I can actually create folders and upload files?

Thanks much in advance! 🙂

Upgrade v0.13.0 to v0.16.2 fails [solved: corrupt SD card]

Hi,

(See cut and paste from terminal in attached file)

  1. I SSH in and am told I'm on v0.13.0
  2. sudo nextcloudpi-config
  3. Prompted immediately to upgrade to v0.16.2 (see screenshot)
  4. Accept yes
  5. Downloads nc-format-USB & nc-forward-ports
  6. Says I'm on v0.16.2
  7. sudo nextcloudpi-config
  8. Buggy interface appears with fail2ban and another only partially present on the menu (see end of text file for cut and past of the config menu)
  9. Restart
  10. Back on v0.13.0 when it starts.
  11. Repeated 3x

Best regards,
Jake

20170709 _name01
20170709 nextcloudpi bug.txt

Can not connect to NextCloudPi

Huge thank you for your quick action. Unfortunately I still have exactly the same problem :-(
Unfortunately I can't reopen the issue, so I have to open a new one with the same title. Sorry for that. As far as I read "you cannot re-open your own issues if a repo collaborator closed them".

You asked if I used my DynDNS domain in letsencrypt and that is exactly what I did. You also asked if I activated dnsmasq and I didn't do it.

One more thing: When I access my raspberry from the local LAN, my browser shows this URL: https://nextcloudpi/index.php because nextcloudpi is the network device name of my raspberry. And this is exactly the domain, that is shown in the screenshot above (the one I could add as a trusted domain by pressing the button). When I try to access the raspberry from outside (mobile phone without WLAN) I use the URL https://**********.dyndns.org and then the button (in the screenshort) shows exactly this URL as the untrusted domain that I could add.

Google took me to a few sites, that told me I should add something to the trusted_domains section in the config.php but I don't want to break your fine distribution by doing modifications I don't really understand.

Hope for more help from you.

Best regards
Ralf

letsencrypt fails [fix: open ports]

Sorry for bad English, I'm German)
Please Note: I replaced the IPv6 addresses with aaaa:aaaa:... or bbbb:bbbb:... in the following text, so that the text is easier to read.
Hello,
I'm not sure if this is the right place to ask (or the letsencrypt forum), but I have trouble setting up letsencrypt using the nextcloudpi image.

What I did:

  1. I downloaded the nextcloudpi image from here: https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ and copied it to an sd card
  2. I configured my router in a way that Port 80 won't be blocked (IPv6 port forwarding).
  3. I ran "$ sudo ip addr add aaaa:aaaa:aaaa:aaaa:cccc:cccc:cccc:cccc/64 dev eth0" on my server.
  4. I used ddnss.de to acquire a domain
  5. I ran "sudo nextcloudpi-config" -> "letsencrypt" -> "yes" -> "< mydomain >.ddnss.de" ->"start".
    Here is the output of the command:
    Launching letsencrypt
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Obtaining a new certificate
    Performing the following challenges:
    tls-sni-01 challenge for < mydomain >.ddnss.de
    Waiting for verification...
    Cleaning up challenges
    Failed authorization procedure. < mydomain >.ddnss.de (tls-sni-01): urn:acme:error:malformed :: The request message was malformed :: no working IP addresses found for "< mydomain >.ddnss.de"

IMPORTANT NOTES:

  • The following errors were reported by the server:

Domain: < mydomain >.ddnss.de
Type: malformed
Detail: no working IP addresses found for "< mydomain >.ddnss.de"

To fix these errors, please make sure that you did not provide any
invalid information to the client, and try running Certbot again.

  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.
    Done. Press any key...

If I enter my domain in the browser bar, I get a notification that something is wrong with the certificate.
I would be thankful if anyone knows why this problem occures or how to fix it.

Additional information that may be useful:

OS: Raspbian
Root acces to server?: Yes

Please note: I have not configured IPv4 port forwarding and the IPv6 configuration is a bit messed up:
Running ifconfig on the server at first bootup to see what's the IPv6 address produced the following output:
inet6 addr: aaaa:aaaa:aaaa:aaaa:bbbb:bbbb:bbbb:bbbb/64 Scope:Global
inet6 addr: fe80::cccc:cccc:cccc:cccc/64 Scope: link

I tried configure the router to forward aaaa:aaaa:aaaa:aaaa:bbbb:bbbb:bbbb:bbbb but that didn't worked so I configured the router to forward aaaa:aaaa:aaaa:aaaa:cccc:cccc:cccc:cccc and ran "sudo ip addr add aaaa:aaaa:aaaa:aaaa:cccc:cccc:cccc:cccc/64 dev eth0" on the server. Now the output of ifconfig is:
inet6 addr: aaaa:aaaa:aaaa:aaaa:cccc:cccc:cccc:cccc/64 Scope:Global
inet6 addr: aaaa:aaaa:aaaa:aaaa:bbbb:bbbb:bbbb:bbbb/64 Scope:Global
inet6 addr: fe80::cccc:cccc:cccc:cccc/64 Scope: link

This site: http://www.ipv6now.com.au/pingme.php is able to ping both aaaa:aaaa:aaaa:aaaa:cccc:cccc:cccc:cccc and < mydomain >.ddnss.de

From Owncloud to Nextcloud keeping only data directory (not the database). How ?

I’ve been using a Pi 2 + owncloud + external USB SSD (no encrypted datas) for 2 years.
I’m seting up a Pi 3 + Nextcloud (+ moved USB SSD from the Pi2).
I want the same directory with ocdata to be used by Nextcloud (not the database). I want to keep the document, photos & co at the same place.

How do I make Nextcloud scan for files in the directory and updating Nextcloud database (assuming the path is right in config.php) ?

Can't upload files >~100 kB

Installed on RPi2 interface opens fine. Can download test files.

  • When only on local network after initial installation, I could upload a 1.1 MB file.
  • Once letsencrypt, fail2ban and and noip set up, I can't upload anything larger than 100 kB, either when logged on inside network (192.168...), or from outside via URL.
  • Message is consistently "Request Entity Too Large" on Nextcloud interface (screenshot included).
  • Full reinstall, reconfiguration...same result.
  • Default max file upload size is 768 MB for both admin and new user.

Thanks.

20170525 _name01

Cant get letsencrypt working on port other than 443

Hi all..

Finally finally got port forwarding to work for my NCpi installation which is now working very well... Spending to much time on it though exploring!!Love it!

I have two remaining issues....

  1. LetsEncrypt. I have used the Auto Encryption in raspi-config. If I put my public address in the domain box I don't get any errors but when I got to my site the site is still not secure? If I put the domain that I have registered with noip, cloudwalker.webhop.me, I get errors telling me to check I have a public IP address etc.

Which ever I choose I either get errors no errors but an unsecured site. Driving me crazyyyyy!

  1. The famous cloaking of the URL at NOIP....
    If I don't cloak my URL then I can get to my site using my url cloudwalker.webhop.me externally but it shows the full public ip address and port number. If I cloak the URL in NOIP I get a blank page returned.

I'm clearly a dope and clearly missing something...

D

Graphic missing in shared email notification

When sending a share to an external email user the recipient
email has all the correct details with a banner but the graphic is broken..

brokenbanner

New fresh install, so far excellent.. Many thanks

Del

External Storage App broken?

With ssh and mount it WORKS on the Raspberry, can access all my stuff. No Problems!

  • sudo mkdir /media/PRIVAT
  • sudo mount -t cifs //xxx.xxx.xxx.xxx/PRIVAT /media/PRIVAT -o user=xyz,pass=xyz

But under External Storage App only red square?

  • FOLDER PRIVAT
  • HOST xxx.xxx.xxx.xxx
  • SHARE PRIVAT
  • USER xyz
  • PASSWORD xyz

and with smbclient over SSH, nothing.

  • sudo smbclient -U xyz -L //xxx.xxx.xxx.xxx (no errors, no output)
  • sudo smbclient -U xyz //xxx.xxx.xxx.xxx/PRIVAT (no errors, no output)
  • smbclient -U xyz //xxx.xxx.xxx.xxx/PRIVAT (Error "Speicherzugriffsfehler" in ENG "Memory access error")

My Hardware:

  • RPI 2
  • 64GB SDCARD
  • Image: NextCloudPi_06-28-17.img

Issue with nc-database.sh?

Am I just missing where the default admin passwd is ?
I ended up using
sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin

After trying to move my database a couple of times, I dove into the code.

nc-database.sh:
local SRCDIR=$( grep datadir /etc/mysql/my.cnf | cut -d= -f2 )

This is not going to work with:
pi@raspberrypi:~ $ grep -r datadir /etc/mysql/
/etc/mysql/mariadb.conf.d/50-server.cnf:datadir = /var/lib/mysql

though this does:
local SRCDIR=$( grep -r datadir /etc/mysql/ | cut -d= -f2)
but then the issue is in the fixup.

I did it manually. Looks like a running system now :-)
Thanks for your efforts.

Missing access to apps

Done my third install today, due to my own stupidity. As a result I know what should be in the apps library to enable and what isn't... I have finally got a complete secure install but noticed on this one I am missing a bunch of apps like, Weather, Notes, and a bunch more on top...

Has anyone had a similar experience and is there a way to refresh or get access to these missing apps to install them
Del

Background missing when accessing externally

Odd one this....

If I log into my ncPI locally I get the background that I installed however when I access my site externally the back ground is missing and I just get the colour that I chose in THEMING. I can still login and everything works as normal... Any ideas what happening

Regards

Del

USB HHD not showing up

Got the image loaded and followed directions to a T. Formatted hard drive to ext4. I'm using a docking station for the hard drive. It just doesn't seem to show up. Lsusb shows nothing. Any advice would be greatly appreciated. Thanks Mike

Option for using duckdns?

I prefer to use duckdns.org for my dynamic dns, as it doesn't require me to log in and confirm that I'm still using it every so often and it is free. It has very good documentation and now supports TXT record for use with letsencrypt. DuckDNS spec. Is it possible to get support for it added along with No-IP?

Web site unavailable after reboot

Installed NextcloudPI and all was working fine. The next day, I rebooted the RPi, and I an unable to connect to the web page. I just get a blank with screen in Safari, Firefox, and Chrome. Chrome does give a 500 error.

I am not a very experienced in web servers and services, so I do not know where to start. Please let me know what additional info you need for troubleshooting.

Thanks!

Permissions for data and database directories

Raspberry 2 B v1.1 and Image NextCloudPi 11.0.3.

I have mounted with fstab 'uuid=xx /media/Nextcloud defaults 0 2' a USB disk.

When I run for the first time the config tool for moving the data directory to /media/Nextcloud/data, the script exists with a green comment (seems correct). However, although I can still communicate with Nextcloud from my desktop I have the following error:

Data directory (/media/Nextcloud/data) is invalid
Please check that the data directory contains a file ".ocdata" in its root.
Cannot create "data" directory (/media/Nextcloud/data)
This can usually be fixed by giving the webserver write access to the root directory. (I have set permissions to 777, and the error stills there)

If I try to move again the datadirectory, the script fails (it says the same error). I can confirm that the data directory is successfully created and the .ocdata exists (the directory seems correct).

If I move the database directory to /media/Nextcloud/database, I can see that the dir is created and there are files there (again they seem correct). However, I lose communication with Nextcloud

Error 500: Internal server error.

The error from the script suggest to run some commands:

‘Job for mysql.service failed. See ‘systemctl status mysql.service’ and ‘journalctl -xn’ for details.’

systemctl status mysql.service
● mysql.service – LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Sat 2017-05-20 14:47:10 UTC; 5min ago
Process: 1551 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)

journalctl -xn
No journal files were found.

Optionally Disable HTTPS

Hey, awesome work and thank you sincerely! I've been planning to put NextCloud on a Pi3 for ages, but I wanted to do a docker-job, and docker on ARM is slightly painful.

The only thing about this I don't love is: I use caddy to host my site, and I'd rather not open another port and set another DNS entry for Nextcloud. I'd like instead to add a rule to caddy (which runs on another Pi) to proxy to the NextCloud Pi over the LAN, so there's only one DNS rule and open port to Caddy (which handles HTTPS transparently), and Caddy handles proxying to Apache.

With auto-HTTPS and HTTP disabled, this is slightly a pain, also. I strongly believe Lets-Encrypt powered HTTPS should be the default.. but could there be an optional config change to disable HTTPS if desired?

Share link has never been succeed

Generating link to share to others will also crash the server. I need to reboot the server to get it back to work.

Now i turned off the function.

Removing old kernel modules from packaged release

You can easily remove old kernel modules from /lib/modules/ which will reduce the image by ~150MB since you built and installed your own kernel.

uname -r
4.9.13-v7+

Thanks for this image and your work on this.

Lets encrypt error message

Hello,

Let's encrypt does not work:

(domain-name replaced by **********, fritzbox is my dsl modem/router)

Launching letsencrypt
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for **********.dyndns.org
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. .dyndns.org (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect validation certificate for tls-sni-01 challenge. Requested 65f6583faeefc92efb5f4331e34a3715.a19d6efcc0f262b7e3656651bd38f756.acme.invalid from 79.208.179.121:443. Received 1 certificate(s), first certificate had names ".dyndns.org, fritz.box, fritz.nas, myfritz.box, rk3zndlkow3plqx9.myfritz.net, www.fritz.box, www.fritz.nas, www.myfritz.box"

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: .dyndns.org
    Type: unauthorized
    Detail: Incorrect validation certificate for tls-sni-01 challenge.
    Requested
    65f6583faeefc92efb5f4331e34a3715.a19d6efcc0f262b7e3656651bd38f756.acme.invalid
    from 79.208.179.121:443. Received 1 certificate(s), first
    certificate had names "
    .dyndns.org, fritz.box,
    fritz.nas, myfritz.box, rk3zndlkow3plqx9.myfritz.net,
    www.fritz.box, www.fritz.nas, www.myfritz.box"

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A record(s) for that domain
    contain(s) the right IP address.
    Done. Press any key...

Error nextcloudpi-config change database directory to NTFS filesystem

I am using an external hard drive to store my information and the Nextcloud database as well as the swap file as it fills the micro sd.

I'm using a Raspberry Pi 3.

After starting Raspberry for the first time, I give it nextcloudpi-config, there is a new update, I update the version of Nextcloud.

I setup the external drive in the fstab
I mount the drive in the / media / external directory.
In the / media / external folder I created a folder for the database and another folder for the Nextcloud files.

I use the nextcloudpi-config command and I selected to change the database folder but it generates a mysql error, I tried stopping the mysql service before running nextcloudpi-config and it also fails:

Currently the error I have is:

root@raspberrypi:/# systemctl status mysql.service
● mysql.service - LSB: Start and stop the mysql database server daemon
   Loaded: loaded (/etc/init.d/mysql)
   Active: failed (Result: exit-code) since Fri 2017-04-21 01:25:36 UTC; 6s ago
  Process: 1559 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
  Process: 1640 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
 
Apr 21 01:25:32 raspberrypi mysqld[1804]: 170421  1:25:32 [Note] InnoDB: Highest supported file format is Barracuda.
Apr 21 01:25:36 raspberrypi /etc/init.d/mysql[2093]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Apr 21 01:25:36 raspberrypi /etc/init.d/mysql[2093]: [61B blob data]
Apr 21 01:25:36 raspberrypi /etc/init.d/mysql[2093]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")'
Apr 21 01:25:36 raspberrypi /etc/init.d/mysql[2093]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Apr 21 01:25:36 raspberrypi /etc/init.d/mysql[2093]:
Apr 21 01:25:36 raspberrypi mysql[1640]: Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
Apr 21 01:25:36 raspberrypi systemd[1]: mysql.service: control process exited, code=exited status=1
Apr 21 01:25:36 raspberrypi systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
Apr 21 01:25:36 raspberrypi systemd[1]: Unit mysql.service entered failed state.

What is the procedure that I must follow to be able to change the folders of the database and the files?

Thank you

Login Image not appearing after install

Hello. I have installed NextCloudPi based on the OwnYourBits instruction. Everything runs great. However, the login image does not appear. Instead, only a solid background color appears. This applies to the default login image and any other image file I select to serve as that image.

I have run the LetsEncrypt process, but am not certain if that would have any effect.

Would there be a permissions issue at play, here?

USB backup

Would be great to see an auto back-up option to back up the USB data drive to another external USB drive. Something that would act as an easy recovery if the original usb data drive fails.
This would include the option to remove the backup drive and keep it for safe storage and periodically plug in for the backup.

In addition to data and db backup, it would be nice to have a rolling backup for the RPI image. Something like a mirror image of Nextcloud PI, data and db that makes for an easy recovery.

Apologies if this is not posted in the correct forum. Still trying to get the hang of github

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.