[Support] knex666 - Nextcloud 20


knex666

292 posts in this topic Last Reply

Recommended Posts

33 minutes ago, Marzel said:

 

ok, than i need to find out how the "Custom Nginx Configuration" in Nginx Proxy Manager work. Haven't had to use it yet.

For this, I have...

 

proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 16384m;
client_max_body_size 0;

 ...in that field and it's working fine.  Can't remember much more about it though since I set it up once and haven't touched it since.

Link to post
  • Replies 291
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Nextcloud based on the official docker hub image. Nextcloud 20.X with full ONLYOFFICE integration.   Based on: https://hub.docker.com/_/nextcloud/  Tag  20.X apache (latest)  

Option 2 seems easiest, created the following script below and set it to run every 5 min using the "Users Scripts" plugin #!/bin/bash docker exec -u www-data Nextcloud php -f /var/www/html/cron.ph

@hundsboog are you on discord? that would be much easyer.

Posted Images

1 hour ago, Cessquill said:

For this, I have...

 


proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 16384m;
client_max_body_size 0;

 ...in that field and it's working fine.  Can't remember much more about it though since I set it up once and haven't touched it since.

 

i'm not a expert put i don't think that some of this would fix my problem. Anyways thank for posting.

 

27 minutes ago, mgutt said:

i tried a different redirect but that redirected to many. But that did the trick and fixed it also for me.

 

Thank you.

Link to post
  • 2 weeks later...
  • 2 weeks later...
On 3/26/2020 at 10:48 AM, knex666 said:

Hi, 

Please read about docker network you can not reach a brige docker from host or br0 you will See very clear after reading about docker Networks. 

 

There is no Port in the integrated Version. Its just a virtual folder mapping to /apps/... 

Cheers 

Hi @knex666

is there any way to run this docker in br0 with mariadb? I want to run this docker with other IP than the Unraid-IP.

 

Link to post
2 hours ago, i-B4se said:

Hi @knex666

is there any way to run this docker in br0 with mariadb? I want to run this docker with other IP than the Unraid-IP.

 

Hi, yes if you run mariadb on br0 too, than you can reach out to that docker. If you run mardiadb on host network you will fail.

 

Cheers

Link to post

Hi, I am completely new to unraid and Docker. So sorry for my stupid questions:

 

How do I get this container running?

 

I set up a MariaDB and tried linuxserver's container first, following this guide:  https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/

 

This was working just fine, but I would very much prefer a container that is based on the official image and provides OnlyOffice integration. 

 

I am however pretty clueless how to get this up and running. 

 

This is what I did: 

 

I deleted the container and Image in the unraid WebUI, I deleted appdata/nextcloud. I also dropped and recreated the database. 

 

If I just set my Data Path and leave everything in the Template as it is I cannot access the WebUI at http://192.188.2.4:8080. 

 

If I add a Port parameter and map Container Port 80 to Host Port 444, the WebUI is accessible at http://192.188.2.4:8080.

I enter the admin users name and password as well as my database. Howeverm, this gives me a timeout and no page is loading. If I access http://192.188.2.4:444 again, from now on I am presented the login page. I enter user credentials, click login, but then nothing happens.  It tries to redirect me to http://192.168.2.4:444/login?redirect_url=/apps/dashboard/, but I am stuck forever at the login page.  

 

Please help me to get going.

 

Thank you very much. 

 

Link to post
2 hours ago, ColinMacLaren said:

Hi, I am completely new to unraid and Docker. So sorry for my stupid questions:

 

How do I get this container running?

 

I set up a MariaDB and tried linuxserver's container first, following this guide:  https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/

 

This was working just fine, but I would very much prefer a container that is based on the official image and provides OnlyOffice integration. 

 

I am however pretty clueless how to get this up and running. 

 

This is what I did: 

 

I deleted the container and Image in the unraid WebUI, I deleted appdata/nextcloud. I also dropped and recreated the database. 

 

If I just set my Data Path and leave everything in the Template as it is I cannot access the WebUI at http://192.188.2.4:8080. 

 

If I add a Port parameter and map Container Port 80 to Host Port 444, the WebUI is accessible at http://192.188.2.4:8080.

