- Joined
- Dec 31, 2021
- Messages
- 973
I’ve been running it on 13 for a year now. Works great.I haven't tested it a lot with CORE 13, but AFAIK it works fine there.
I’ve been running it on 13 for a year now. Works great.I haven't tested it a lot with CORE 13, but AFAIK it works fine there.
I can tell you a jail created on 12, then upgraded to 13 is fine, but haven't tried it with the install on 13 directly.I haven't tested it a lot with CORE 13, but AFAIK it works fine there.
Either with NAT (port forwarding) on your Firewall/router or using a reverse proxy.How i can use another port than 80 and 443 externally, maybe 8000 and 44300, and translate then to 80 and 443 for example? how i can implement that, or it's not possible?
You could use cloudflared tunnel.How i can use another port than 80 and 443 externally, maybe 8000 and 44300, and translate then to 80 and 443 for example? how i can implement that, or it's not possible?
We would need to see the log. This would be inHello to everybody,
I don't know if anyone already showed the version update problem.
Whenever nextcloud needs to be updated, at the end I get the following error:
Internal ServerError
(see screenshot).
I don't know how to fix, only way is reinstall via script.
does this happen to anyone else too?
Thanks in advance.
MB
It should only include the one you plan to use with caddy.The api token must include all zones, or only one specific, because i have more than 1 domain there
Hi Victort,We would need to see the log. This would be in
/var/log/caddy/caddy.log
Ok. The log looks ok.Hi Victort,
I attach the log as indicated.
I specify that my jail is exposed on the internet through Caddy Reverse Proxy jail (Danb35 guide).
Reverse Proxy jail IP: 10.10.0.50
nextcloud jail IP: 10.10.0.55
thanks for your help.
MB
Can you share your Caddyfile for both the reverse proxy and the nextcloud?Hi Victort,
I attach the log as indicated.
I specify that my jail is exposed on the internet through Caddy Reverse Proxy jail (Danb35 guide).
Reverse Proxy jail IP: 10.10.0.50
nextcloud jail IP: 10.10.0.55
thanks for your help.
MB
Reinstall detected, skipping generation of new config and database RedisException: Permission denied in /usr/local/www/nextcloud/lib/private/RedisFactory.php:137 Stack trace: #0 /usr/local/www/nextcloud/lib/private/RedisFactory.php(137): Redis->pconnect('/var/run/redis/...', 0, 0, NULL, 0, 0) #1 /usr/local/www/nextcloud/lib/private/RedisFactory.php(178): OC\RedisFactory->create() #2 /usr/local/www/nextcloud/lib/private/Memcache/Redis.php(43): OC\RedisFactory->getInstance() #3 /usr/local/www/nextcloud/lib/private/Memcache/Factory.php(118): OC\Memcache\Redis->__construct('9fe6d94550f4813...') #4 /usr/local/www/nextcloud/lib/private/Server.php(1120): OC\Memcache\Factory->createLocking('lock') #5 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}(Object(OC\Server)) #6 /usr/local/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container)) #7 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...') #8 /usr/local/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...', false) #9 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query('OCP\\Lock\\ILocki...') #10 /usr/local/www/nextcloud/lib/private/Server.php(2070): OC\AppFramework\Utility\SimpleContainer->get('OCP\\Lock\\ILocki...') #11 /usr/local/www/nextcloud/lib/private/Files/View.php(117): OC\Server->getLockingProvider() #12 /usr/local/www/nextcloud/lib/private/Server.php(462): OC\Files\View->__construct() #13 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}(Object(OC\Server)) #14 /usr/local/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container)) #15 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet('OC\\Files\\Node\\H...') #16 /usr/local/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query('OC\\Files\\Node\\H...', false) #17 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query('OC\\Files\\Node\\H...') #18 /usr/local/www/nextcloud/lib/private/Server.php(1472): OC\AppFramework\Utility\SimpleContainer->get('OC\\Files\\Node\\H...') #19 /usr/local/www/nextcloud/lib/base.php(617): OC\Server->boot() #20 /usr/local/www/nextcloud/lib/base.php(1144): OC::init() #21 /usr/local/www/nextcloud/cron.php(43): require_once('/usr/local/www/...') #22 {main} Command: su -m www -c php -f /usr/local/www/nextcloud/cron.php failed!
So after going through the script there seems to be a bug. On lines 482-484 there are 2 commands concerning redis that should actually be run even when doing a reinstall, but they are bypassed if it is a reinstall.@danb35
I just did a reinstall, and am getting a 500 error also.
Code:Reinstall detected, skipping generation of new config and database RedisException: Permission denied in /usr/local/www/nextcloud/lib/private/RedisFactory.php:137 Stack trace: #0 /usr/local/www/nextcloud/lib/private/RedisFactory.php(137): Redis->pconnect('/var/run/redis/...', 0, 0, NULL, 0, 0) #1 /usr/local/www/nextcloud/lib/private/RedisFactory.php(178): OC\RedisFactory->create() #2 /usr/local/www/nextcloud/lib/private/Memcache/Redis.php(43): OC\RedisFactory->getInstance() #3 /usr/local/www/nextcloud/lib/private/Memcache/Factory.php(118): OC\Memcache\Redis->__construct('9fe6d94550f4813...') #4 /usr/local/www/nextcloud/lib/private/Server.php(1120): OC\Memcache\Factory->createLocking('lock') #5 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}(Object(OC\Server)) #6 /usr/local/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container)) #7 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...') #8 /usr/local/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...', false) #9 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query('OCP\\Lock\\ILocki...') #10 /usr/local/www/nextcloud/lib/private/Server.php(2070): OC\AppFramework\Utility\SimpleContainer->get('OCP\\Lock\\ILocki...') #11 /usr/local/www/nextcloud/lib/private/Files/View.php(117): OC\Server->getLockingProvider() #12 /usr/local/www/nextcloud/lib/private/Server.php(462): OC\Files\View->__construct() #13 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\Server->OC\{closure}(Object(OC\Server)) #14 /usr/local/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container)) #15 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(129): Pimple\Container->offsetGet('OC\\Files\\Node\\H...') #16 /usr/local/www/nextcloud/lib/private/ServerContainer.php(136): OC\AppFramework\Utility\SimpleContainer->query('OC\\Files\\Node\\H...', false) #17 /usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(57): OC\ServerContainer->query('OC\\Files\\Node\\H...') #18 /usr/local/www/nextcloud/lib/private/Server.php(1472): OC\AppFramework\Utility\SimpleContainer->get('OC\\Files\\Node\\H...') #19 /usr/local/www/nextcloud/lib/base.php(617): OC\Server->boot() #20 /usr/local/www/nextcloud/lib/base.php(1144): OC::init() #21 /usr/local/www/nextcloud/cron.php(43): require_once('/usr/local/www/...') #22 {main} Command: su -m www -c php -f /usr/local/www/nextcloud/cron.php failed!
Is this normal?
# Add the www user to the redis group to allow it to access the socket iocage exec "${JAIL_NAME}" pw usermod www -G redis iocage exec "${JAIL_NAME}" chmod 777 /var/run/redis/redis.sock
pw usermod www -G redis chmod 777 /var/run/redis/redis.sock
hi,Can you share your Caddyfile for both the reverse proxy and the nextcloud?
I just set everything up like you described and was able to update without issue.
{
email myemail@email.com
}
nextcloud.mydomain.com {
encode gzip
reverse_proxy http://10.10.0.55
header {
enable HSTS
Strict-Transport-Security max-age=31536000;
}
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
}