Please ignore this issue, there was some error with the underlying instance I guess. I started a new instance and everything is good.
Posts made by saikarthik
-
RE: Client portal 500 Error
-
Client portal 500 Error
When the client portal is not in use for some time and then I visit the client portal, I get this error:
Mar 07 03:26:38 172.18.0.1 - - [07/Mar/2022:09:26:38 +0000] "GET /client HTTP/1.1" 200 3734 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36"
Displays 500 error on browser as well. Immediately after it starts working. What could be the reason? I don't see any other errors in the app logs through cloudron. Cloudron Healthchecks seems to be passing right before this as well:
Mar 07 03:26:30 172.18.0.1 - - [07/Mar/2022:09:26:30 +0000] "GET / HTTP/1.1" 302 2007 "-" "Mozilla (CloudronHealth)"
-
AWS AMI no longer supported?
cloudron marketplace has no images/products
It says: This version has been removed and is no longer available to new customers.
-
Any guide to updating Cloudron base image from 2.0.0 to 3.0.0
Just want to make sure I don't see any unexpected issues when updating the Cloudron base image of my custom app.
-
RE: Not found: Unable to find container postgresql
Followed this guide and everything is back to normal. Thanks guys!
https://docs.cloudron.io/guides/import-postgresql/ -
RE: Not found: Unable to find container postgresql
@girish said in Not found: Unable to find container postgresql:
(I have a task to rename the 'yellowtent' user to 'cloudron' at some point, but it requires some work. And unfortunately, some users have already created a 'cloudron' user in some of their installations.)
The owner was ubuntu. I manually changed the owner and group to yellowtent and that fixed the issues, and the app is running fine now. However, the old postgres data is missing. Is there some manual process required to move the postgres data from old instance to new instance? How can I achieve this?
-
RE: Not found: Unable to find container postgresql
@nebulon Yes, this was a working app. Still works in the old instance. I am just trying to move it to another instance using backups and facing these issues.
I do not recognize yellowtent. Is this something internally used by cloudron? I don't have a user called yellowtent for the app itself.
-
RE: Not found: Unable to find container postgresql
- postgresql service was off. I clicked on restart and started the recovery from backup option again and I got a new error:
An error occurred during the import operation: External Error: EPERM: operation not permitted, utime '/home/yellowtent/appsdata/42aecba7-1aa8-43c5-a183-8a27d2c3a6d8/'
From the logs:
Nov 23 16:45:16 box:backuptask tarExtract: extract stream error. [Error: EPERM: operation not permitted, utime '/home/yellowtent/appsdata/42aecba7-1aa8-43c5-a183-8a27d2c3a6d8/'] { errno: -1, code: 'EPERM', syscall: 'utime', path: '/home/yellowtent/appsdata/42aecba7-1aa8-43c5-a183-8a27d2c3a6d8/'
Quick follow-up, how should I access what services need to be on in the services section?
- No, the custom app uses the PostgreSQL addon.
-
Not found: Unable to find container postgresql
I moved my cloudron instance from one ec2 instance to another in another AWS account. I was able to setup the new instance using the cloudron backup. But when trying to recover a custom app, I get this error:
Not found: Unable to find container postgresql
The custom app uses its own postgresql container. How can I fix this?
-
RE: What happens when you click INSTALL?
From my understanding:
Cloudron is based on node.js and uses the npm package Dockerode: https://github.com/apocas/dockerode
Dockerode uses the Docker API: https://docs.docker.com/engine/api/v1.37/
-
What happens when you click INSTALL?
Curious: what actually happens when you click on INSTALL on an app from the app store? Is it a docker-compose up? or something else to run the docker container?
I work with Kubernetes at my day job, and we use Helm charts to deploy pods (helps with complicated apps). We can also use the Kubernetes manifest yaml file to deploy a pod.
Wonder how Cloudron handles it. Just curious what the best practice is with Docker without Kubernetes for deployments.
-
RE: proxyAuth addon
@girish Hi Girish, what is the status of this? selectively exposing certain paths to public?
-
NodeJS app logs do not show IP address of clients
I am using the morgan console logger module for my custom NodeJS app. I have set it up as a middleware and it is working fine. Except all request logs show the same IP i.e. 172.18.0.1. This is the same as the IP for the cloudron health checks.
How can I make this logger show the IP of the actual clients of the webapp?
-
RE: How to debug scheduler addon script
@girish What timezone does the scheduler use?
-
How to debug scheduler addon script
Where can i see the scheduler add-on script output?
-
RE: Set Name for outgoing app email
Yup. I went with setting it at the app level (nodemailer method). I was just curious if this was in any way masked at the cloudron platform side. Thanks for the clarification @girish
-
RE: Set Name for outgoing app email
@girish I dont see this option in the email settings of the app. Where exactly is this config file? For example, a NodeJS app?
-
RE: Set Name for outgoing app email
@jdaviescoates I understand this. For example here if you set your email as test@example.com and then send yourself an email. In your inbox page it would display test. Im wondering how we can change it so it can display a name instead. refer link below:
https://askubuntu.com/questions/988912/how-can-i-change-displayed-name-as-sender
-
Set Name for outgoing app email
Is there a way to set a username for the outgoing app emails using the sendmail addon? I am referring to what the recipient sees in their mailbox as the user name attached to the app email.
using the builtin SMTP server. -
RE: proxyAuth addon
@nebulon @girish is this something that can be added to cloudron? passing logged in username/email ID to apps through the header? Any comments/issues?
-
RE: proxyAuth addon
@girish is there a way to get the username/email from within the app?
-
API pricing?
On Invoice Ninja website, it seems that the API access is only available to the paid versions. What about in the self-hosted version (on cloudron), is it free to use the APIs to create invoices and download them as PDFs?
All I need is a way to create invoices programmatically and print them out. No need to accept payments.
-
RE: How to add files into /app/data?
@nebulon Thanks!
For anyone else, this is how I did it.
In 'Dockerfile', I added the files into the /app/code directory using:
COPY public /app/code/temp-public
Then, in 'start.sh' I added the following to ensure it only copies files over on first run:
if [[ -z "$(ls -A /app/data/public)" ]]; then echo "==> Add public files on first run" cp -r /app/code/temp-public/* /app/data/public/ else echo "==> Do not override existing public folder" fi
-
Add ldap auth to custom webapp?
I am building a Node.js based custom webapp. But I don't want my webapp files (/app/data/public) files to be publicly accessible unless it's a cloudron authenticated user. So I want to add a login prompt in front of the app (auth wall I think?).
Example: Assume Surfer app is installed at surfer.x.com, going to surfer.x.com/_admin/ shows what I am looking for.
So I am currently referring to: https://git.cloudron.io/cloudron/surfer/-/tree/master/frontend
I have added the ldap add-on in CloudronManifest.json.
What is the easiest way to accomplish this? Is the Surfer app approach the best way to go about it?
I also found this thread on the forums:
https://forum.cloudron.io/topic/3682/proxyauth-addon/14
Is this what I am looking for? -
How to add files into /app/data?
How do you add files into /app/data from inside a docker container?
Please point me to a sample repo if it exists on git.cloudron.io. Couldnt find one myself.
-
RE: How do you manage secrets/credentials during runtime?
For anyone who stumbled upon this:
I ended up using environment variables instead of using the file in /app/data/ method, since its easier to work with, especially in Node.js so you don't have to worry about the asynchronous/synchronous problem. -
RE: Docs
@girish What are the steps to create a pull request?
I was able to clone master, create a branch from it, make changes, but I am not able to push my branch. Usually, this is what I would do to create a pull request.
I also don't have permissions to fork, I think?
-
RE: How do you manage secrets/credentials during runtime?
@marcusquinn I havent worked with Terraform Vault, but are you saying this because AWS secrets manager saves things as plain text?
-
RE: Is cloudron down?
box:shell update (stdout): Failed to reset failed state of unit cloudron-updater.service: Unit cloudron-updater.service is not loaded.
-
Is cloudron down?
I am unable to update cloudron.
Also, having issues with fresh install.
-
RE: How do you manage secrets/credentials during runtime?
@mehdi I agree. But there are definitely ways like using Terraform Vault or AWS secretsmanger, etc.
But I wanted to see how others are doing it and what the easiest way was in the cloudron environment/setup.My devops day job really got me into deploying everything with one-click lol. So just curious, this is not a deal breaker.
-
RE: How do you manage secrets/credentials during runtime?
@mehdi said in How do you manage secrets/credentials during runtime?:
@saikarthik You can do a condition and display an error if the secret is not present. And after installing the app, you can create the secret file manually with the file manager
Is there anyway to automate this?
-
RE: How do you manage secrets/credentials during runtime?
The Dockerfile entrypoint script (start.sh) executes server.js where Node.js server is initialized and starts "listening" to serve HTTP requests. Before it enters the listening state, I read the secret file from /app/data/secret.txt and set the variables used within this script. In this case, how and when exactly would the /app/data/secret.txt file be created?
sample server.js:
"use strict"; var http = require("http"); const fs = require('fs') var API_KEY = "" fs.readFile("/app/data/secret.txt", {"encoding": "utf8"}, function(err, data) { if (err) console.log(err); else { API_KEY = data; console.log("INFO::secret:" + API_KEY) } }); var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end(API_KEY); }); server.listen(3000); console.log("Server running at port 3000");
-
How do you manage secrets/credentials during runtime?
I am building a custom Node.js app that makes API requests to a third party application. Where can I store secrets/credentials (API key) I would need during runtime? I do not want to store this in the docker container even in a private repo.
-
RE: Joplin: feature rich note taking and to-do application
Just adding to the post:
Web app version of Joplin:
https://github.com/foxmask/joplin-web -
Joplin: feature rich note taking and to-do application
Joplin is a free, open source note taking and to-do application, which can handle a large number of notes organised into notebooks. The notes are searchable, can be copied, tagged and modified either from the applications directly or from your own text editor. The notes are in Markdown format.
https://joplinapp.org/
https://github.com/laurent22/joplinLicense: MIT License
-
Are you able to see your emails, like a mailbox, in Dolibarr?
Can you setup a mailbox in Dolibarr to check your mails? Are you able to create custom workflows based on incoming emails? I was not able to find how to do either of these.
-
RE: Are you able to see your emails, like a mailbox, in EspoCRM?
@girish sorry, i made a mistake in the original post. I meant to ask the same about Dolibarr. but I don't see a forum thread for it.
-
Are you able to see your emails, like a mailbox, in EspoCRM?
Can you setup a mailbox in EspoCRM to check your mails? Are you able to create custom workflows based on incoming emails? I was not able to find how to do either of these.
-
RE: Traccar moder gps tracking
@nebulon Hey there, I was looking into packaging this app as well. But it looks like you start work on it. https://git.cloudron.io/cloudron/traccar-app
Could you give me an update on your status/progress? I am cloning and testing this repo now.
-
RE: X2CRM
I asked the question there. And actually, I was accepted into their community forum recently and got a response regarding a bug 2 days after posting!
I was hoping that making it available to folks on Cloudron would also help revive x2crm. Don't PHP apps last a while without many changes?
-
RE: CLI cmd: 'cloudron pull' does not copy the entire file
Confirmed working on 4.5.3
To install a specific version: sudo npm install -g cloudron@4.5.3
-
RE: X2CRM
@girish I would love for the Cloudron community to be able to use it. It is better than the other CRM options on Cloudron IMO. I could help package it with some guidance. I'm familiar with Docker. My question is, does the X2CRM license fit the Cloudron model? Is this an app we can eventually publish to the Cloudron app store once stable/approved/verified?
And yes, to confirm it is working on top of the php7.3-multidb app with the addition of ssh2 in Dockerfile.
-
RE: CLI cmd: 'cloudron pull' does not copy the entire file
was able to download using the file manager feature at my.<domain> to download the entire file successfully.
-
CLI cmd: 'cloudron pull' does not copy the entire file
I have a .php file of barely over 2000 lines of code that when I use the CLI command to pull (copy from docker container/cloudron app to local machine), it only copies about 1900 lines of code.
Any ideas?
-
RE: IMAP port and server settings for LAMP app mail client
@girish said in IMAP port and server settings for LAMP app mail client:
Each mailbox has a separate authentication. The app has to provide some way to get the authentication info for each mail box.
The app does allow for multiple configurations.
@girish said in IMAP port and server settings for LAMP app mail client:
In the Email credentials, I think it has to be the email address and not "Test User".
What I blurred out in the picture is actually a valid cloudron mailbox ID.
-
RE: IMAP port and server settings for LAMP app mail client
@girish What about configuring multiple mailboxes?
In this case, X2CRM has its own user management and each user logged in can set up multiple emails accounts on X2CRM. I want the users to be able to access their cloudron mailboxes on X2CRM.The password is the password of the mailbox owner (but I don't see a way to fill in the imap password in the configuration above, do you know why?
There is another screen where you choose your email account and then enter the password. see attached below:
-
RE: IMAP port and server settings for LAMP app mail client
@nebulon said in IMAP port and server settings for LAMP app mail client:
Currently the workaround is to create a mailbox within Cloudron dashboard and then use the credentials for that mailbox within the app.
This is exactly what I am trying to do. I want to setup my mailbox client to connect to my cloudron mailboxes.
Little background: This is for the X2CRM PHP app, as with most CRMs' the mailbox client in X2CRM is important as you can set important automations/workflows based on emails received.
-
RE: IMAP port and server settings for LAMP app mail client
@nebulon is there a workaround? I can even update the docker image if needed.
-
RE: IMAP port and server settings for LAMP app mail client
@atrilahiji This is exactly how I got the SMTP details that worked (refer initial post)! I'm looking for the IMAP settings; I don't see any IMAP details in the environment variables of the LAMP app.
-
RE: IMAP port and server settings for LAMP app mail client
@atrilahiji the info in the link you shared are for when you have your cloudron mail server setup on a VPS and you are trying to access from your local machine. For example: These settings worked when I tested with outlook mail client on my local Mac and my mail server by cloudron is hosted on a cloud VPS.
I'm trying to access from a mail client app (x2crm) I installed on the LAMP app by cloudron.
-
IMAP port and server settings for LAMP app mail client
For a LAMP app, SMTP settings from the environment variable of the container using: env | grep SMTP works!
What IMAP settings should I enter in the LAMP app mail client for cloudron mail access?