bluepoet Posted July 8 Share Posted July 8 Having a problem with Nextcloud - everything has been working without a problem for many months now. Today I noticed that when I tried to log into my server I get the following error. Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log. When I bring up the logs I see this in the logs Warning: /var/www/html/config/autoconfig.php differs from the latest version of this image at /usr/src/nextcloud/config/autoconfig.php Warning: /var/www/html/config/redis.config.php differs from the latest version of this image at /usr/src/nextcloud/config/redis.config.php Warning: /var/www/html/config/s3.config.php differs from the latest version of this image at /usr/src/nextcloud/config/s3.config.php Warning: /var/www/html/config/smtp.config.php differs from the latest version of this image at /usr/src/nextcloud/config/smtp.config.php Warning: /var/www/html/config/upgrade-disable-web.config.php differs from the latest version of this image at /usr/src/nextcloud/config/upgrade-disable-web.config.php Not sure what to do - any suggestions? Quote Link to comment
Kilrah Posted July 8 Author Share Posted July 8 (edited) These warnings seem to be a bug in the current version but they seem to be harmless, I have those too. Look in the nextcloud log in your data folder Edited July 8 by Kilrah Quote Link to comment
bluepoet Posted July 8 Share Posted July 8 Where do I find the log file - i thought it was \var\www\html\data but there is nothing past www Quote Link to comment
Kilrah Posted July 8 Author Share Posted July 8 It'll be in the location you have as data folder by default, look from unraid side. For the warnings it looks like you need to copy the default files manually (after a backup if applicable obviously) https://github.com/nextcloud/docker?tab=readme-ov-file#auto-configuration-and-nextcloud-updates Quote Link to comment
bluepoet Posted July 8 Share Posted July 8 I am not sure if there was an update or not I have this as my appdata folder /mnt/user/Media/Nextcloud/appdata/ I went to there but I see no logs. I am sure I am missing something. Quote Link to comment
Kilrah Posted July 8 Author Share Posted July 8 there are 2 folder maps in the template, one for appdata and an optional one for the storage. If that's filled it'll be in there, if not it'll be a in a data subfolder of what you mentioned. Quote Link to comment
bluepoet Posted July 8 Share Posted July 8 there is a storage folder - let me see if its there. Quote Link to comment
bluepoet Posted July 8 Share Posted July 8 Found it - not to figure out what its trying to find IND","url":"/remote.php/dav/files/bluepoet/","message":"fopen(/var/www/html/config/config.php): Failed to open stream: No such file or directory a t /var/www/html/lib/private/Config.php#221","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.29.1","version":"","data":{"app":"PHP"}} Looks like there is a file or something missing. Quote Link to comment
Kilrah Posted July 8 Author Share Posted July 8 Yup looks like your whole config.php disappeared somehow. Grab it back from a backup. Quote Link to comment
bluepoet Posted July 8 Share Posted July 8 not sure if I have a backup - if I do not sure what that is at - ill have to go search. Quote Link to comment
bluepoet Posted July 8 Share Posted July 8 (edited) I dont see a backup that I can find - i found a directory in the appdata folder but that didn't seem to fix anything - the error went away but the page still wont load - is there a way to restart from fresh without losing any of the storage files? Also going forward if I can restart this - what is a good way to back this stuff up. Still get use to whole unraid thing. Edited July 8 by bluepoet Quote Link to comment
Kilrah Posted July 9 Author Share Posted July 9 You could grab the sample config and repopulate, but you'll need the instance id (can be found in the data folder, it's the string after the "appdata_instanceid") and the secret, not sure if that can be found in the db... To start fresh you could wipe the database and the appdata folder contents ecxept the data folder within it where your actual files are, but you have to find that and make sure you've got it right... For backups, appdata backup plugin. Quote Link to comment
bluepoet Posted July 9 Share Posted July 9 I have the appdata plug in - but not sure really how to use it. i'll play with it more tonight and see what I can do. Quote Link to comment
bluepoet Posted July 9 Share Posted July 9 So i rebuilt everything - copied my files over - what command do i use to scan the files and add them into nextcloud - they are there but its not showing them. Quote Link to comment
bluepoet Posted July 9 Share Posted July 9 Figured it out - found an app i could download in nextcloud that allows me to run occ commands easily. Quote Link to comment
bluepoet Posted July 10 Share Posted July 10 One more thing for you - I got the files moved into the database, they appeared and everything seemed to be working. Then this morning when I tried to log into Nextcloud I get a permissions error. Error Your data directory is invalid. Ensure there is a file called ".ocdata" in the root of the data directory. Your data directory is not writable. Permissions can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/29/go.php?to=admin-dir_permissions. How would I fix this - I tried to go to the URL it gives but it brings up nothing. Quote Link to comment
F0R3STLANE Posted July 24 Share Posted July 24 (edited) Hello Kilrah! I have downloaded your repo (plugin) for Nextcloud with FFmpeg and i am loving it! Finally got it all configed. I have researched and researched on how i can get it to display the video thumbnails, and i just can't get it. it's driving me nuts! PLEASE help me out! I have my cron jobs up and running every 15 min. Please let me know any other details you might need. i have edited my config PHP to add the enable preview, I've downloaded the preview generator app, etc.. Also, how are you getting to this area attached? Edited July 24 by F0R3STLANE add pic Quote Link to comment
Kilrah Posted July 24 Author Share Posted July 24 All you should need is enabling them in config.php. The screenshot is from the settings of the "memories" nextcloud app. Quote Link to comment
F0R3STLANE Posted July 24 Share Posted July 24 i have found the memories settings. Looks like i am getting only a couple of errors. Please let me know if these would cause me to not have thumbnails or how i can resolve them. - `Database triggers not set up; trigger compatibility mode in use. See the documentation for information on how to resolve this. External Link` Sorry for being a pest, i have worked alonggggg time on this and i think, even my wife, is ready for me to be done Thanks Kilrah! Quote Link to comment
serch826 Posted July 27 Share Posted July 27 Hi, how to edit files in the console, like nano editor? Thanks! Quote Link to comment
Kilrah Posted July 27 Author Share Posted July 27 (edited) nano used to be there, seems NC has removed it. I'll put it back in next update, but... you should normally not need to edit files in the container. You can always add it yourself with apt update, apt install nano, just it'll be gone if the container is recreated. Edited July 27 by Kilrah Quote Link to comment
serch826 Posted July 28 Share Posted July 28 14 hours ago, Kilrah said: nano used to be there, seems NC has removed it. I'll put it back in next update, but... you should normally not need to edit files in the container. You can always add it yourself with apt update, apt install nano, just it'll be gone if the container is recreated. Ok thanks, I'm just curious cause the Linuxserver repository has nano included, your build is the best. Quote Link to comment
Gekko Posted August 4 Share Posted August 4 First of all, thanks a LOT for the work you invested in keeping this project alive! I tried several nextcloud dockers in unraid so far, the implementation of FFMPEG just makes me wonder, why this isn't implemented by the official devs, because i won't run any instance of nextcloud without it anymore! I have several questions regarding your image: As you mentioned in your initial posting, the PHP setting for the memory_limit should be increased using the template's extra parameters. As i did not find any php-locale.ini which would override the original php.ini as it is done in other distros, i tried to increase the php_post_max_size and php_upload_max_filesize as well using the extra parameters via -e PHP_MEMORY_LIMIT=2G PHP_UPLOAD_MAX_FILESIZE=15G PHP_POST_MAX_SIZE=15G as well. This ended up in an error message during the restart of the container and now it's not on the DOCKER container list in unraid anymore. Is there a chance to restart it via console? Can i remove the seemingly faulty extra parameters before i restart it? After spending literally hours of trying, i did not get the crontab companion to work in any way. Since the nextcloud-ffmpeg container is gone now, i can't go on trying further, but it is a real pain regarding all of the contradictory info snippets in this thread. There are few variables to be filled in the parameters setup of the container, but even for the nextcloud_user your initial posting gave the instruction to use user 'abc', the template itself names the user '99' and when you helped somebody using the nextcloud-ffmpeg distro, you talked about user '33'. Could you perhaps put in all the variables known to be working into that companion as a default in the future? The non-working state of the companion provokes an endless guess game on what might be the reason for the trouble...and even after hours i don't even know what the correct user is. Since this topic is about the nextcloud-ffmpeg container, it should default it's settings to that specific container for everybody to be able to override these basic settings with custom variables - not the other way around, since all other nextcloud distros i tried out had the cron jobs running out of the box, i never had to enter or edit anything, it was working from the start. Since i don't know crontab, the initial posting contains instructions that are hard for me to understand. Where do i have to put an .sh file and is it a lsio-specific path you wrote about leading to the cron.php? Does the nextcloud-ffmpeg path differ? Does it really consist of only that one line php -f /config/www/nextcloud/cron.php without anything else in it, no beginning brackets, nothing at the end? Is this file needed for the first cronjob to start generally or is this also an lsio-specific thing? Where do the minutes in the container's parameter lead to...is there a cronjob already running using that frequency, but why isn't nextcloud recognizing it? I'm sorry about all that questions, but i never got in touch with cron by now and all i want to do is get nextcloud-ffmpeg to work, since it is an awesome package besides that cron issue, that really drove me nuts by now. Thank you for any hint and have a beautiful weekend! Quote Link to comment
Kilrah Posted August 4 Author Share Posted August 4 (edited) 4 hours ago, Gekko said: This ended up in an error message during the restart of the container and now it's not on the DOCKER container list in unraid anymore. Is there a chance to restart it via console? Can i remove the seemingly faulty extra parameters before i restart it? When you get an error you can just hit back and edit again. Since that was likely closed since you go to apps, previous apps, find the template and install/correct. You need "-e" before each parameter. The crontab companion needs no change for this container, just install as is. The other instructions were how to adapt it to other NC templates / images like the LSIO / knex666 ones. 4 hours ago, Gekko said: makes me wonder, why this isn't implemented by the official devs AFAIK it is in the "Nextcloud AIO" which is their actual official solution. Edited August 4 by Kilrah Quote Link to comment
Gekko Posted August 4 Share Posted August 4 3 hours ago, Kilrah said: When you get an error you can just hit back and edit again. Since that was likely closed since you go to apps, previous apps, find the template and install/correct. You need "-e" before each parameter. Thank you so much for your answer! I tried using the -e before each parameter, but only the first one (memory_limit=2G) seems to be acknowledged, the upload size seems to be ignored (screenshot)...does the extra parameters approach need some seperation character for each parameter? I installed the crontab using vanilla variables on an nextcloud-ffmpeg installation, but in the backened, the cron service seems to get no feedback from the cronjob container. Quote Link to comment
Recommended Posts
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.