• Posts

  • Joined

  • Last visited

Everything posted by dius

  1. This is what started me trying to figure out what was wrong. I got some valuable help from a few folks on this forum. Here are my notes: Upgrading Nextcloud is best done through the command line. The Docker doesn't upgrade it. In my case, I had to first downgrade my Nextcloud docker image until I found one that worked. To do this, edit the Nextcloud Docker container template. Change the repository line. I changed mine to linuxserver/nextcloud:23.0.0 after a bit of digging. I actually did this incrementally by trying an earlier version of Nextcloud until I found one that worked. You can find the different versions (tags) here: https://hub.docker.com/r/linuxserver/nextcloud at the bottom of the page. Use the following command line to upgrade: sudo -u abc php /config/www/nextcloud/updater/updater.phar This will run the updater and when finished it will ask if you want to run occ, answer yes. When the occ is done it will ask if you want to stay in Maintenance mode. Answer no. If the updater gets stuck anywhere, it will tell you what is wrong, whereas if you use the Web UI, it just hangs. If you need to restart the updater, be sure to rename the updater updater-xxxxxx folder found in the /data folder. If you don't the update will not restart. I just used this command: mv /data/updater-(fill in the rest of the file name here) /data-DELETEMEn-updater where n is a number for each time I had to do this - I think I ended up around 8 or 9. If any files are missing, you may be able to pull them from the download folder in the updater-xxxxxx folder. I was able to get a version of the version.php file from the Git repo here: https://github.com/nextcloud/server I clicked on the file name, and then selected the text and copied it. I then went to the folder /config/www/nextcloud Using nano, I created a version.php file (because mine was missing). I then pasted the content into the file, saved and exited from nano. I was able to determine that my actual Nextcloud version was 23.0.0 when I first started the updater using the command line. It was trying to update to version 23.0.12, so that told me I was on an earlier version so I downgraded to 23.0.0 (I knew that was a valid tag by checking the tags available (noted above). Then I had to change the owner of the file with the following command: chown abc:abc /config/www/nextcloud/version.php This same command is used to change ownership of any files or folders you have to pull from the downloaded upgrade version if they are missing from your current installation. If you get any errors saying it couldn't find a file, try looking in the downloaded section (/data/updater-xxxxxxxx/download When you copy them, make sure the folder they need to go to exisit. In my case the whole folder was missing due to the upgrader already having deleted it (I think). Anyway, I decided to create the missing folder and copy the entire content over, then I had to change the ownership on the folder and all of the files underneath - you can do this recursively with the chown command: chown -r abc:abc /config/www/nextcloud/whatever folder name here/ This info may also help: https://techoverflow.net/2022/06/17/how-to-fix-nextcloud-step-is-currently-in-process-please-call-this-command-later/ To get the correct version of version.php, in the git repo, you can select the tag that matches the version you need. The version.php file is at the top level of the repo, so it should be copied to /config/www/nextcloud. I had to re-run the updater multiple times, fixing my mistakes - once it ran successfully, I just kept running it until it said there were no more updated. Then I went into the Nextcloud template again, and changed the repo line to linuxserver/nextcloud:latest. I hope this helps get you back up and running. Please let me know if you run into anything that these instructions don't help with. I will try help in any way I can. I'm not the expert by any means, but I will try.
  2. So I was finally able to fix this. First, I pulled the correct version.php file from the git repo and put it in the www/nextcloud/ directory. I had to set the ownership on it too. Next I had to copy the /core directory from the download into the nextcloud directory and set the ownership on all of those files too. With all permissions and ownerships set, the upgrade went though without a hitch. Thanks to all for your invaluable help. With a bit of digging and imagination, I was finally able to get Nextcloud up to the most current version and everything is running. Thanks a ton!!
  3. I tried to use the CLI method, but I get this error: [ ] Extracting ...PHP Warning: require(/config/www/nextcloud/updater/../version.php): Failed to open stream: No such file or directory in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658 PHP Fatal error: Uncaught Error: Failed opening required '/config/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php8') in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php:658 Stack trace: #0 phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php(695): NC\Updater\Updater->getVersionByVersionFile() #1 phar:///config/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(372): NC\Updater\Updater->extractDownload() #2 phar:///config/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(233): NC\Updater\UpdateCommand->executeStep() #3 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute() #4 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run() #5 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\Application->doRunCommand() #6 phar:///config/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(118): Symfony\Component\Console\Application->doRun() #7 phar:///config/www/nextcloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run() #8 /config/www/nextcloud/updater/updater.phar(10): require('...') #9 {main} thrown in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658 How do I fix this? I'm sure there's a quick and easy way. I'll see if I can locate any instructions in the resource material you suggested. Thanks for your help.
  4. Thanks @cat2devnull for your advice and information. I had updated Nextcloud a couple of times a year or so ago as I recall, but every time I did it ran into problems - just like now :). I was able to down grade my docker to 23.0.0, then I tried to update Nextcloud to 23.0.12, but it kept timing out. Now it's stuck on step 6, and I can't go any further. I can't get into the UI either. It just keeps telling me an update is in progress and to reload the page later. This was why I stopped updating Nextcloud and thought that updating the docker image was the same thing. Any suggestions on how I fix this newest problem? I am able to get to the console, if that helps.
  5. Unraid 6.11.5. To be honest, I'm not sure how to find out what version of Nextcloud I'm running. I've always tried to keep up with all of the latest updates so I would assume I was up to date. Is there a file I can open to find that out? The upgrade went find with no errors. Only now it doesn't work.
  6. I think I'm going to have to stop updating my Nextcloud docker image. I just updated it today (Feb 22, '23) and now when I try to access the gui, I get this error message: There are no errors or warnings in the log file. I have no idea where to look to fix this. Any pointers would be greatly appreciated. Thanks.
  7. Wow! I was only having problems accessing Nextcloud, so it never occurred to me to look at Swag. I followed these instructions, and also update my customized Nextcloud conf files and now everything is working. Thank you @sonofdbn for pointing this out to me. I'll try to remember to update the appropriate config files going forward.
  8. I wish I knew more about how this worked. I am seriously thinking about just deleting Nextcloud from my UnRaid server and starting over, but I'm not sure if that will solve anything. I'd like to get some other opinions first before I take such a drastic step.
  9. @sonofdbn I don't think those lines are significant. I have seen them from the very first time I started using Nextcloud. There definite differences in the config files, but that is due to your local setting etc. I don't know enough about the config options to know if there are any significant changes. I tried using the new sample config files, but it didn't make any difference. It looks like there may be an incompatible certificate now, but I have no idea how to figure that out.
  10. Since there doesn't seem to be any way to fix what has broken on my Nextcloud installation, I was wondering if I could simply remove it, then add it again. Would that solve my problem? For the benefit of anyone reading this, my Nextcloud service was working fine. I always accessed it using a domain. Just a couple of days ago, I was notified that there was an update to my Nextcloud docker so I went ahead and updated it. Nextcloud starts just fine. There are no errors in the log, however I can no longer access it. It doesn't matter if I use the domain or the IP address. The result is the same. It appears that there may be some kind of certificate issue but I have no idea how to debug it it and fix it. My thinking is that I may just remove it entirely from my Unraid server, then download and install a new one. I may lose all of my configurations, and may have to figure out how to get Collabora working again, but that may get me back up and running. Any other recommendations? Any help would be greatly appreciated.
  11. Thanks @Archonw for your help. In answer to your question, I always use a domain. If I click on Advanced and try to go to the site I get this error and can't go any further.
  12. I updated my Nextcloud docker container today, and now I am not able to connect to it. This is the error I get: Where should I look in order to try to diagnose this problem? I don't see any errors in the log file. Any help would be greatly appreciated.
  13. Thanks for the help. I was able to get everything working. I did a bit more reading and discovered that I had somehow managed to mess up a couple of settings in the management access settings. I set the User SSL/TLS to strict and enabled remote access. I then had to log out of the My Servers a pp, and log back in. That was the tricky part. At first it wouldn't let me log out, so I went to the website and logged out there. Then I was able to log out from my server. I then logged back in and suddenly everything was working and there were no errors. A wonder sight to see for sure. Thanks for your help. I was able to get it working. And yes I believe your suggestion was the trigger for me getting it working. From the look of things, the URLs were correct, but it made me did a little deeper. Thank goodness for documentation :).
  14. So I've been tweaking things a bit on my server - I no longer have the unsecure access problem. To fix that all I had to do was set the Use SSL/TLS in Management Access to Strict. That fixed that issue. As for the initial problem, I'm now seeing a message that says: JSON.parse: unexpected character at line 1 column 1 of the JSON data. Where can I locate this JSON file that is being parsed so I can find out what is going on? Any ideas? Thanks.
  15. After I followed the instructions to update my legacy SSL certificate, I started getting this error and can no longer connect securely to my server. I'm running Unraid 6.11.5. I see some unusual things in my Access Management page now too. Several warnings like this: When I click on the Learn More link, it just takes me to the Update Your Legacy SSL Certificate Now web page. I'd like to know where I should look to fix the unexpected token issue. Any ideas:
  16. Glad that worked for you. Unfortunately it didn't work for me. I'll keep plugging away... *UPDATE* I got it working with a configuration I had previously tried but didn't work at the time. I set the value for the alliasgroup1 key to https://mycloud.mydomain.org:443. This format now works for me. Hopefully it helps others as well.
  17. Thanks for your response. This is how I setup my aliasgroup1 variable. I've tried it with the port 443 and without. Neither works. I'm using Swag as my reverse proxy, so the config files are different. Would it help if I posted it here? Thanks again for your response.
  18. I'm still trying to get Collabora & Nextcloud to work together. Nextcloud shows that the Collabora server is reachable: Yet I can't edit any documents using the Collabora server: The swag log shows an error when I try to edit a document: And I get this error showing up in the Collabora log file: followed by several of these: I know it's asking a lot, but I have no real clue how to troubleshoot this. Any suggestions would be greatly appreciated. Thanks in advance...
  19. I'm not the sharpest knife in the drawer, so forgive my ignorance, but how do you get to this NginxProxyManager? I'm running swag on my unraid server, which incorporates Nginx, but I have never seen the interface you show in your post.
  20. Yes - using the local IP address of my server - I'm currently on the same network. However - just about 15 minutes ago, it started to work - I can now reach it remotely. I have no idea why, or what was wrong. I still can't get my Collarbora server to start though. I get a strange error logged when I try start it: --------------------------- Log snippet below ---------------------------- Generating RSA private key, 2048 bit long modulus (2 primes) .............................................................................................+++++ ...................+++++ e is 65537 (0x010001) Signature ok subject=C = DE, ST = BW, L = Stuttgart, O = Dummy Authority, CN = localhost Getting CA Private Key -e ERR: Use of domain variable is not supported. First host/domain who tries to connect to COOL is always allowed. To allow multiple host and its aliases use something like this and pass it as env variable: aliasgroup1=https://domain1:443,https://its-alias|its-second-alias:443 aliasgroup2=https://domain2:443,https://its-alias:443 For more info: https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html ----------------------- End log snippet ----------------------------------- This is all I get each time I try to start it. I realize this is not the correct forum to try solve this problem, so feel free to point me where I need to go. Thanks.
  21. I upgraded Nextcloud the other day. I soon discovered that I could no longer reach my Nextcloud service. I was wondering how I could go about troubleshooting the cause of this issue, because it was working just fine before the upgrade. I applied another upgrade this morning hoping it would solve the problem, but it still persists. The log doesn't show any problems, so I'm not sure it has anything to do with the upgrade. Thanks for any pointers or suggestions. I have just noticed that my Collabora server is not working. I don't know if that could be why I'm not able to reach Nextcloud (I rather doubt it, but thought I'd mention it just in case). Another update: I can reach Nextcloud by directly typing in the IP address of my Unraid server, but not using duckdns, like I used to be able to do. I'm guessing that it's a problem with the reverse proxy somehow.
  22. I recently upgraded my unraid license from Basic to Plus. I now am seeing a situation where I am no longer able to stay logged in to Unraid.net. When I click on the Sign In button in the upper right hand corner, it brings up the login page. I enter my credentials, and click submit. I'm then successfully logged in and the page closes. Then a few seconds later, I am signed out (I didn't sign out) and have to sign in again. I notice also that in the My Servers page I am offline. The log file doesn't show any issues. Any pointers to how to troubleshoot would be appreciated. Thanks.
  23. Yesterday I upgraded my license from Basic to Plus. I now am seeing a situation where I am no longer able to stay logged in to Unraid.net. When I click on the Sign In button in the upper right hand corner, it brings up the login page. I enter my credentials, and click submit. I'm then successfully logged in and the page closes. Then a few seconds later, I am signed out (I didn't sign out) and have to sign in again. I notice also that in the My Servers page I am offline. The log file doesn't show any issues. Any pointers to how to troubleshoot would be appreciated. Thanks.
  24. I'm getting a message telling me that my NextCloud is in Maintenance mode. Just a few minutes earlier it was working fine. I checked for any updates, and found two. I applied them then when I refreshed the page, I got the message below. I've restarted the docker image and the log shows no errors. How do I clear this so I can use the service again? Update: I did a google search and was able to fix the issue with the following: cd /config/www/nextcloud sudo -u abc ./occ maintenance:mode --off This worked.
  25. Thank you so much! You're absolutely correct. I had a small usb drive plugged in for a while and never got around to removing it. I don't use it as part of my array so it never occurred to me that it could be the cause of my problem. Now that I know better, it won't happen again. My server is up and doing a parity check now. I love unraid! When I don't mess things up, it just works. I'm very impressed!