Nextcloud on LEDE?

I tried nextcloud, but it gives me error and I can't find the exact problem but owncloud, with exactly the same config is working fine with sqlite and mariadb 5.5

which router do you have?
which error message did you get?

olimex a20 sun7i board, dual core 1gb ram, maybe am missing some php plugins ?

{"reqId":"6bHGJjyD5CbbQf2UQw1H","level":3,"time":"2017-09-12T16:32:51+00:00","remoteAddr":"192.168.123.118","user":"admin","app":"index","method":"POST","url":"\/nextcloud\/index.php","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(217): OC\\\\Files\\\\Node\\\\Node->getFileInfo()\\n#1 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(117): OC\\\\Files\\\\Node\\\\Node->getPermissions()\\n#2 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(176): OC\\\\Files\\\\Node\\\\Node->checkPermissions(4)\\n#3 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/util.php(418): OC\\\\Files\\\\Node\\\\Folder->newFile('Nextcloud.mp4')\\n#4 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/util.php(388): OC_Util::copyr('\\\/mnt\\\/mmcblk0p4\\\/...', Object(OC\\\\Files\\\\Node\\\\Folder))\\n#5 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(486): OC_Util::copySkeleton('admin', Object(OC\\\\Files\\\\Node\\\\Folder))\\n#6 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(361): OC\\\\User\\\\Session->prepareUserLogin(true)\\n#7 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(547): OC\\\\User\\\\Session->completeLogin(*** sensitive parameters replaced ***)\\n#8 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(326): OC\\\\User\\\\Session->loginWithPassword(*** sensitive parameters replaced ***)\\n#9 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Setup.php(405): OC\\\\User\\\\Session->login(*** sensitive parameters replaced ***)\\n#10 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/core\\\/Controller\\\/SetupController.php(65): OC\\\\Setup->install(Array)\\n#11 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/base.php(951): OC\\\\Core\\\\Controller\\\\SetupController->run(Array)\\n#12 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php\",\"Line\":97}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.79 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"6bHGJjyD5CbbQf2UQw1H","level":3,"time":"2017-09-12T16:32:51+00:00","remoteAddr":"192.168.123.118","user":"admin","app":"core","method":"POST","url":"\/nextcloud\/index.php","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(217): OC\\\\Files\\\\Node\\\\Node->getFileInfo()\\n#1 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(117): OC\\\\Files\\\\Node\\\\Node->getPermissions()\\n#2 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(176): OC\\\\Files\\\\Node\\\\Node->checkPermissions(4)\\n#3 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/util.php(418): OC\\\\Files\\\\Node\\\\Folder->newFile('Nextcloud.mp4')\\n#4 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/util.php(388): OC_Util::copyr('\\\/mnt\\\/mmcblk0p4\\\/...', Object(OC\\\\Files\\\\Node\\\\Folder))\\n#5 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(486): OC_Util::copySkeleton('admin', Object(OC\\\\Files\\\\Node\\\\Folder))\\n#6 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(361): OC\\\\User\\\\Session->prepareUserLogin(true)\\n#7 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(547): OC\\\\User\\\\Session->completeLogin(*** sensitive parameters replaced ***)\\n#8 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/User\\\/Session.php(326): OC\\\\User\\\\Session->loginWithPassword(*** sensitive parameters replaced ***)\\n#9 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Setup.php(405): OC\\\\User\\\\Session->login(*** sensitive parameters replaced ***)\\n#10 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/core\\\/Controller\\\/SetupController.php(65): OC\\\\Setup->install(Array)\\n#11 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/base.php(951): OC\\\\Core\\\\Controller\\\\SetupController->run(Array)\\n#12 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php\",\"Line\":97}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.79 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"6bHGJjyD5CbbQf2UQw1H","level":3,"time":"2017-09-12T16:32:51+00:00","remoteAddr":"192.168.123.118","user":"admin","app":"core","method":"POST","url":"\/nextcloud\/index.php","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(217): OC\\\\Files\\\\Node\\\\Node->getFileInfo()\\n#1 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(117): OC\\\\Files\\\\Node\\\\Node->getPermissions()\\n#2 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(155): OC\\\\Files\\\\Node\\\\Node->checkPermissions(4)\\n#3 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/AppData\\\/AppData.php(92): OC\\\\Files\\\\Node\\\\Folder->newFolder('js')\\n#4 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/AppData\\\/AppData.php(112): OC\\\\Files\\\\AppData\\\\AppData->getAppDataFolder()\\n#5 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSCombiner.php(83): OC\\\\Files\\\\AppData\\\\AppData->newFolder('core')\\n#6 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSResourceLocator.php(105): OC\\\\Template\\\\JSCombiner->process('\\\/mnt\\\/mmcblk0p4\\\/...', 'core\\\/js\\\/merged-...', 'core')\\n#7 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/JSResourceLocator.php(68): OC\\\\Template\\\\JSResourceLocator->cacheAndAppendCombineJsonIfExist('\\\/mnt\\\/mmcblk0p4\\\/...', 'core\\\/js\\\/merged-...')\\n#8 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/ResourceLocator.php(75): OC\\\\Template\\\\JSResourceLocator->doFind('js\\\/merged-templ...')\\n#9 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(249): OC\\\\Template\\\\ResourceLocator->find(Array)\\n#10 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(132): OC\\\\TemplateLayout::findJavascriptFiles(Array)\\n#11 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(205): OC\\\\TemplateLayout->__construct('error', '')\\n#12 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(132): OC_Template->fetchPage()\\n#13 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(342): OC\\\\Template\\\\Base->printPage()\\n#14 \\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/index.php(67): OC_Template::printExceptionErrorPage(Object(OCP\\\\Files\\\\NotFoundException))\\n#15 {main}\",\"File\":\"\\\/mnt\\\/mmcblk0p4\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php\",\"Line\":97}","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.79 Safari\/537.36","version":"12.0.2.0"}

@lucize did you run a bash script to automate the install process by any chance?

1 Like

no, but is straightforward, I used php7-fpm, lighttpd (with tcp to php7-fpm), sqlite or mariadb(with tcp connection, not merged yet), and the rest of php deps described in openwrt wiki + php-xmlreader and php-xmlwriter

@lucize Did you make the following directories:

/data
/assets
/updater

Code for such

mkdir -p $ocpath/data
mkdir -p $ocpath/assets
mkdir -p $ocpath/updater

no, but the nextcloud folder was full writable by http:www-data user:group
an no instructuons about that on manual install from nextcloud page

only assets folder is missing from nextcloud root folder

so with nginx owncloud is throwing this
[error] 8189#0: *19 open() "/www/owncloud/index.php/login" failed (20: Not a directory),
and nextcloud still

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.

@lucize As this is a nextcloud install issue, please post on the nextcloud community, its a great community :wink:

yea, that was the next step, I was lazy on creating an account

thanks !

I am, there too :wink:

If you want MariaDB 5.5 LEDE:

RAMIPS: https://cdn.corifeus.com/lede/17.01.3/packages/arm_cortex-a9_vfpv3/mariadb/

ARM: https://cdn.corifeus.com/lede/17.01.3/packages/mipsel_24kc/mariadb/

Though it is very easy to compile with make menuconfig. Looks like works everywhere.
Thanks for Lucize!

I Am very interested to know how you get on! personally i have used owncloud through several router upgrades, now i run an R7800 but have my nextcloud and web server on an odroid H1, boy i regret the years of trying to get the best routers to run wordpress and owncloud, sure they worked but what a struggle to get an inferior result. now i am bang up to date on me php, sql and nextcloud all the tutorials and knowledge basses are applicable to me, life has just got a whole lot faster and easer! remember you are dealing with file transfer why not use a platform that is good at file transfer! £100 will get you an Odroid H1 server with ssd and you will be preforming as well as commercial offerings!

1 Like

@fab have you been able to install the nextcloud on lede successfully? I want to run the nextcloud on raspberrypi running lede.

no i run lede on my R7800 and linux on the Odroid, but heads up there is a very capable nextcloud image for the rpi, https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/

Ohh i forgot there is also one for the HC1, just ask yourself the question why pi? might as well go 3 times the speed (well!) not a great deal in terms of money and plud the ssd strait in and boot from it.