Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • NodeJS app logs do not show IP address of clients

    Solved Support logs reverseproxy nodejs
    3
    0 Votes
    3 Posts
    1k Views
    jimcavoliJ
    Note: It took me a minute to put this together while @nebulon was responding and I got pulled onto something else for a minute, but I think the detailed writeup is worth having for posterity, so I'll post it anyway. So what's going on here is that the app in question isn't reading the "right" headers to find the remote address. Basically, the inbound requests come in and hit the box-level nginx reverse proxy, which forwards the request on with the original inbound IP in the X-Forwarded-For header. Since from the sound of it, you're just routing straight to your app in the container, you'll want to either reconfigure your logging library to use the forwarded IP header as the client IP or drop nginx or similar as a reverse proxy in front of your app and configure it to rearrange the incoming headers as your app needs. Sounds like you can just adjust a configuration so that this (your existing flow) works nicely: [image: 1611584495688-container-sans-rp.png] Basically, here, the headers are adjusted in the "Step 1" processing as they reach the Cloudron so when they reach your app, the proxied headers have already gone into place. Again, this configuration should be fine with the configuration that @nebulon mentioned going in, since that should reconfigure your framework to read these adjusted headers correctly. Failing that, or for apps with more complex setup or which aren't able to read those headers on their own by configuration, the solution is to further proxy those requests, by adding nginx or similar to take over the "Step 3" handoff and smooth out any specific details (like re-adjusting headers) for the app, and having it proxy those requests down to your app, all in-container, so that the logging and such in your app will all match up with expectations/reality. The whole point of the second reverse proxy when it's added it to make the world appear as it needs to for the app and/or its components inside the container. [image: 1611584698827-container-rp.png]
  • Cloudron time vs App time mismatch

    Support logs
    2
    1
    0 Votes
    2 Posts
    609 Views
    nebulonN
    @robi for the first logviewer mismatch, this is because the first time shown is from the logservice itself and is translated into the local time of your browser, whereas the second comes from the app itself and is just treated as a plain string. Apps normally run in UTC. For the winscp part, I am not sure how winSCP translates timestamps. The folder names are set from server time. I don't think any of this will have anything to do with DB reconnection, if you have any issue there, please make a new entry in the TS forum section with some more info.
  • How to dedupe lines in a file efficiently

    Discuss logs
    10
    0 Votes
    10 Posts
    2k Views
    robiR
    @girish I am referring to any that don't need to be written to disk. You can use the lines for what you need in memory.
  • Understand what caused CPU intensive use

    Support logs cpu
    9
    2
    0 Votes
    9 Posts
    2k Views
    P
    @girish Yes, in fact I did not understand... To many logs to check with vi
  • Application logs not available

    Solved Support logs userinterface
    7
    0 Votes
    7 Posts
    2k Views
    marioM
    @nebulon clearing the cache did indeed help - thanks @girish
  • Cannot access logs of any app nor the cloudron instance

    Solved Support logs cache
    6
    1
    0 Votes
    6 Posts
    1k Views
    nebulonN
    I will put a cache busting hash for the other toplevel pages in the dashboard, just like we have for the main dashboard. This should mitigate that issue for the next release.
  • App logs window scroll issues

    Solved Support logs userinterface
    16
    0 Votes
    16 Posts
    3k Views
    nebulonN
    This is fixed with https://git.cloudron.io/cloudron/box/-/commit/fe1c483b7819404d4531fd34323bc2fc18534b85 now
  • How to post Event Log events in chat room

    Feature Requests logs webhook
    2
    1 Votes
    2 Posts
    466 Views
    nebulonN
    I guess some webhook api could be supported. It is a bit of work though and lets first see if this feature is also relevant to more people.
  • What is behind this lookup in LDAP?

    Support ldap logs
    2
    0 Votes
    2 Posts
    581 Views
    nebulonN
    Yes those log lines indicate a login attempt by an app. Each app makes the requests on the Cloudron local network. So different IPs indicate different apps. In your case it looks like someone/bot tries to login to some or your apps.
  • 2 Votes
    5 Posts
    1k Views
    necrevistonnezrN
    @girish Thanks for the tip on updating SSH-keys. I wasn't talking about fail2ban reporting, only. I was also referring to the built-in "rate-limiting" of Cloudron (and other security features, e.g. the cloud firewall) where there's currently little or no transparency what's happening. Since Cloudron "takes over the server" I think it would be a good opportunity to add transparent monitoring of the system's security features similar to the "System info" tab...
  • Missing logrotate for `collectd.log`

    Solved Support logs ubuntu
    5
    1 Votes
    5 Posts
    827 Views
    ?
    Nice, thanks @girish
  • Centralized log aggregration for apps

    Discuss logs
    3
    0 Votes
    3 Posts
    692 Views
    nebulonN
    Can you describe the use-case a bit further? Cloudron already collects logs for each application and addon, as well as the Cloudron related platform components. Generally it is not supported to install other daemons on the side of Cloudron on the same server, since we cannot test such configurations during updates. FYI all the logs are collected currently as described here https://cloudron.io/documentation/troubleshooting/#logs
  • "Platform data" and "Other" disk usage

    Solved Support cloudron disk usage logs
    26
    1
    0 Votes
    26 Posts
    5k Views
    girishG
    @foliovision you can also try docker system prune -a --volumes but generally I have never succeeded in making that reclaimable space be less than 2GB in any server using docker (even without Cloudron).
  • How to set the timezone for better log reading?

    Solved Support logs
    4
    1 Votes
    4 Posts
    858 Views
    girishG
    For a start, we have added a UI to set the timezone for the next release.
  • Issues with my FreshRSS install

    Moved Solved FreshRSS freshrss logs nginx
    5
    1 Votes
    5 Posts
    2k Views
    aheltonA
    @girish Went ahead and tried it and it works beautifully! Took a matter of seconds for it to load all my feeds. Really appreciate y'all's work on this. I'm becoming a bigger Cloudron fan by the minute