Install cloudron-cli on Code-Server
-
Good morning,
I have installed successfully code-server on Cloudron, now I would like to use it as replacement of my local Windowsinstallation.
For that it is neccessary to install the cloudron-cli on this machine to install/update/... my Cloudron Instance.
I execute this:
cloudron login
and get this error
Error: EROFS: read-only file system, open '/root/.cloudron.json'
In my Dockerfile I had create a symlink to the data-directory, but nothing change.
Any idea to solve this? My other idea is a separate VM, but for this I must clone first my repo and than update my app and my idea is to do this on the same machine I develop it.
Thanks,
Axel -
@roru2k20 cloudron cli is not for installing on the server, if you are looking to use code-server as an app, I have one on my github https://urgero.org that has all the kit you need for scripting and even a bit of programming.
If you are trying to install cloudron-cli in an app you have installed already, make sure you run as a user where $HOME is set to /app/data (or a folder inside /app/data.) A common user to try is www-data (
su - www-data
) -
Your symlink creation looks fine and should work. Just to sanity check, can you use the webterminal into the app and create a file at
/app/data/.cloudron.json
?Generally what @murgero mentioned is correct, but not sure if this applies to your exact use-case. One thing is to simply avoid circular dependency if something goes wrong, like if you for example use that cli tool within a Cloudron app to fix/update the very same cloudron app instance.
What really should be avoided, is to install anything manually like the cloudron cli tool on the host server itself.