Your server is doing HTTP over port 443--fix your Apache configuration.
And do you know what I should fix?
Your server is doing HTTP over port 443--fix your Apache configuration.
root@freenas:/mnt/TANK/nextcloud/db # iocage create -n "nextcloud-iocage" -r 11.1-RELEASE ip4_addr="vnet0|10.0.0.1/24" defaultrouter="10.0.0.1" vnet="on" allow_raw_sockets"1" boot="on" Setting up zpool [TANK] for iocage usage If you wish to change please use "iocage activate" Creating TANK/iocage Creating TANK/iocage/download Creating TANK/iocage/images Creating TANK/iocage/jails Creating TANK/iocage/log Creating TANK/iocage/releases Creating TANK/iocage/templates Error: no such option: -n
Try accessing it from outside your lan and you should see the secure cert.ssllabs gave me A for configuration, but the connection still isn't secure.
When i run this command I get an error saying:certbot certonly --webroot -w /usr/local/www/apache24/data/nextcloud -d YOURSITE.COM
- The following errors were reported by the server: Domain: oussorencloud.com Type: unauthorized Detail: Invalid response from http://oussorencloud.com/.well-known/acme-challenge/IIuJBZARIQpGjuFiObspBTBdK_Q62wrHHryrMV3jqUU: "<!-- Server: P3PWFWD001 --><!DOCTYPE html><body style=\"padding:0; margin:0;\"><html><body><iframe src=\"http://mcc.godaddy.com/par" To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. - Your account credentials have been saved in your Certbot configuration directory at /usr/local/etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal.
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.
What i did was just to copy the libdl.so and libdl.so.1 file from my freenas root to my iocage root /usr/lib/ which fixed it for me.wget command is looking for object "libdl.so.1"
Please help!
root@nextcloudjail:/usr/local/www/apache24/data # wget https://download.nextcloud.com/server/releases/nextcloud-13.0.1.zip
Shared object "libdl.so.1" not found, required by "wget"
I have been trying to get this installed for 2 days now. It seems that I am the only one who cannot get the mysql server started?
I read through most of the posts here and it seems that everybody has a running mysql server, mine does not start. Deleted and recreated the iocage jail 5 times already and started from scratch, but it seems that it does not matter which mariadb version I install - tried 101, 102 and 103 as well - after I do the:
$ service mysql-server start
and test it with:
$ service mysql-server status
I always get a server not running. No errors just the server not starting.
I also noticed that I do not have a my.cnf file anywhere, what am I missing?
here is what I get:
--------------------------------
Message from mariadb101-server-10.1.35_1:
************************************************************************
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.
This port does NOT include the mytop perl script, this is included in
the MariaDB tarball but the most recent version can be found in the
databases/mytop port
************************************************************************
root@nextcloud:/ # sysrc mysql_enable=yes
mysql_enable: -> yes
root@nextcloud:/ # service mysql-server start
Starting mysql.
root@nextcloud:/ # service mysql-server status
mysql is not running.
root@nextcloud:/ #
-----------------------------------------------------
Thanks for your help.
LoadModule php7_module libexec/apache24/libphp7.so
httpd: Syntax error on line 181 of /usr/local/etc/apache24/httpd.conf: Can't locate API module structure `php7_module' in file /usr/local/lib/libphp7.so: Undefined symbol "php7_module"
root@MYNAME:~ # ls -ld /mnt/MYNAME/db
drwxr-xr-x 5 mysql mysql 15 Oct 25 23:15 /mnt/MYNAME/db
$ mysql_secure_installation
$ ERROR 1146 (42S02) at line 1: Table 'mysql.user' doesn't exist
Password update failed!
mysql_install_db
and mysql_install_db --user=mysql
as described here but without success. Obviously mysql is not configured properly and is missing its tables. I also checked for databases and tables inside the mysql db.root@nextcloud:/ # pkg install nano wegt sudo The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly, please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done [nextcloud] Installing pkg-1.10.5_5... Newer FreeBSD version for package pkg: To ignore this error set IGNORE_OSVERSION=yes - package: 1102000 - running kernel: 1101001
iocage create -n "nextcloud" -r 11.2-RELEASE ip4_addr="vnet0|yourJailIPAddress/24" defaultrouter="yourRouterIPAddress" vnet="on" allow_raw_sockets="1" boot="on"
root@nextcloud:/ # portsnap fetch extract Looking up portsnap.FreeBSD.org mirrors... none found. Fetching public key from portsnap.FreeBSD.org... failed. No mirrors remaining, giving up.
Hi I have problem with cache. When I execute the commands I got:
Code:root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"' System config value memcache.local set to string \OC\Memcache\APCu root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"' System config value memcache.locking set to string \OC\Memcache\Redis root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"' An unhandled exception has been thrown: RedisException: Connection refused in /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php:84 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(84): Redis->connect('127.0.0.1', 6379, 0) #1 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(100): OC\RedisFactory->create() #2 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(42): OC\RedisFactory->getInstance() #3 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Factory.php(134): OC\Memcache\Redis->__construct('e3012fe6c576217...') #4 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(854): OC\Memcache\Factory->createLocking('lock') #5 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server)) #6 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...') #7 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...') #8 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\Lock\\ILocki...') #9 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server)) #10 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('LockingProvider') #11 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('LockingProvider') #12 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1765): OC\ServerContainer->query('LockingProvider') #13 /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php(114): OC\Server->getLockingProvider() #14 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(193): OC\Files\View->__construct() #15 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server)) #16 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('EncryptionManag...') #17 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('EncryptionManag...') #18 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1229): OC\ServerContainer->query('EncryptionManag...') #19 /usr/local/www/apache24/data/nextcloud/lib/base.php(865): OC\Server->getEncryptionManager() #20 /usr/local/www/apache24/data/nextcloud/lib/base.php(737): OC::registerEncryptionWrapper() #21 /usr/local/www/apache24/data/nextcloud/lib/base.php(1080): OC::init() #22 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...') #23 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #24 {main}root@nextcloudjail:~ #
After jail reboot i got:
Code:root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"' An unhandled exception has been thrown: RedisException: Redis server went away in /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php:54 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(54): Redis->get('e3012fe6c576217...') #1 /usr/local/www/apache24/data/nextcloud/lib/private/App/InfoParser.php(57): OC\Memcache\Redis->get('/usr/local/www/...') #2 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(621): OC\App\InfoParser->parse('/usr/local/www/...') #3 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/App.php(62): OC_App::getAppInfo('files') #4 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(220): OC\AppFramework\App::buildAppNamespace('files') #5 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(119): OC_App::registerAutoloading('files', '/usr/local/www/...') #6 /usr/local/www/apache24/data/nextcloud/lib/base.php(661): OC_App::loadApps(Array) #7 /usr/local/www/apache24/data/nextcloud/lib/base.php(1080): OC::init() #8 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...') #9 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #10 {main}root@nextcloudjail:~ #
redis.sock is present in /tmp
Can anybody help me?
Edit1: When I manualy added
to config.php and Ignore "Additional steps for php 7.1" so I left 'memcache.local' => '\\OC\\Memcache\\APCu', It seems to work... But I don't think it's ok.Code:'redis' => array ( 'host' => '/tmp/redis.sock', ),
Edit2: Wll it is not ok. Here is piece of nextcloud log:
Code:RedisException: Redis server went away
- /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php - line 114: Redis->incrBy('e3012fe6c576217...', 1)
- /usr/local/www/apache24/data/nextcloud/lib/private/Lock/MemcacheLockingProvider.php - line 73: OC\Memcache\Redis->inc('files/04107a50f...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Storage/Common.php - line 709: OC\Lock\MemcacheLockingProvider->acquireLock('files/04107a50f...', 1)
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 592: OC\Files\Storage\Common->acquireLock('files/gallery.c...', 1, Object(OC\Lock\MemcacheLockingProvider))
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1926: OC\Files\Storage\Wrapper\Wrapper->acquireLock('files/gallery.c...', 1, Object(OC\Lock\MemcacheLockingProvider))
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 2036: OC\Files\View->lockPath('/root/files/gal...', 1, false)
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1321: OC\Files\View->lockFile('/root/files/gal...', 1)
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1371: OC\Files\View->getCacheEntry(Object(OCA\Files_Trashbin\Storage), 'files/gallery.c...', '/root/files/gal...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Root.php - line 198: OC\Files\View->getFileInfo('/root/files/gal...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Folder.php - line 133: OC\Files\Node\Root->get('/root/files/gal...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Folder.php - line 142: OC\Files\Node\Folder->get('gallery.cnf')
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Service/ConfigService.php - line 191: OC\Files\Node\Folder->nodeExists('gallery.cnf')
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Service/ConfigService.php - line 101: OCA\Gallery\Service\ConfigService->configExists(Object(OC\Files\Node\Folder))
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Controller/Config.php - line 47: OCA\Gallery\Service\ConfigService->getFeaturesList()
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Controller/ConfigController.php - line 64: OCA\Gallery\Controller\ConfigController->getConfig(true)
- [internal function] OCA\Gallery\Controller\ConfigController->get(true)
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Gallery\Controller\ConfigController), 'get')
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Gallery\Controller\ConfigController), 'get')
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('ConfigControlle...', 'get', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
- [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
- /usr/local/www/apache24/data/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
- /usr/local/www/apache24/data/nextcloud/lib/base.php - line 998: OC\Route\Router->match('/apps/gallery/c...')
- /usr/local/www/apache24/data/nextcloud/index.php - line 37: OC handleRequest()
- {main}
Edit4: Well I'm probably idiot but i try again commands after third restart and it works!
I changed networking (vnet) so maybe it was the problem?
su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"' su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"' su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"' su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis port --value=0 --type=integer'
su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"' su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis port --value=0 --type=integer'
#0 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(84): Redis->connect('127.0.0.1', 6379, 0) #1 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(100): OC\RedisFactory->create() #2 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(42): OC\RedisFactory->getInstance() #3 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Factory.php(136): OC\Memcache\Redis->__construct('4133df3a4e4f42e...') #4 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(849): OC\Memcache\Factory->createLocking('lock') #5 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server)) #6 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...') #7 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...') #8 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OCP\\Lock\\ILocki...') #9 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server)) #10 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('LockingProvider') #11 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('LockingProvider') #12 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1784): OC\ServerContainer->query('LockingProvider') #13 /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php(115): OC\Server->getLockingProvider() #14 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(214): OC\Files\View->__construct() #15 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server)) #16 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('EncryptionManag...') #17 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('EncryptionManag...') #18 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1257): OC\ServerContainer->query('EncryptionManag...') #19 /usr/local/www/apache24/data/nextcloud/lib/base.php(845): OC\Server->getEncryptionManager() #20 /usr/local/www/apache24/data/nextcloud/lib/base.php(730): OC::registerEncryptionWrapper() #21 /usr/local/www/apache24/data/nextcloud/lib/base.php(1068): OC::init() #22 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...') #23 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #24 {main}root@nextcloud:/ #
su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"' su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"'
wget command is looking for object "libdl.so.1"
Please help!
root@nextcloudjail:/usr/local/www/apache24/data # wget https://download.nextcloud.com/server/releases/nextcloud-13.0.1.zip
Shared object "libdl.so.1" not found, required by "wget"