Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Nextcloud

Featured Replies

2 minutes ago, OOmatrixOO said:

Yes Now I am one step further

 


root@Unraid:~# docker exec -it nextcloud bash
root@567f1e60d30e:/# sudo -u abc touch /config/log/nextcloud.log
bash: sudo: command not found
root@567f1e60d30e:/#

 

Type the command in manually, don't copy/paste I think this is probably the forum bug causing an issue.

  • Replies 7.1k
  • Views 1.7m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Here's my list of instructions....    Use them at your own risk.....   If upgrading to v12 please see here:   ##Turn on maintenance mode docker exec -it nextcloud occ m

  • When i did enter the docker container with ssh and did run the following command the error message was gone   sudo -u abc php /config/www/nextcloud/occ db:add-missing-indices   Onl

  • gustomucho
    gustomucho

    After tinkering with this for a while, it seems the solution is much simpler than I thought. For some reason, the only step required is to modify the config.php file. No need to install ffmp

Posted Images

try without the sudo. Maybe you don't need to use it.
remove the abc  -u abc, just do sudo touch /config/log/nextcloud.log
I wouldn't do that as Nextcloud runs as abc

Sent from my Mi A1 using Tapatalk

try without the sudo. Maybe you don't need to use it.
remove the abc  -u abc, just do sudo touch /config/log/nextcloud.log
I know that sudo -u abc works the issue is the damned forum sometimes adds invisible characters to text copied and pasted from it.



Sent from my Mi A1 using Tapatalk

[mention=88537]OOmatrixOO[/mention] like this
 
image.png.736f8535b923269da4608cb0018d4dd1.png
Do you mind? I've written the solution and he's hitting a forum bug, not an issue with the code I've written.

I do kind of know what I'm doing here.....

Test for yourself

TYPE
sudo -u abc touch /config/test

In the container and guarantee it'll work.

Sent from my Mi A1 using Tapatalk

1 minute ago, CHBMB said:

I know that sudo -u abc works the issue is the damned forum sometimes adds invisible characters to text copied and pasted from it.



Sent from my Mi A1 using Tapatalk
 

I see it works too. image.png.d72bd1a9192371d137af896799cce73c.png

@OOmatrixOO please type the command, don't copy and paste

FWIW I know it'll work as I was the one that added sudo to the container to allow us to run commands as the specified user from the command line so it would be possible to run occ as the same user that Nextcloud runs under.

Sent from my Mi A1 using Tapatalk

try without the sudo. Maybe you don't need to use it.
remove the abc  -u abc, just do sudo touch /config/log/nextcloud.log
There's no point in elevating with sudo in your example as by definition when you run a touch command in the container the file is owned by root. The purpose of sudo -u abc is to run the command as the abc user, so sudo touch and touch are essentially the same thing.

Sent from my Mi A1 using Tapatalk

2 hours ago, CHBMB said:

Type the command in manually, don't copy/paste I think this is probably the forum bug causing an issue.

If i type the command manually, then i have a new error 😞

root@567f1e60d30e:/# sudo -u abc touch /config/log/nextcloud.log
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
root@567f1e60d30e:/#

 

3 minutes ago, OOmatrixOO said:

If i type the command manually, then i have a new error 😞


root@567f1e60d30e:/# sudo -u abc touch /config/log/nextcloud.log
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
root@567f1e60d30e:/#

 

PM sent, I dunno what you're doing, but something ain't right....

22 minutes ago, gacpac said:

Those error are relating sudo, there's a thread in askubuntu here, see if you can troubleshoot from there because that shouldn't happen

https://askubuntu.com/questions/637432/sudo-comes-up-with-an-error-cannot-run-anything-as-root

 

You're missing a very very important point here.  Containers are immutable, the container I run, is the same as the container you run, which is the same as the container @OOmatrixOO is running.  I think we both know he wouldn't know where to start with that link, and Ubuntu doesn't necessarily translate well to an Alpine docker container.

 

Instead I remoted in and just pulled a fresh container, typed the commands as I set out and it worked fine.

1 minute ago, CHBMB said:

You're missing a very very important point here.  Containers are immutable, the container I run, is the same as the container you run, which is the same as the container @OOmatrixOO is running.  I think we both know he wouldn't know where to start with that link, and Ubuntu doesn't necessarily translate well to an Alpine docker container.

 

