cat2devnull

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by cat2devnull

  1. If you want access from outside then you need to open port 443 (HTTPS) and point it at your NGINX instance. NGINX will look after the security side of things. Take a look at some of the IBRACORP videos to get an understanding of how it all works together. You will need DDNS and a domain name but it's totally worth the effort. I suggest that you watch a bunch of videos from IBRACORP and SpaceInvaderOne and get your head around how all this technology works. A few hours of research will save you a lot of time in the long run. Generally this is done on a per computer and per browser basis, so will be dependent on what you run. Most browsers have an option when they encounter a self signed certificate to "trust" it in the future.
  2. Running NGINX is for local or remote access. If you truely only ever intend to access your NextCloud instance from a machine or two on your LAN then the solution is to add the lsio cert to the trust store on your machine and your done. Otherwise install NGINX and let it manage the HTTPS certs. I made a post for Vaultwarden to explain how it works for both LAN and WAN connections but you can just replace Vaultwarden for NextCloud. This is the better way to set things up. Trust me, it won't be long before you find other uses for NGINX. I initially set it up for Vaultwarden but now it manages NextCloud, Plex and a bunch of other services.
  3. The idea with NextCloud and other applications such as Bitwarden, is that you access the app via a reverse proxy such as NGINX. This can then manage certificates automatically from Let's Encrypt.
  4. This is a fairly simple issue. Mover will not move a file between the cache and array or vice versa if the file or directory ends with a space character. Replication is simple, create a file that ends with a space, adjust the share so it will want to move the file between the array and cache and then run mover. The file will be left behind while everything else will move.
  5. So you have to get NextCloud to rescan the existing data folder and add all the files to the database. php occ files:scan --all
  6. Great to hear. Just go the the latest supported versions, either 25 or 26. I would upgrade the docker to the latest 19.x release first and then upgrade NC to 19.x. You can find the correct docker tag by using the search function and searching for "19." Rinse and repeat until you are up to date. It will take a number of iterations since you can only go one major release at a time. After each upgrade check if NC reports any issues under Administration Settings -> Overview. You may need to run a few database commands by hand after some of the updates. Just remember in future to upgrade both docker and NC a bit more often so you don't get out of sync again. 😀 Not that you need this anymore but yes. You just reinstall, point the data folder at the appropriate directory and then run "php occ files:scan --all" and it will rescan the folder and add all the files to the database.
  7. Since you are only using it for file storage. If the downgrade doesn't work then just install a fresh copy of 26.0.2 and move your files across. That should take less than an hour of work and has the advantage that you will be on the latest version. SpaceInvader did an updated NextCloud install video in 2022 which is very easy to follow.
  8. Great so you're config and version files both seem to be in sync with version 18.0.3 so that's a good start. I think your upgrade then downgrade of the docker has introduced this PHP issue. You must be on a version (I think you said 7.4.33) that is not compatible with 18.0.3. According to the PHP release history, 7.4.33 was the last 7.4 release and came out in Nov 2022. It is probably too new for NC 18.0.3 which is from years earlier. You could try downgrading to 18.0.3-ls76 which is the linuxserver.io version for NC 18.0.3 but I don't know if that specifies an older PHP as well or if it will just pull the latest. But it's worth a shot. If not the next step would be trying to do a downgrade of PHP within the docker but I have no idea how to do that.
  9. Ok so we at least we have a GUI again, even if it won't let us do anything because it thinks we are mid upgrade. Go into the docker shell and run the command "occ status". You should see something like; root@1384826c6432:/# occ status - installed: true - version: 25.0.5.1 - versionstring: 25.0.5 - edition: - maintenance: false - needsDbUpgrade: false - productname: Nextcloud - extendedSupport: false Then check what the version.php thinks; cat /config/www/nextcloud/version.php Also check what version the config file thinks; cat /config/www/nextcloud/config/config.php | grep version All of these should be in agreement. I suspect that they are not because of a previous failed install. I thought step 3 is where it turns on maintenance mode. So it would be good to know what mode "occ status" thinks it is in. You could try to repair the database; occ maintenance:repair As for the actual error; Could not resolve OCA\Settings\AppInfo\Application! Class OCA\Settings\AppInfo\Application! Class OCA\Settings\AppInfo\Application does not exist in /config/www/nextcloud/lib/private/AppFramework/Utility/simpleContainer.php:106 I found a bit of stuff here, but I have never really done any PHP so I can't say if this is a problem because you are still running an incompatible version of PHP or if you have a half upgraded/corrupted copy of NextCloud. I've never had an upgrade fail. If you only use NextCloud for file storage then you might find it easier to restore from a backup or just rebuild the docker from scratch. If that's not an option then in theory assuming your database is intact and your config folder is correct (see my earlier comment about 'occ stats', version.php and config.php needing to be in sync) then you should be able to create a new NextCloud2 docker using an appropriately old version from linuxserver.io Start by downloading an old version without pointing it at your appdata folder and make sure you have one that is using an appropriate 18.x version of NC and a suitable PHP7.x Once you have that, then point that new docker at your old appdata folder and it should fire back up.
  10. You can see all the available tags on their page. Just edit the NextCloud docker on Unraid and change the repository line to read lscr.io/linuxserver/nextcloud:<tag> where <tag> is the version you want to roll back to. I'm not sure what was the last docker version to ship with PHP7 so maybe try 24.0.12 The documentation says they moved to PHP8 on 10/10/22 but it's unclear if that was in all releases or only docker 25.x and 26.x NextCloud 18.x is really old. Without a really compelling reason to be on an unsupported platform from 2021, I would recommend upgrading to a version that is still getting security patches. Even after upgrading to 18.0.14 you won't be able to go back to the "latest" docker version because you still won't be running a version that can support PHP8.
  11. There are plenty of posts over the last couple of months about this. Basically you have been updating the NextCloud docker but not updating NextCloud itself. There are a few options, you could downgrade the docker, get NextCloud running again on PHP7 and then update via the GUI. The other option is to upgrade via the command line within the docker shell. sudo -u abc php /config/www/nextcloud/updater/updater.phar occ upgrade When upgrading you can only update one version at a time. So the question is what version are you actually on, and what version is it trying to upgrade to? This seems to be an issue that a few users have been hitting recently. It may be the case that if you upgrade to the latest docker, hit the PHP issue and then try to upgrade NextCloud it gets into a weird state where the upgrade process fails part way through and the versioning gets out of sync. Eg, it is actually on v22 but thinks its on v23 so attempts an upgrade to v24 (if that makes sense). You can check as per my earlier post here.
  12. I didn't see anything concerning in the logs. Are you getting errors access nextcloud from just the web interface or also the native client? Might be worth deleting any old browser cookies/cache and trying again.
  13. Great stuff, starting to get somewhere. This is just because we had to hand edited the file so we broke the hash. Not a big deal. Ok, sorry that's on me. I gave you the wrong command because I didn't read the upgrade docs carefully. updater.phar prepares the system for an upgrade and performs the steps listed; Check for expected files Check for write permissions Enable maintenance mode Create backup Downloading Extracting Replace entry points Delete old files Move new files in place Once that is done, it is ready to perform the upgrade which uses the "occ upgrade" command. So you're making progress. Looks like you are on 24.0.12. FYI running "docker exec -it nextcloud updater.phar" from Unraid is the same as running "updater.phar" from the NextCloud docker directly. 2 steps forward 1 step back So first just make sure you are on php 8 as 24.0.12 can't run on php 7. Run "php -v" from within the docker. The log files of interest are; /config/log/php/error.log /config/log/nginx/access.log /config/log/nginx/error.log This is probably a permissions issue... But that's an educated guess. See if there are any errors in the logs. Sorry this is taking so much back and forth but I have never hit this type of corruption during an upgrade and I'm not an expert. I know just enough to be dangerous. If anyone else on this forum knows what their doing, feel free to jump in.
  14. Worth a shot. So what does "occ status" think now? And what version is it trying to update to? Also you could try performing "occ integrity:check-core" and "occ maintenance:repair" to see if it can fix the issue. You could also try performing the upgrade via the command line, you might get some more useful debugging. "occ upgrade"
  15. Don't take the blog to literally. It was just meant to be a basic guide. The blog was written for a docker that doesn't come with a text editor and he is showing how to install nano. The linuxserver.io docker includes nano and vi already. Just use which ever text editor you are more comfortable with. The main thing is that you need to edit your version.php file to look like; <?php $OC_Version = array(23,0,12,2); $OC_VersionString = '23.0.12'; $OC_Edition = ''; $OC_Channel = 'stable'; $OC_VersionCanBeUpgradedFrom = array ( 'nextcloud' => array ( '22.0' => true, '23.0' => true, ), 'owncloud' => array ( '10.11' => true, ), ); $OC_Build = '2023-03-21T09:23:03+00:00 62cfd3b4c9ff4d8cdbbe6dcc8b63a1085bb94e3d'; $vendor = 'nextcloud'; Now restart the docker and see if you can get back into the GUI. It should all be happy now and offer an upgrade to 24.x
  16. So I have not hit this myself but it looks like NextCloud is either trying to upgrade or downgrade in an unsupported way. It is normally only allowed to upgrade one major release at a time. Eg if it is currently on 22.x.x then it can go to 23.x.x but not to 24.x.x or higher. This usually happens when it gets confused because of a failed upgrade attempt in the passed so it thinks it is on a higher version than it actually is. Eg it thinks it's on 25.x and wants to upgrade to 26.x but it actually is on 24.x Check what version of NextCloud the GUI thinks it is on and what it wants to upgrade to. This can be seen on the administration overview page (like I posted yesterday). Then go into the docker shell and run the command "occ status". You should see something like; root@1384826c6432:/# occ status - installed: true - version: 25.0.5.1 - versionstring: 25.0.5 - edition: - maintenance: false - needsDbUpgrade: false - productname: Nextcloud - extendedSupport: false Then check what the version.php thinks; root@1384826c6432:/# cat /config/www/nextcloud/version.php <?php $OC_Version = array(25,0,5,1); $OC_VersionString = '25.0.5'; $OC_Edition = ''; $OC_Channel = 'stable'; $OC_VersionCanBeUpgradedFrom = array ( 'nextcloud' => array ( '24.0' => true, '25.0' => true, ), 'owncloud' => array ( '10.11' => true, ), ); $OC_Build = '2023-03-23T12:04:47+00:00 28add7e896b24fee2714b21a12151e4042ab677c'; $vendor = 'nextcloud'; Also check what version the config file thinks; root@1384826c6432:/# cat /config/www/nextcloud/config/config.php | grep version 'version' => '25.0.5.1', All of these should be in agreement. I suspect that they are not because of a previous failed install. I would guess that you are actually on 23.x or 24.x but the installer thinks you are on 25.x and it trying to take you straight to 26.0 You need to bring them all back so the system thinks it's on the correct version then it should be happy to upgrade and all going well, no further problems. Here is a blog that walks through the issue. Just keep in mind that since you are using the LinuxServer.io docker the path to the files above is slightly different than what is in the blog. Also it is possible depending on what version you are going from, you might need downgrade the docker by using a specific docker tag, but I wouldn't do that unless you hit a problem. NextCloud have some nice instructions on the normal upgrade process if you want to get your head around it.
  17. That looks fine. It's just warning you that it might timeout due to the size of the update. I have found that can happen but you just re-run the update and it continues where it left off. Just give it a try or you can perform the update from the command line which should work now that you have updated to docker.
  18. This is what happens when you upgrade NextCloud (so it needs a newer PHP 8.x) but don't upgrade the docker (has old PHP 7.x). Which docker are you running and what version? It sounds like you are stuck on an old version. Make sure your tag is set to "latest".
  19. This is taken from a post I did in Feb which was about the same issue of PHP and NextCould being out of sync... Unlike most docker software, upgrading the docker does not upgrade NextCloud itself. NextCloud needs to be upgraded from within its own web interface. (Click on "administration settings" in your profile icon in the top right corner of your Home Screen. That should take you to the Administration Overview link in the left hand toolbar. Scroll down and you should see an Update heading. See the attached image.) I suspect that you have not upgraded NextCloud in such a long time that the docker environment and the software are now too far out of sync to be compatible. Probably the easiest fix would be to downgrade your docker. Then from the NextCloud web interface, you can upgrade to the latest and then upgrade the docker again. You can manually set the repository from within the docker settings. Try going back to the docker for 24.0.6 from a few months ago. If you are using the docker from linuxserver.io then you can see all the available tags on their page. Just edit the NextCloud docker un Unraid and change the repository line to read lscr.io/linuxserver/nextcloud:<tag> where <tag> is the version you want to roll back to. Once you are done, just set it back to "latest".
  20. Since Nextcloud 26, the default nginx config has changed. Open the NextCloud docker terminal and edit the file /config/nginx/site-confs/default.conf Change the line add_header X-Robots-Tag “none” always; to add_header X-Robots-Tag “noindex, nofollow” always; Restart and you should be good. You check your Nextcloud headers before and after at: https://headers.4tools.net/
  21. Where does Unriad store its docker config. Happy to make changes with vi for the dockers that need it.
  22. I know that this has been asked a few times but I couldn't find an answer. I have a home network with multiple VLANs. (home, IoT, guest, cameras, etc) They are pushed to my Unraid server over a trunk port from my switch. I have several dockers that need to exist across several VLANs to provide services into more than one. How can I add a second/third network interface to a docker?
  23. The advantage of using something like VS Code to edit config files. As soon as you stuff up the syntax it's really obvious. Now don't get me wrong, mad respect for the vi diehards but I'd rather not waste time on silly errors.
  24. Hard to say if this is exactly your issue but make sure you have your internal DNS pointing to the nextcloud server directly or the nginx servers internal address, not your external address. Otherwise you are trying to bounce traffic via your router/firewalls external IP address which will be blocked. I put a post up on the valtwarden forum a while back about a similar issue they have where all traffic has to be HTTPS so it is best to bounce both internal and external traffic through the nginx proxy. This is not quite what your trying to do but the DNS principle is the same. Ext DNS: cloud.mydomain.com -> my_ddns_ext_ip Int DNS: cloud.mydomain.com -> either nginx or nextcloud server Hope this makes sense. https://github.com/dani-garcia/vaultwarden/discussions/1749#discussioncomment-4701804
  25. Try upgrading from the command line. Go into the console and type: sudo -u abc php /config/www/nextcloud/updater/updater.phar sudo -u abc php /config/www/nextcloud/occ upgrade sudo -u abc php /config/www/nextcloud/occ maintenance:mode --off