Resource icon

Scripted installation of Nextcloud 28 in iocage jail 2018-03-23

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
did anyone can help ?
Yes, Basil answered your question early this morning. But there was a small bug in the script in that it doesn't properly create a default CONFIG_PATH, so you'll need to update it--run git pull in the directory where you put the script to do this.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Yes, Basil answered your question early this morning. But there was a small bug in the script in that it doesn't properly create a default CONFIG_PATH, so you'll need to update it--run git pull in the directory where you put the script to do this.

i already update it

now i can access https but it still look like this :

ssl2.png

btw, this morning i run this command too :

iocage exec nextcloud /root/remove-staging.sh.

please advice..


Regards,
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
now i can access https but it still look like this :
What does the tls section of your Caddyfile (/usr/local/www/Caddyfile) look like?
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
What does the tls section of your Caddyfile (/usr/local/www/Caddyfile) look like?

hi danb35,

here's:

root /usr/local/www/nextcloud
log /var/log/nextcloud_access.log
errors /var/log/nextcloud_errors.log

tls {
ca https://acme-staging-v02.api.letsencrypt.org/directory

}

fastcgi / 127.0.0.1:9000 php {
env PATH /bin
env modHeadersAvailable true
env front_controller_active true
connect_timeout 60s
read_timeout 3600s
send_timeout 300s
}

i've seen your post at :


i do as your post , then i've seen the ssl seem's right ,but the login page is like below :

1.PNG

2.PNG


did i have to do : (the question as a number in screenshot )
1. fill / create new admin account ?
2. just default ?
3. for database user and database password ( i know from the installer was finished, it shown ) but for the database name , i dunno , and how about localhost ? just default ?
4. Or i just click finish setup, without fill in any data ??

please advice..

Regards,
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
please advice..
Change the "ca" line to read:
Code:
       ca https://acme-v02.api.letsencrypt.org/directory

Then restart caddy with service caddy restart.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Change the "ca" line to read:
Code:
       ca https://acme-v02.api.letsencrypt.org/directory

Then restart caddy with service caddy restart.
i've done with that, after that is :


please advice ,


Thanks n regards,,
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Please don't retro-edit your posts. Were you ever able to log in to this installation?
Sorry, i'm trying to login, but the login page showing as i attached the screenshot , i just worried if i fill wrong at that field,

Or i just click finish the setup, without fill any field on that page?
 

profzelonka

Explorer
Joined
Mar 29, 2020
Messages
67
Any idea why I'd be able to access nextcloud via domain but not via devices connected to the router? I had my site working fine on both, switched routers and can't access it locally only from my phone's data service. haha I went through all the router settings now entirely, I have no idea why I lost local access when the router settings are the same. Nextcloud apps also can't access the site if phone connected to the router wifi.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Still not..
Any idea why I'd be able to access nextcloud via domain but not via devices connected to the router? I had my site working fine on both, switched routers and can't access it locally only from my phone's data service. haha I went through all the router settings now entirely, I have no idea why I lost local access when the router settings are the same. Nextcloud apps also can't access the site if phone connected to the router wifi.
Hi, just try to answer, please correct me if i am wrong,

If u're using mikrotik router , set dns static with ur domain and pointing directly to ur nextcloud ip lan address, dunno if other router,

Regards,
 
Joined
Jan 4, 2014
Messages
1,644
A split-DNS arrangement is in place. Your local DNS resolver needs to resolve the Nextcloud FQDN to the jail IP.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
hi, i try to fill in :
1. create admin account
2. storage & database leave default
3. database user : nextcloud
4 database password : passwordxxxxx
5. leave default : localhost,

then try to finish setup , shown like below

a.JPG

b.JPG


please, need advice.

Thanks n regards,
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
hi, i try to fill in :
1. create admin account
2. storage & database leave default
3. database user : nextcloud
4 database password : passwordxxxxx
5. leave default : localhost,

then try to finish setup , shown like below

View attachment 37646
View attachment 37647

please, need advice.

Thanks n regards,
Done and solved , wrong dbpassword :) actually .

Really thanks to Mr. Danb35 & Mr. Basil Hendroff
 

profzelonka

Explorer
Joined
Mar 29, 2020
Messages
67
Hi, just try to answer, please correct me if i am wrong,

If u're using mikrotik router , set dns static with ur domain and pointing directly to ur nextcloud IP lan address, dunno if other router,
A split-DNS arrangement is in place. Your local DNS resolver needs to resolve the Nextcloud FQDN to the jail IP.

Thanks guys. That's exactly what it was.

For future readers/searchers my router has it called "DNS Host Mapping" which I confused with something else. But you simply enter your hostname, as in, your domain, and the jail IP it should link to.

Cheers!
And thanks again Dan for the installer!
 

profzelonka

Explorer
Joined
Mar 29, 2020
Messages
67
A split-DNS arrangement is in place. Your local DNS resolver needs to resolve the Nextcloud FQDN to the jail IP.

It takes about 1-2 minutes to find nextcloud whenever I don't access nextcloud for some time that day, when I attempt to access nectloud (on the same network). Sometimes it doesn't load the first time at all, second attempt or third works and then it works until I encounter it again. Seems like it's a DNS issue related to this.

Encountered this by chance?
 
Joined
Jan 4, 2014
Messages
1,644
Seems like it's a DNS issue related to this.
Ping the jail IP and the Nextcloud FQDN. If they both succeed, it's not a DNS issue. If the latter fails, you have a problem with your local DNS resolver.
 

Erwin1e

Cadet
Joined
Dec 6, 2015
Messages
7
So i probably did this to myself but i am that guy who disabled the NAT rules so that my nextcloud was not longer accesible for Letsencrypt. It did not manage to renew the certificate. And wont work even if i re enable the rules and rerun Caddy.

So is there a way for me to fix this? or do i have to rerun the installation script?

If anyone can tell me where nextcloud looks for the cert files i can probably re request the mannualy. But if i use find to get pem files i get a huge amoutn of files.

Long story short.
I dunn goofed, plz help :P
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
And won't work even if i re enable the rules and rerun Caddy.
That doesn't sound right, but it should show some errors in the Caddy log--anything of interest in /var/log/caddy.log?
 
Top