andreidelait

Members
  • Posts

    129
  • Joined

  • Last visited

Posts posted by andreidelait

  1. 17 minutes ago, AmokK said:

    So I tried the commands :

    docker exec -it nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php
    docker exec -it nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php -vv

    like @andreidelait advised, and it seems to work fine, no errors, it runs.

    I created a script to use it regularly.

    In my nextcloud instance, it still reports no cron jobs have been running for 29 days, is it supposed to be aware an external script is running ?

     

    Somethnig is wrong in that case. The command with -vv returns anything? 

  2. On 10/12/2022 at 1:15 AM, juleztb said:

    That's very much what I tried in the crontab on the host, I postet in the code block.

    Tried your statement (only difference being the -t parameter) and the result was the same:

    image.png.2db937064f61881e05291edf06c2acb7.png

    php not being found feels like my main problem. Any ideas on that?

     

    Thanks in advance!

     

    I don't really know what to say. On my server it works just fine.

    Linux 5.19.14-Unraid.
    root@Tower:~# docker exec -it nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php
    root@Tower:~# docker exec -it nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php -vv
    PHP 7.4.26 (cli) (built: Nov 18 2021 21:39:13) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with Zend OPcache v7.4.26, Copyright (c), by Zend Technologies
    root@Tower:~#

     

     

     

     

    On 10/11/2022 at 7:25 PM, Kilrah said:

    Could also be a lack of memory. Don't know about this one but the official Nextcloud image allows adding 

    -e PHP_MEMORY_LIMIT=XX

     

    in Extra parameters to give it more, I believe the default is just 128M. I use 1G.

    If that's possible and it doesn't crash anymore with more mem but some previews fail to build you can maybe increase 

    preview_max_memory

    in config.php

     

    Thank you so much for all the hints you gave me. I don't know what's wrong with it. I suspected the previews as well. I generated all of them and run every repair command I found about nextcloud. I just breaks.
    I don't think is a hw resource problem either (CPU is at 50 ish % maybe), RAM is the same 50%. I have this NC instance since v16 or 17 and it worked great.
    I deleted everything, including docker image. I started fresh with new, nextcloud, new mariadb (not keeping appdata but starting from scratch). At some point it breaks.
    Last night it froze in an mp3 folder I had. Just 20 files or so.
    I did not track exactly when this started happen. I tought it was after a nextcloud update but it might as well be after the Unraid 6.11 update and it kept doing it on 6.11.1 as well.
    At the moment I won't use the WebUI and just let our phones to sync photos because that still works well.

    So I guess I'll revisit it every update from now on.

  3. 1 hour ago, Mattaton said:

    Bumping this since it got buried pretty quick...

     

    I've had Nextcloud working fine for well over a year, but now my devices say the server is unavailable. Checking the server, NC is stuck in maintenance mode. If I manually turn maintenance mode off, the web ui then says there's an update to the mail app. When I try to update it, it says an error occurred and it goes back into maintenance mode.

     

    The "detailed logs" after the failed update says:

     

    So I'm stuck with either a mail update screen or a maintenance mode screen. Both result in a server that is unavailable/offline.

     

    I just updated to the latest nextcloud version, hoping that would knock out the issue, but no luck.

     

    I don't use the mail app, so I'm also fine if that could just be disabled to get around this.

     

    I still consider myself an unRAID/docker novice, but I can follow instructions. 😄 

     

    Thanks for any help!

     

    First of all I'm sorry because I hijacked this section of the forum last few days.
    You can disable or remove an app from terminal. If you can SSH into your server (if not you can use the terminal from Unraid WebUI) you can run these commands:

    docker exec -it nextcloud occ app:disable mail

    or 

    docker exec -it nextcloud occ app:remove mail

    If your container is not called nextcloud then replace it with your container name.

    Not sure if you can remove any app or if the app is really called mail (I deleted my nextcloud so I can't try :D)

    If the app name is not exactly mail you can run the next command to see all the apps:

    docker exec -it nextcloud occ app:list

     

    To learn more about these commands you can visit

    https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html

    • Like 1
  4. 20 hours ago, zephyr.1.2020 said:

    Hope it gets worked out. I assumed my config was breaking due to my customizations over the years. So starting over from a fresh install seams to have been it for me. 

     

    So I started from scratch this morning.
    New appdata config, new container, new maria db, new redis. 
    I copied the photos from the old instance and I managed to break it again. I t worked fine for a while, but if I tried to navigate fast trough the pictures, it just froze.
    I give up at this point.

  5. 13 hours ago, juleztb said:

    Hello there,

     

    I'm having problems with my docker container recently.

    It says that my crontabs aren't running. The background job settings are configured, as suggested (cron), yet my security overview states that the crontabs haven't run in over 5 hours. That's when I applied the latest update to my installation.

    Yet even before the update, it was said that the crontabs hadn't run in days.

     

    I already  tried  manually creating the cron for /config/www/nextcloud/cron.php from both within the container via

    */5  *  *  *  * php -f /config/www/nextcloud/cron.php

    and on my main machine via

    */5  *  *  *  * docker exec -i nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php

    neither of that did work.

    I also couldn't  run the cron.php completely manually via 

    docker exec -it php -f /config/www/nextcloud/cron.php

    as the shell reported that "php" couldn't be found because there was no $PATH variable set.

     

    Can anyone help meh fixing that?

     

    I have another problem with my nextcloud docker:

    In the default Photos App, there are neither thumbnails nor can I open any photos from my iPhone, that are saved as *.heic. I fround some tips online that one should try to reinstall ImageMagic. But my tries here failed because of php not being available, too.

    Has anyone  got HEIC Pictures going with linuxserver.io's nextcloud docker container?

     

    Thanks everyone in advance!

     

    I use User Scripts to run the cron from the host as I said a few posts above.
    You can also run the same command from Unraid terminal just to test if it works.

    docker exec -it nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php

     

    The linuxserver container uses abc user and group so you have to include it in the command.

    • Like 1
  6. 4 minutes ago, zephyr.1.2020 said:

    Sorry for the delay in responding @andreidelait I ended up starting over from scratch pretty much. I changed the port numbers for the original docker containers(mariadb, nextcloud, swag) and started over with the most recent nextcloud video from Space Invader One. This time, instead of using Duck DNS, I decided to buy a domain name off of name cheap($10/year ish) and try again. This time it seams to be working. Once past the initial install, I copied over the original data from the Nextcloud1 share into the Nextcloud2 share. Once the files were transferred, I had nextcloud rescan them by running "occ files:scan --all" That's gotten me going again with a basic install. Still have a few things to tweak, mainly getting it able to upload and download larger files. But if memory serves, I had these same issues with the last time I set it up and was able to find a solution so I'm sure it will get figured out eventually. I would like to be able to get document editing figured out but still no luck with that. 

    Thanks for the reply.
    I used the other container that pulls from official nextcloud docker and it worked better. After a few days that one frozen my server too. So I came back to this old config and lsio container. Thie one crashes every time.
    I will give it another shot with a new config, new db, as you did. I'm not to optimistic though.

    I have large downloads/uploads and collabora figured out. If you get stuck on this maybe I can help.

  7. I know this is probably related to nextcloud more than general support but I'm slowly dying here.

    Using Nextcloud WebUI crashes my server to the point I cannot access /mnt, so it manages to unmount everything or crush MD (maybe). Also Unraid WebUI does not work anymore. I still can SSH in and kinda see all the containers still running but they are unusable as long as they use a volume externally mounted. Even docker stop does not work. I don't know how to recover it from this state so I reboot. I can only reboot from SSH if I send the command twice. The server restarts and triggers a partity check every time this happens.
    Unfortunately syslog stops registering any events at the freeze moment so I cannot trace it further.
    I will attach the diagnostics before and after reboot.

    This happened since like two weeks ago and I tried different versions of Nextcloud. The same problem occures.
    The easiest way to reproduce it is to access a folder with some pictures in it, but sometimes it does it even when I'm in setting page etc.

     

    Any advice to trace this is very appreciated.

    tower-diagnostics-20221009-1519.zip tower-diagnostics-20221009-1508.zip

  8. On 9/30/2022 at 2:46 PM, zephyr.1.2020 said:

    Over this last few weeks, something is causing Unraid's webui to hang and the only way I've been able to get it back is force a reboot with the power switch. I think it could be caused by a broken config in nextcloud because I can recreate the issue when I navigate to nextcloud's webui, and search for an update. Shortly after launching everything just goes in limbo. I tried stopping the following dockers when this happens and it fails. Nextcloud, Swag, Plex. But I could stop sonarr......I just forced a reboot and captured the diagnostics. If I need to capture while the error is happening, please instruct me on how to do that. I do have SSH ability while it's hung but trying to force a reboot over ssh didn't work(or I was too impatient) so I don't know if that's working correctly when this happens either. 

     

    Thanks in advance for the help!

     

     

    zephyr-1-diagnostics-20220930-0635.zip 157.81 kB · 0 downloads

    Any follow up with this situation?
    It drives me creazy still. I've tried everything at this point and it keeps doing it.

  9. 1 hour ago, AmokK said:

    Updated to nextcloud 24.0.6 (both instance and docker container), still having cron jobs not working / something went wrong, for 21 days now.

    Can someone help me diagnose or fix this ? As nextcloud seems to work fine, is it a serious problem ?

     

    I'm curious how other users do it. I run the cron directly from the Unraid host using User Scripts.

    #!/bin/bash
    docker exec -i nextcloud sudo -u abc php -f /config/www/nextcloud/cron.php

     

    I run it every 5 min:

    */5 * * * *

     

    • Thanks 1
  10. 8 minutes ago, Abigel said:

    Hi

    I updated unraid to version 6.11.0 and then Nextcloud to the latest version.
    Then came the error message that "Your data directory is not writable..."

    I sent a chown for www-data in the docker itself. No change
    So I sent off with the addon "New Permissions" on the unraid-shares of nextcloud.

    Now it comes alternately when reloading the page an internal sever error and the 0700 error. I would be very grateful for your help. I hope I can still easily fix this?


     

    Not sure if it helps but this container uses abc user instead of www-data
    My data directory is owned by abc user and abc group with 0770 permissions.

  11. 13 hours ago, zephyr.1.2020 said:

    @andreidelait are you talking about the config file located at /user/appdata/swag/nginx/site-configs? I have 3 files in this directory. default.conf, nextcloud, and default.conf.sample. I changed nextcloud to nextcloud.conf and no luck. Were you talking about a different file?

    Yes tou are correct. That's the file.
    Also you have to restart swag after you do any modifications to these files.

  12. 32 minutes ago, zephyr.1.2020 said:

    Over this last few weeks, something is causing Unraid's webui to hang and the only way I've been able to get it back is force a reboot with the power switch. I think it could be caused by a broken config in nextcloud because I can recreate the issue when I navigate to nextcloud's webui, and search for an update. Shortly after launching everything just goes in limbo. I tried stopping the following dockers when this happens and it fails. Nextcloud, Swag, Plex. But I could stop sonarr......I just forced a reboot and captured the diagnostics. If I need to capture while the error is happening, please instruct me on how to do that. I do have SSH ability while it's hung but trying to force a reboot over ssh didn't work(or I was too impatient) so I don't know if that's working correctly when this happens either. 

     

    Thanks in advance for the help!

     

     

    zephyr-1-diagnostics-20220930-0635.zip 157.81 kB · 0 downloads

    I had the same problem as I mentioned a few posts above. I could reboot from SSH if you give the reboot command twice. After reboot always a parity check starts.
    Now I'm trying to use the official Nextcloud docker. I may come back to this one but I'm not sure.

  13. 4 hours ago, Ben4 said:

    Hello All,

     

    I a couple of days ago I updated the nextcloud docker and now the site is stuck at a Welcome to Our Server screen. I've been trying to troubleshoot myself, but have not found a solution. I did not change anything so I don't know what happened. There is nothing in the logs for nextcloud or swag that gives me a clue as to what the problem is. I updated nextcloud using the update command docker exec -it nextcloud updater.phar to the latest version 24.0.5 thinking that would fix it, but still nothing. I saw there was another docker update today and I ran that, but still the same Welcome to Our server message. Anyone know how to fix this?

    Nextcloud error_2022-09-26_20-31.png

    It's probably because of swag container. You have to add the .conf extension to your configuration files now. It wasn't the case before.
    Have a look at the logs of nextcloud and swag.

  14. The fact that you have corruption on two different drives makes me think that could be some RAM related issue, as mentioned above.
    I had this happen before. One of my four DIMMs was defective. Memtest worked for me. I removed the faulty RAM and it works great since.

  15. After the last update nextcloud crashes my server completely. I only have access via SSH but no logs no nothig.
    I can't even access /mnt. I have to reboot from SSH and starts with parity check after.

    Is anyone having issues like this?

     

    I used this container for years now bot from time to time it comes to something like this.