I enter the admin users name and password as well as my database. Howeverm, this gives me a timeout and no page is loading. If I access http://192.188.2.4:444 again, from now on I am presented the login page. I enter user credentials, click login, but then nothing happens.  It tries to redirect me to http://192.168.2.4:444/login?redirect_url=/apps/dashboard/, but I am stuck forever at the login page.  

 

Please help me to get going.

 

Thank you very much. 

 

Nextcloud by default is looking for a HTTPS connection.  You'll need to go into the config and make some changes if you don't plan to use SSL connections.  There is a lot of documentation on here, and I know its kind of annoying to dig, but ultimately, you might want to either install a NGINX docker and configure that for Nextcloud, or google Nextcloud http setup and edit the config to allow it to work.

 

Also, there are a lot of tweaks when it comes to NGINX as well.  So if you go that route, make sure you do some digging there.  What works for one person won't necessarily work for the next though.  Because you are uploading files, things to keep in mind: 

Timeouts for file uploads
Authentication
Apps and how they communicate
What you allow into your network

Not sure how much help I was here for you, but I atleast hope I was able to direct you to a better path.

Link to post

I'm attempting a first time fresh install and have run into the following set of problems:

 

After install is complete and I've added the ExtraParams and PostArgs I'm left in Maintenance mode. 

From the unRaid console I issue:
 

docker exec -u www-data -it Nextcloud /bin/bash
php /var/www/html/occ maintenance:mode --off


This clears the Maintenance mode but now I'm presented with:


Update to 21.0.1

Exception: Updates between multiple major versions and downgrades are unsupported.
Detailed logs

Preparing update

Set log level to debug

Turned on maintenance mode

Exception: Updates between multiple major versions and downgrades are unsupported.

The update was unsuccessful. For more information check our forum post covering this issue.

 

in the browser or

 

www-data@4e8c6e8a1b7c:~/html$ php ./occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level

 

from the container command line.

 

I've tried a occ maintenance:repair as suggesting in a different forum but still no luck.

 

This seems like a pretty substantial hurdle out of the gate. I could go with SpaceInvaderOne's process but I'm not sure there is enough of a benefit of creating an separate MariaDB container.

 

 

Link to post

Did you wait until MariaDB has been fully installed? Did you add a new user to MariaDB or did you use the root user (both would be ok, but I like to know your steps).

 

Finally I would say: Delete everything and try it again. Something like "maintenance mode" is not normal.

Link to post
2 hours ago, mgutt said:

Did you wait until MariaDB has been fully installed? Did you add a new user to MariaDB or did you use the root user (both would be ok, but I like to know your steps).

 

Finally I would say: Delete everything and try it again. Something like "maintenance mode" is not normal.

Is installing MariaDB something that has to be done separately?  I know SpaceInvaderOne's tutorial describes it but its a few years old and wasn't sure if it was still the best practice.

I've removed the docker app and image multiple times.  I am installing from the Community Applications interface choosing "Nextcloud - knex666's Repository" and the steps from the first post in this thread (setting folder rights, not concerned about external access yet). I was under the assumption it has a sqlserver of some fashion bundled if you didn't specify one.

Link to post
2 hours ago, Wvrent said:

Is installing MariaDB something that has to be done separately? 

Yes, or you are forced to use the default "SQLite", which is a file based and very slow database mechanism. On the first installation page you find options to set the IP and credentials of an external database. If you use MariaDB only for Nextcloud, then you could use "root" as username and the password which you set in the container's settings.

Link to post
5 hours ago, mgutt said:

Yes, or you are forced to use the default "SQLite", which is a file based and very slow database mechanism. On the first installation page you find options to set the IP and credentials of an external database. If you use MariaDB only for Nextcloud, then you could use "root" as username and the password which you set in the container's settings.

 

Turned out removing the app and the image wasn't enough.  I had to delete the appdata/nextcloud folder.

Of course now that I've had success I find out NC Hub 21 has dumped OnlyOffice for Collabra which I find to be much more sluggish

 

*sigh*

 

Thanks for the help regardless.  Progress has been made.

 

 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.