Unable to install apps
-
I am followings this simple guide https://docs.cloudron.io/installation/ using Ubuntu 20.04 LTS and every single time I try to install an App, I get an error saying unable to write to /root/appdata/etc.
Based on what I am seeing this isn't supposed to be the case? I have tried installing 2x now and don't understand where things are going wrong.
Any direction would be great. I am just testing this out to see how it works and performs.
Thanks
-
@opensourced said in Unable to install apps:
What could be the reasons for my yellowtent not to be availlable?
This is expected.
yellowtentis created as asystemuser (it's only used to run the box code as a non-root user for security reasons).Can you please try:
sudo -u yellowtent mkdir /home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5For some reason, the above thing fails on your system. Is there something special about /home/yellowtent mount we need to know about? Can you check if
/home/yellowtent/appsdataand/home/yellowtent/are owned by theyellowtentuser?@girish I moved the appsdata folder to another mounted drive -> after creating the symlink (as root) i didn't propperly set the permissions. I fixed it, so all good now. Thanks!
-
I am followings this simple guide https://docs.cloudron.io/installation/ using Ubuntu 20.04 LTS and every single time I try to install an App, I get an error saying unable to write to /root/appdata/etc.
Based on what I am seeing this isn't supposed to be the case? I have tried installing 2x now and don't understand where things are going wrong.
Any direction would be great. I am just testing this out to see how it works and performs.
Thanks
@metalcated Thanks for trying us out! Can you give us more information about the error? Maybe some screenshot ?
When the app install fails, can you get the logs using the app's log viewer (it's a button in the top toolbar) ? See https://docs.cloudron.io/apps/#log-viewer . You can paste the logs into https://paste.cloudron.io and give us a link.
-
@metalcated Thanks for trying us out! Can you give us more information about the error? Maybe some screenshot ?
When the app install fails, can you get the logs using the app's log viewer (it's a button in the top toolbar) ? See https://docs.cloudron.io/apps/#log-viewer . You can paste the logs into https://paste.cloudron.io and give us a link.
@girish Hey sorry about that, I should have included that with my original post.
Sep 28 15:41:29 box:apptask test.domain.com error installing app: BoxError: Error creating directory: EACCES: permission denied, mkdir '/root/appsdata/645af55f-853d-47a1-9e29-6504e1fc00b5' at /home/yellowtent/box/src/apptask.js:162:36 at FSReqCallback.oncomplete (fs.js:171:23) { reason: 'FileSystem Error', details: {}Full log: https://paste.cloudron.io/inukequheh.js
-
@girish Hey sorry about that, I should have included that with my original post.
Sep 28 15:41:29 box:apptask test.domain.com error installing app: BoxError: Error creating directory: EACCES: permission denied, mkdir '/root/appsdata/645af55f-853d-47a1-9e29-6504e1fc00b5' at /home/yellowtent/box/src/apptask.js:162:36 at FSReqCallback.oncomplete (fs.js:171:23) { reason: 'FileSystem Error', details: {}Full log: https://paste.cloudron.io/inukequheh.js
@metalcated Thanks. For some reason, it thinks that
/rootis the home directory. Cloudron runs as the useryellowtentand it should be using/home/yellowtentas the "base".Can you check the output of
systemctl show box | grep User=? It should sayyellowtent. Also, can you check the output ofsu - yellowtentand thenenv | grep HOME?If you can tell me which VPS provider you use, I can test out the installation there myself as well.
-
@metalcated Thanks. For some reason, it thinks that
/rootis the home directory. Cloudron runs as the useryellowtentand it should be using/home/yellowtentas the "base".Can you check the output of
systemctl show box | grep User=? It should sayyellowtent. Also, can you check the output ofsu - yellowtentand thenenv | grep HOME?If you can tell me which VPS provider you use, I can test out the installation there myself as well.
@girish said in Unable to install apps:
systemctl show box | grep User=
root@cloudron] ~$ systemctl show box | grep User= User=yellowtent DynamicUser=no$ env | grep HOME HOME=/home/yellowtentThis is a self built VM on my home lab vCenter instance.
Ubuntu 20.04.3 LTS -
Also, I just noticed that this wiped out my entire set of A records from Cloudflare! Took me all weekend to notice. Believe I am done using this with a bug like that. Thanks.
-
@girish said in Unable to install apps:
systemctl show box | grep User=
root@cloudron] ~$ systemctl show box | grep User= User=yellowtent DynamicUser=no$ env | grep HOME HOME=/home/yellowtentThis is a self built VM on my home lab vCenter instance.
Ubuntu 20.04.3 LTS@metalcated Mmm, everything looks OK. If you can give us SSH access, please send a mail to support@cloudron.io and we can look into it.
-
Also, I just noticed that this wiped out my entire set of A records from Cloudflare! Took me all weekend to notice. Believe I am done using this with a bug like that. Thanks.
-
Also, I just noticed that this wiped out my entire set of A records from Cloudflare! Took me all weekend to notice. Believe I am done using this with a bug like that. Thanks.
@metalcated https://support.cloudflare.com/hc/en-us/articles/115002833612-Understanding-Cloudflare-Audit-Logs . In our cloudflare account, I can see there are records for every DNS change as "Rec del" and "Rec add".
-
@metalcated Thanks. For some reason, it thinks that
/rootis the home directory. Cloudron runs as the useryellowtentand it should be using/home/yellowtentas the "base".Can you check the output of
systemctl show box | grep User=? It should sayyellowtent. Also, can you check the output ofsu - yellowtentand thenenv | grep HOME?If you can tell me which VPS provider you use, I can test out the installation there myself as well.
@girish just hit the same error...
May 28 14:27:13 box:tasks update 186: {"percent":50,"message":"Creating app data directory"} May 28 14:27:13 box:apptask run: app error for state pending_install: BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5' at createAppDir (/home/yellowtent/box/src/apptask.js:119:22) at async install (/home/yellowtent/box/src/apptask.js:358:5) { reason: 'FileSystem Error', details: {} May 28 14:27:13 box:taskworker Task took 12.297 seconds May 28 14:27:13 box:tasks setCompleted - 186: {"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}} May 28 14:27:13 box:tasks update 186: {"percent":100,"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}} Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5' at createAppDir (/home/yellowtent/box/src/apptask.js:119:22) at async install (/home/yellowtent/box/src/apptask.js:358:5)my outputs are as followed:
root@host:/home/# systemctl show box | grep User= User=yellowtent DynamicUser=no root@host:/home/# su - yellowtent This account is currently not available.What could be the reasons for my yellowtent not to be availlable?

