• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    Data Source Permissions after import?

    User help
    2
    13
    193
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dan
      dan last edited by

      Hey Guys, I've had a major issue with one of my setups where I had trouble with the SSL cert expiring and not renewing, after days of mucking around I've finally gotten it to work again, but in the process I reinstalled mango about 4 times.

      A side effect of this process seems to have somehow buggered up permissions on my data sources / points and on the dashboard. Everything is just greyed out with the red crosses. I've checked view permissions etc on each user but this is even doing it for the admin accounts.

      03166aa2-a8fe-455c-a7e1-8082a7ed913d-image.png

      I've tried going into a point on the dashboard and clearing the XID value, then selecting it from the dropdown box, but it just comes back as greyed out again.

      I've also tried re-applying permissions throughout the data sources and data points themselves, to no avail.

      Is there something I'm maybe missing between doing a configuration export then import into a new instance?

      I can't see anything obvious in the logs. :(

      Any ideas would be greatly appreciated.

      Cheers
      Dan

      cbyrne 1 Reply Last reply Reply Quote 0
      • cbyrne
        cbyrne @dan last edited by cbyrne

        @dan Any chance it might actually be a websocket proxy issue? It can cause similar results from experience.

        Software Developer for GLAS Energy Technology Ireland

        dan 1 Reply Last reply Reply Quote 0
        • dan
          dan @cbyrne last edited by

          @cbyrne maybe? I do have a proxy setup for SSL redirect.
          I'll check the console and see if it has anything in there.

          cbyrne 1 Reply Last reply Reply Quote 0
          • cbyrne
            cbyrne @dan last edited by

            @dan Quick way to check is your browser's dev tools. In Firefox, if you right click and select inspect and then go to the console tab you'll see error messages along the lines of "couldn't connect to ws://your.domain". I presume it's similar in chrome dev tools.

            Software Developer for GLAS Energy Technology Ireland

            dan 1 Reply Last reply Reply Quote 0
            • dan
              dan @cbyrne last edited by

              @cbyrne yeh definitely getting those errors. :(
              I'll have to work out why the proxy redirect isn't working as intended.

              cbyrne 1 Reply Last reply Reply Quote 0
              • cbyrne
                cbyrne @dan last edited by

                @dan Well at lease we know what it is! What's your proxy server?

                Software Developer for GLAS Energy Technology Ireland

                dan 1 Reply Last reply Reply Quote 0
                • dan
                  dan @cbyrne last edited by

                  @cbyrne thanks for the help with this.
                  It's apache2 with an SSL cert as I couldn't for the life of me get it to renew correctly on Mango itself.
                  That side of it appears to work, the GUI loads seemingly normally.
                  Just the data sources have that ws:// error. Have I maybe not enabled something correctly for the proxyredirect to work.

                  cbyrne 1 Reply Last reply Reply Quote 0
                  • cbyrne
                    cbyrne @dan last edited by cbyrne

                    @dan Here's my apache config, hopefully you can get yours working from it

                    <VirtualHost *:80>
                        ProxyRequests Off
                        ProxyPreserveHost On
                    
                        Redirect permanent / https://your.domain/
                    </VirtualHost>
                    
                    <VirtualHost *:443>
                        ServerName your.domain
                        ServerAlias your.domain
                    
                        ErrorLog "/var/log/your.domain_error.log"
                        # Possible values include: debug, info, notice, warn, error, crit,
                        # alert, emerg.
                        LogLevel warn
                        CustomLog "/var/log/your.domain_access.log" combined
                    
                        SSLEngine On
                        SSLProxyEngine On
                        ProxyRequests Off
                        ProxyPreserveHost On
                    
                        # allow for upgrading to websockets
                        RewriteEngine on
                        RewriteCond %{HTTP:Connection} Upgrade [NC]
                        RewriteCond %{HTTP:Upgrade} websocket [NC]
                        RewriteRule /(.*) ws://127.0.0.1:8080/$1 [P,L]
                    
                        RequestHeader set Origin "http://your.domain"
                        Header edit Location ^http://your.domain https://your.domain
                    
                        <Location />
                            ProxyPass http://127.0.0.1:8080/
                            ProxyPassReverse /
                        </Location>
                    
                        SSLCertificateFile "/etc/httpd/conf.d/ssl/your.domain.crt"
                        SSLCertificateKeyFile "/etc/httpd/conf.d/ssl/your.domain-pkey.pem"
                    </VirtualHost>
                    

                    Software Developer for GLAS Energy Technology Ireland

                    dan 3 Replies Last reply Reply Quote 0
                    • dan
                      dan @cbyrne last edited by

                      @cbyrne thanks for that.

                      I don't have this line:

                      <Location />
                          ProxyPass http://127.0.0.1:8080/
                          ProxyPassReverse /
                      </Location>
                      

                      The other references to localhost in that config file are pointing to the machine's eth IP. Wonder if I should change them to localhost?
                      A lot of them refer to :443 for the SSL too, Mango itself is running on :8080

                      I think I'm confusing myself with how the redirect proxy works.

                      1 Reply Last reply Reply Quote 0
                      • dan
                        dan @cbyrne last edited by

                        @cbyrne I used this reference in the Mango docs..

                        https://docs-v4.mango-os.com/proxy

                        There is a note at the bottom referring to v3.7.0+ and I'm running latest 4.2.3. Where would I change this stuff? mango.properties?

                        e4d0101e-8e1b-4876-b1ea-9304b9087106-image.png

                        1 Reply Last reply Reply Quote 0
                        • dan
                          dan @cbyrne last edited by

                          @cbyrne I deleted the version I had that was made from the Mango docs template and used yours instead and it worked!

                          Thanks heaps for your help.

                          Where do I send beer?

                          Cheers
                          Dan

                          cbyrne 1 Reply Last reply Reply Quote 0
                          • cbyrne
                            cbyrne @dan last edited by

                            @dan don't mention it! Happy to help. I actually omitted one or two things from that config for brevity. I'll edit it now, just some logging you might want to add.

                            Software Developer for GLAS Energy Technology Ireland

                            dan 1 Reply Last reply Reply Quote 0
                            • dan
                              dan @cbyrne last edited by

                              @cbyrne Well thank you that is very kind of you, now it's working great.

                              Cheers
                              Dan

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post