Policy0702
Cadet
- Joined
- Aug 3, 2023
- Messages
- 9
Personal Experience
If I must say the obvious. I am new to TrueNAS. Currently I am home user who is starting to do some IT work for individuals and small businesses. I have been using linuxmint as my daily driver for 3+ years now so I have a fairly decent understanding of the concepts but a weaker understanding of the particulars (commands/syntax) on how debian based systems run. I have no experience with distros other than debian based.
Objective
I have a turnkeylinux nextcloud vm running in XCP-ng that I want move to TrueNAS Scale. I also want to add more instances of Nextcloud, (personal/business, etc) so I would like to run several apps simultaneously if that is possible. I must be able to access/backup the nextcloud data in a way that is independent of TrueNAS as well as being able to pull files out of the backups if necessary.
Current Setup
Dell T3600 with an Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz (8 cores with hyper-theading) and 31.3GiB (ECC) RAM
TrueNAS-SCALE-22.12.3.3 freshly installed with no important data on it so not a huge deal if I nuke it.
Boot Pool is on a 240G PNY SSD (no redunacy)
Data Pool is 1 vdev with 2 PNY 1TB SSDs striped. (Once I have the money I'll do it right but for now I'll just restore offsite backups in the event of a drive failure)
Attempted Setup
I created a dataset that I want to use exclusively for this one nextcloud app. I created 3 directories inside of that dataset, ~data/, ~db/, ~dbbk/, each for their own mapping to the nextcloud app. I installed the Nextcloud app via the webui and with the Nextcloud data directory mapped to ~data/, Postgress mapped to ~db/, and the backup mapped to ~dbbk/ .
Result
This setup would not work. According to the logs, postgres would come up and be fine but the nextcloud container would seem to loop, spin up, fail, restart, etc. By repeatedly trying to view the logs, I was occasionally able to view them while the container was up. The logs were showing read errors first for /var/www/html/occ. I tweaked permissions on the dataset and was finally able to resolve that, only to have errors by Apache not being able to access .htaccess. I don't remember when or how I got that resolved but eventually I was able to resolve all the errors in the logs for the containers.
I had the best success by exactly matching the file permissions in my dataset to the "ix-applications" dataset.
Current Problem
Nextcloud's login screen loads like expected but I cannot login. I double and triple checked my password but it simply will not work. It just repeatedly asks for my password but does not show any "incorrect password" error. (My active NC does) After enough attempts it blocks my IP address. I can see the login activity in the log for the nextcloud container and somehow it is getting my IP banned but seems unable to write anything else.
My Conclusions/Assumptions
It seems that NC is not able to authenticate my login due not being able to write data to disk. (Why no errors is beyond me)
This most certainly has to do with my mapping the "nextcloud" dataset to the app instead of using the defaults since it works when I leave those fields empty.
I am at a loss of where to go next. I do not understand how data is stored in the ix-applications dataset and I am on the impression that is not what it is for.
Later:
After looking at more forum posts it is looking to me like TrueNAS scale apps are just simply not working well at this point. If no one has a solution I believe I will go back to using VMs on xcp-ng and just use TrueNAS for file storage. I was really looking forward to being able to use some of the extra compute power I have on my TrueNAS machine by running apps or VMs on it.
If anyone has any pointers I would be happy try things.
Thanks!
If I must say the obvious. I am new to TrueNAS. Currently I am home user who is starting to do some IT work for individuals and small businesses. I have been using linuxmint as my daily driver for 3+ years now so I have a fairly decent understanding of the concepts but a weaker understanding of the particulars (commands/syntax) on how debian based systems run. I have no experience with distros other than debian based.
Objective
I have a turnkeylinux nextcloud vm running in XCP-ng that I want move to TrueNAS Scale. I also want to add more instances of Nextcloud, (personal/business, etc) so I would like to run several apps simultaneously if that is possible. I must be able to access/backup the nextcloud data in a way that is independent of TrueNAS as well as being able to pull files out of the backups if necessary.
Current Setup
Dell T3600 with an Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz (8 cores with hyper-theading) and 31.3GiB (ECC) RAM
TrueNAS-SCALE-22.12.3.3 freshly installed with no important data on it so not a huge deal if I nuke it.
Boot Pool is on a 240G PNY SSD (no redunacy)
Data Pool is 1 vdev with 2 PNY 1TB SSDs striped. (Once I have the money I'll do it right but for now I'll just restore offsite backups in the event of a drive failure)
Attempted Setup
I created a dataset that I want to use exclusively for this one nextcloud app. I created 3 directories inside of that dataset, ~data/, ~db/, ~dbbk/, each for their own mapping to the nextcloud app. I installed the Nextcloud app via the webui and with the Nextcloud data directory mapped to ~data/, Postgress mapped to ~db/, and the backup mapped to ~dbbk/ .
Result
This setup would not work. According to the logs, postgres would come up and be fine but the nextcloud container would seem to loop, spin up, fail, restart, etc. By repeatedly trying to view the logs, I was occasionally able to view them while the container was up. The logs were showing read errors first for /var/www/html/occ. I tweaked permissions on the dataset and was finally able to resolve that, only to have errors by Apache not being able to access .htaccess. I don't remember when or how I got that resolved but eventually I was able to resolve all the errors in the logs for the containers.
I had the best success by exactly matching the file permissions in my dataset to the "ix-applications" dataset.
Current Problem
Nextcloud's login screen loads like expected but I cannot login. I double and triple checked my password but it simply will not work. It just repeatedly asks for my password but does not show any "incorrect password" error. (My active NC does) After enough attempts it blocks my IP address. I can see the login activity in the log for the nextcloud container and somehow it is getting my IP banned but seems unable to write anything else.
My Conclusions/Assumptions
It seems that NC is not able to authenticate my login due not being able to write data to disk. (Why no errors is beyond me)
This most certainly has to do with my mapping the "nextcloud" dataset to the app instead of using the defaults since it works when I leave those fields empty.
I am at a loss of where to go next. I do not understand how data is stored in the ix-applications dataset and I am on the impression that is not what it is for.
Later:
After looking at more forum posts it is looking to me like TrueNAS scale apps are just simply not working well at this point. If no one has a solution I believe I will go back to using VMs on xcp-ng and just use TrueNAS for file storage. I was really looking forward to being able to use some of the extra compute power I have on my TrueNAS machine by running apps or VMs on it.
If anyone has any pointers I would be happy try things.
Thanks!