Instead I remoted in and just pulled a fresh container, typed the commands as I set out and it worked fine.

I really meant to send that to you when I quoted. So you knew what that error was and get an idea on how to go from there.

I really meant to send that to you when I quoted. So you knew what that error was and get an idea on how to go from there.
Don't take this the wrong way, but I don't need the hint.....

Like I said, I know what I'm doing here.

Sent from my Mi A1 using Tapatalk

1 minute ago, CHBMB said:

Don't take this the wrong way, but I don't need the hint.....

Like I said, I know what I'm doing here.

Sent from my Mi A1 using Tapatalk
 

Ne, I'm not. Just trying to be helpful. It's cool as long as we problem is solved. :D

9 hours ago, saarg said:

 

There is no www-data user. Use abc.

Get the following error:

could not open input file: /var/www/nextcloud/occ

58 minutes ago, mrvilla said:

Get the following error:

could not open input file: /var/www/nextcloud/occ

 

That's because you are using the wrong command. occ is not in that path in our container. Look in this link for how to turn off maintenance mode:

 

22 hours ago, saarg said:

 

That's because you are using the wrong command. occ is not in that path in our container. Look in this link for how to turn off maintenance mode:

 

Thanks! That fixed it!

Edited by mrvilla

Hi

 

I have tried to activate the app "Registration" in order for people to register by them own. 

It does not work and I just get the following:

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

Remote Address: 192.168.0.30

Request ID: zo79vlafywRVpJGLUHuq

 

Any ideas?

For the life of me I can not get the windows sync to connect. I can access NC via web when I trying to set up the client I either get timeout or it goes to the next part and I get This site can’t be reached
nextcloud.server.com took too long to respond.

 

I have removed and reinstalled everything with still no luck. I recently switched ISP's and I thought that was the problem but when I do a traceroute I get the Wan IP. I have looked everywhere and see this is a problem but I have not found a answer. Any Help would be great.

Is it possible to set up Nextcloud as a local network ONLY sync setup?

 

I'd like to sync some folders from multiple devices and have no need for access off the local network.  I would prefer it to be local only so I do not accidentally open my folder up to access from the web and also because I have no need for the feature.  Would this be accomplished in Nextcloud or by firewall rules (I am running a standalone pfSense firewall).

 

The devices I'd like to backup to Unraid and also sync are two laptops and two phones (pictures mainly for the phones).

 

Is there a better way to do this?

20 hours ago, ur6969 said:
Is it possible to set up Nextcloud as a local network ONLY sync setup?

 

I'd like to sync some folders from multiple devices and have no need for access off the local network.  I would prefer it to be local only so I do not accidentally open my folder up to access from the web and also because I have no need for the feature.  Would this be accomplished in Nextcloud or by firewall rules (I am running a standalone pfSense firewall).

 

The devices I'd like to backup to Unraid and also sync are two laptops and two phones (pictures mainly for the phones).

 

Is there a better way to do this?

No reason why not.

 

How to do it would depend on how you're planning to deploy it, behind a reverse proxy or as a solo container.

Edited by CHBMB

Perhaps anyone here can help...

 

I'm using this docker with the linuxserver letsencrypt docker as reverse proxy. Everything works well when using from the "outer world". But when inside the local network like wifi oder ethernet connectect, I always get the page of my router.

 

I know this doesn't have to do with this docker itself but any network thing.

 

This problem is on 2 sites i'm using this setup (only two different routers):

 

Fix url like cloud.***.** with CNAME entry to duckdns. This is converted to my external address of router and handled with port forwarding. As I told before, it works for usage from outer networks. Internally I get the page of my router with a wrong certificate. 

Perhaps anyone here can help...
 
I'm using this docker with the linuxserver letsencrypt docker as reverse proxy. Everything works well when using from the "outer world". But when inside the local network like wifi oder ethernet connectect, I always get the page of my router.
 
I know this doesn't have to do with this docker itself but any network thing.
 
This problem is on 2 sites i'm using this setup (only two different routers):
 
Fix url like cloud.***.** with CNAME entry to duckdns. This is converted to my external address of router and handled with port forwarding. As I told before, it works for usage from outer networks. Internally I get the page of my router with a wrong certificate. 
Do a search on this thread for hair pinning on your firewall

Sent from my SM-N960U using Tapatalk

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.