Thanks in advance!
-
@girish just hit the same error...
May 28 14:27:13 box:tasks update 186: {"percent":50,"message":"Creating app data directory"} May 28 14:27:13 box:apptask run: app error for state pending_install: BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5' at createAppDir (/home/yellowtent/box/src/apptask.js:119:22) at async install (/home/yellowtent/box/src/apptask.js:358:5) { reason: 'FileSystem Error', details: {} May 28 14:27:13 box:taskworker Task took 12.297 seconds May 28 14:27:13 box:tasks setCompleted - 186: {"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}} May 28 14:27:13 box:tasks update 186: {"percent":100,"result":null,"error":{"stack":"BoxError: Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'\n at createAppDir (/home/yellowtent/box/src/apptask.js:119:22)\n at async install (/home/yellowtent/box/src/apptask.js:358:5)","name":"BoxError","reason":"FileSystem Error","details":{},"message":"Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5'"}} Error creating directory: EACCES: permission denied, mkdir '/home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5' at createAppDir (/home/yellowtent/box/src/apptask.js:119:22) at async install (/home/yellowtent/box/src/apptask.js:358:5)my outputs are as followed:
root@host:/home/# systemctl show box | grep User= User=yellowtent DynamicUser=no root@host:/home/# su - yellowtent This account is currently not available.What could be the reasons for my yellowtent not to be availlable?

Thanks in advance!
@opensourced said in Unable to install apps:
What could be the reasons for my yellowtent not to be availlable?
This is expected.
yellowtentis created as asystemuser (it's only used to run the box code as a non-root user for security reasons).Can you please try:
sudo -u yellowtent mkdir /home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5For some reason, the above thing fails on your system. Is there something special about /home/yellowtent mount we need to know about? Can you check if
/home/yellowtent/appsdataand/home/yellowtent/are owned by theyellowtentuser? -
@opensourced said in Unable to install apps:
What could be the reasons for my yellowtent not to be availlable?
This is expected.
yellowtentis created as asystemuser (it's only used to run the box code as a non-root user for security reasons).Can you please try:
sudo -u yellowtent mkdir /home/yellowtent/appsdata/8076edfc-1155-43e1-9bc1-f00aa3f207c5For some reason, the above thing fails on your system. Is there something special about /home/yellowtent mount we need to know about? Can you check if
/home/yellowtent/appsdataand/home/yellowtent/are owned by theyellowtentuser?@girish I moved the appsdata folder to another mounted drive -> after creating the symlink (as root) i didn't propperly set the permissions. I fixed it, so all good now. Thanks!
-
@girish I moved the appsdata folder to another mounted drive -> after creating the symlink (as root) i didn't propperly set the permissions. I fixed it, so all good now. Thanks!
@opensourced said in Unable to install apps:
@girish I moved the appsdata folder to another mounted drive
I think you should have led with that...

-
G girish marked this topic as a question on
-
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login