Navigation

    OpenIAP

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Openflow - 404 Page Not Found

    General Discussion
    openflow
    3
    20
    112
    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.
    • M
      mshammermc last edited by

      Hi Allan,

      After completing your tutorial everything seems ok, but there is an error 404

      To make sure my dns was directing correctly I ran an nginx image everything went well (see image below)
      642777a6-6939-45a6-8d69-458b020fa855-image.png
      after stopping nginx and running the openflow containers everything seems to be fine as you can see in the screenshot below.
      9520a1c8-09f3-4e7f-8e19-5d40adfc2755-image.png
      I would be extremely grateful if you could help me.
      Here is my docker-compose.yaml file for your analysis.

      version: "3.3"
      services:
        mongodb:
          image: "mongo"
          #image: "mongo:3.6.16"
          restart: always
          ports:
            - "27017:27017"
          volumes:
            - mongodb_data:/data/db
        traefik:
          image: "traefik:v2.0.0-rc3"
          container_name: "traefik"
          command:
            #- "--log.level=DEBUG"
            - "--api.insecure=true"
            - "--providers.docker=true"
            - "--providers.docker.exposedbydefault=false"
            - "--entrypoints.web.address=:80"
          ports:
            - "80:80"
            - "8080:8080"
          volumes:
            - "/var/run/docker.sock:/var/run/docker.sock:ro"
        rabbitmq:
          labels:
            - "traefik.enable=true"
            - "traefik.http.routers.rabbitmq.rule=Host(`mq.openflow.mydns.com.br`)"
            - "traefik.http.routers.rabbitmq.entrypoints=web"
            - "traefik.http.services.rabbitmq.loadbalancer.server.port=15672"
          image: "rabbitmq:3-management"
          container_name: "rabbitmq"
          restart: always
          environment:
            - RABBITMQ_DEFAULT_USER=admin
            - RABBITMQ_DEFAULT_PASS=demo2018
          ports:
            - "5672:5672"
            - "15672:15672"
      
        web:
          labels:
            - "traefik.enable=true"
            - "traefik.http.routers.web.rule=Host(`openflow.mydns.com.br`)"
            - "traefik.http.routers.web.entrypoints=web"
            - "traefik.http.services.web.loadbalancer.server.port=3000"
            - "traefik.frontend.passHostHeader=true"
          image: "openiap/openflow:edge"
          container_name: "web"
          pull_policy: always
          restart: always
          volumes:
            - "/var/run/docker.sock:/var/run/docker.sock"
          ports:
            - "5858:5858"
          depends_on:
            - rabbitmq
            - mongodb
          environment:
            - update_acl_based_on_groups=true
            - multi_tenant=false
            - auto_create_users=true
            - auto_create_domains=
            - allow_personal_nodered=true
            - auto_create_personal_nodered_group=false
            - tls_crt=
            - tls_key=
            - tls_ca=
            - tls_passphrase=
            - api_bypass_perm_check=false
            - websocket_package_size=4096
            - websocket_max_package_count=1048576
            - protocol=http
            - port=3000
            - domain=openflow.mydns.com.br
      
            - nodered_images=[{"name":"Latest Plain Nodered", "image":"openiap/nodered:edge"},{"name":"Latest Puppeteer Nodered", "image":"openiap/nodered-puppeteer:edge"},{"name":"Latest TagUI Nodered", "image":"openiap/nodered-tagui:edge"}]
            - nodered_ws_url=ws://web:3000
            - saml_federation_metadata=http://web:3000/issue/FederationMetadata/2007-06/FederationMetadata.xml
            - amqp_url=amqp://admin:demo2018@rabbitmq
            - mongodb_url=mongodb://mongodb:27017
            - mongodb_db=openrpa
      
            - skip_history_collections=audit,jslog
            - allow_skiphistory=false
      
            - saml_issuer=uri:openflow.mydns.com.br
            - aes_secret=7TXsxf7cn9EkUqm5h4MEWGjzkxkNCk2K
            - signing_crt=LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZRENDQWtpZ0F3SUJBZ0lKQUsrSll6OGQ1bURxTUEwR0NTcUdTSWIzRFFFQkN3VUFNRVV4Q3pBSkJnTlYKQkFZVEFrRlZNUk13RVFZRFZRUUlEQXBUYjIxbExWTjBZWFJsTVNFd0h3WURWUVFLREJoSmJuUmxjbTVsZENCWAphV1JuYVhSeklGQjBlU0JNZEdRd0hoY05NVGt3TnpFd01UZ3dPVEl4V2hjTk1Ua3dPREE1TVRnd09USXhXakJGCk1Rc3dDUVlEVlFRR0V3SkJWVEVUTUJFR0ExVUVDQXdLVTI5dFp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F6Z3p5V3JvCnRMN3JZOTZ3TndkWWJqNGxMTE9KMTBtbEk3Nk1NUytqWVp4SGhaNGNaWlJUd0dONmpmSWhST0F6a2gwWU9Da1EKUjB5bmpVYU11ZGFKVXdtdk9pM3hieHBhUWpzeEZQOGdiQTg0aE9FQ2dZRUExbXZjSStZeDZITW00WkVjMU9yaworNXJoUHJrdGNMT0JHR3pZZGZIZGRZMytVdFZydUpCRmt5R2pCU2t2YmVtcUZxRlluMHFZckpXZVlUS2hMbUlwClkyRk1Gd29abWxpSkpONTA1eStTemdPbUVxN2wzT1Z4R0NwTTd1ODNyWFBXRGRERnc5WVNYVU1ueFRDUGsyRW0KekEyUzVkWjlWRld2NlR6VHg3cTIyc2c9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
      volumes:
        mongodb_data:
          driver: local
      
      
      
      Allan Zimmermann 1 Reply Last reply Reply Quote 0
      • Allan Zimmermann
        Allan Zimmermann @mshammermc last edited by

        @mshammermc Could you please check the logs for traefik . Is there any errors in traefik ?

        M 1 Reply Last reply Reply Quote 0
        • M
          mshammermc @Allan Zimmermann last edited by

          @allan-zimmermann said in Openflow - 404 Page Not Found:

          @mshammermc Could you please check the logs for traefik . Is there any errors in traefik ?

          This is the Traefik log
          262b0331-0773-425e-971a-d34d1be69664-image.png

          Allan Zimmermann 1 Reply Last reply Reply Quote 0
          • Allan Zimmermann
            Allan Zimmermann @mshammermc last edited by

            Oh, wait ... I see you are not using one of my docker compose files.
            Please use one of mine and see if that helps.
            https://github.com/open-rpa/docker

            M 1 Reply Last reply Reply Quote 0
            • M
              mshammermc @Allan Zimmermann last edited by

              @allan-zimmermann
              Now I have this information in the Traefik log
              848a1edb-a3c1-4a41-af0c-5883a8345ced-image.png

              Running over this file:
              https://raw.githubusercontent.com/open-rpa/docker/main/docker-compose-traefik.yml

              Allan Zimmermann 1 Reply Last reply Reply Quote 0
              • Allan Zimmermann
                Allan Zimmermann @mshammermc last edited by Allan Zimmermann

                @mshammermc so it works now ?
                if not, what if you try it locally
                curl -H "Host: openflow.mydns.com.br" http://localhost/

                Flávio Pinheiro de Souza 1 Reply Last reply Reply Quote 0
                • Flávio Pinheiro de Souza
                  Flávio Pinheiro de Souza @Allan Zimmermann last edited by

                  @allan-zimmermann
                  Good news my friend, finally openflow was loaded but nodered doesn't open 😞

                  In Nodered menu -> create nodered -> open nodered
                  result blank page. I tried creating a new nodered2 user and it didn't work either

                  Allan Zimmermann 1 Reply Last reply Reply Quote 0
                  • Allan Zimmermann
                    Allan Zimmermann @Flávio Pinheiro de Souza last edited by

                    @flávio-pinheiro-de-souza so what domain are you using?

                    Flávio Pinheiro de Souza 1 Reply Last reply Reply Quote 0
                    • Flávio Pinheiro de Souza
                      Flávio Pinheiro de Souza @Allan Zimmermann last edited by

                      @allan-zimmermann
                      As I didn't have success with mine I created it free: openflow.sytes.net
                      ping command now points to the correct vm ip: 34.134.186.92 and also accesses openflow

                      Nodered log:

                      Console:
                      
                      Q17:13:24 [info] noderedcontribopenflowstorage::_saveSettings.:complete
                      V17:13:24 [info] noderedcontribopenflowstorage::onupdate: Restart not needed
                      617:13:24 [info]  _saveSettings - 5:13:24 PM
                      N17:13:24 [info] noderedcontribopenflowstorage::_saveSettings.:begin
                      Q17:13:22 [info] noderedcontribopenflowstorage::_saveSettings.:complete
                      V17:13:22 [info] noderedcontribopenflowstorage::onupdate: Restart not needed
                      617:13:22 [info]  _saveSettings - 5:13:22 PM
                      N17:13:22 [info] noderedcontribopenflowstorage::_saveSettings.:begin
                      e17:13:21 [debug] creating new packageFile /data/.nodered-hmscsacristovaocombr/package.json
                      W17:13:21 [info] listening on http://hmscsacristovaocombr.openflow.sytes.net/
                      K17:13:21 [debug] WebServer.configure::server.listen on port 3000
                      =17:13:21 [debug] WebServer.configure::init nodered
                      �17:13:21 [debug] WebServer.configure::Using default nodered catalogues as https://catalogue.nodered.org/catalogue.json
                      �Thu, 26 May 2022 17:13:21 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at WebServer.js:115:30
                      Thu, 26 May 2022 17:13:21 GMT express-session deprecated undefined resave option; provide resave option at WebServer.js:115:30
                      &ofid=62677a56fe13eb8bfa6a6613a318d066
                      otel_trace_url 
                      otel_metric_url 
                      +17:13:21 [info] reconfigure otel
                      &ofid=62677a56fe13eb8bfa6a6613a318d066
                      `17:13:21 [info] signed in as hmsc@sacristovao.com.br with id 628fb5076828f1476e4c5765
                      *17:13:21 [info] VERSION: 1.4.10
                      ofid=hmscsacristovaocombr
                      otel_trace_url 
                      otel_metric_url 
                      417:13:20 [info] starting openflow nodered
                      4For help, see: https://nodejs.org/en/docs/inspector
                      MDebugger listening on ws://0.0.0.0:5859/2e1894c8-80f2-44b3-bc68-afc4272fe833
                      
                      Allan Zimmermann 1 Reply Last reply Reply Quote 0
                      • Allan Zimmermann
                        Allan Zimmermann @Flávio Pinheiro de Souza last edited by

                        @flávio-pinheiro-de-souza said in Openflow - 404 Page Not Found:

                        openflow.sytes.net

                        Please read the documentation. You need access to your own domain name, and then setup the 2 records as described in the documentation here

                        M Flávio Pinheiro de Souza 2 Replies Last reply Reply Quote 0
                        • M
                          mshammermc @Allan Zimmermann last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • Flávio Pinheiro de Souza
                            Flávio Pinheiro de Souza @Allan Zimmermann last edited by

                            @allan-zimmermann said in Openflow - 404 Page Not Found:

                            @flávio-pinheiro-de-souza said in Openflow - 404 Page Not Found:

                            openflow.sytes.net

                            Please read the documentation. You need access to your own domain name, and then setup the 2 records as described in the documentation here

                            Alan,
                            It wasn't very clear to me.
                            I followed the documentation I created the 2 records using a free dns, with that the openflow operated normally and just didn't open the nodered page. My question is: can I run openflow over a free and non-nodered dns?
                            Sorry if this is an ignorant question.

                            Allan Zimmermann 1 Reply Last reply Reply Quote 0
                            • Allan Zimmermann
                              Allan Zimmermann @Flávio Pinheiro de Souza last edited by

                              @flávio-pinheiro-de-souza it is not an ignorant question.
                              The free dns needs to support adding the 2 dns records. I have no idea if such an service exists.
                              Or run with traefik. Ill see if i can make a video about that soon.

                              Flávio Pinheiro de Souza 1 Reply Last reply Reply Quote 1
                              • Flávio Pinheiro de Souza
                                Flávio Pinheiro de Souza @Allan Zimmermann last edited by

                                @allan-zimmermann
                                I managed to solve the problem of my public domain.

                                • ping command resolve dns to vm ip
                                • I created the 2 dns records (see print)
                                • new docker-compose.yaml file updated to rpa.mydomain.com.br
                                • deleted all previous docker images
                                • run: sudo docker-compose up -d
                                • apparently everything ok
                                  Result: openflow page opens normally
                                  Nodered: Cannot access this site

                                f3255c68-9723-4184-8dac-2b5f9920033d-image.png
                                a34151d7-31ca-4caf-adf4-77c63ff128d0-image.png
                                423c6f28-711b-47cb-a88f-7b4c014574aa-image.png

                                Allan Zimmermann 1 Reply Last reply Reply Quote 0
                                • Allan Zimmermann
                                  Allan Zimmermann @Flávio Pinheiro de Souza last edited by

                                  @flávio-pinheiro-de-souza When you hide the domain i cannot validate if it's correct. So my best guess is you created the wildcard * cname incorrectly. It needs to point to the "main" domain, where openflow is listening.

                                  Allan Zimmermann Flávio Pinheiro de Souza 2 Replies Last reply Reply Quote 0
                                  • Allan Zimmermann
                                    Allan Zimmermann @Allan Zimmermann last edited by

                                    I just found an issue with my docker images. I was adding support for macbooks using M1, i made a mistake so : latest tag, only had the new arm process version. This should be fixed now, you may need to do a "pull" request to tell docker there is a fresh version published

                                    Flávio Pinheiro de Souza 1 Reply Last reply Reply Quote 0
                                    • Flávio Pinheiro de Souza
                                      Flávio Pinheiro de Souza @Allan Zimmermann last edited by

                                      @allan-zimmermann
                                      this is my configuration
                                      83329afe-d806-4e68-8e77-aaf66ce72e0b-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • Flávio Pinheiro de Souza
                                        Flávio Pinheiro de Souza @Allan Zimmermann last edited by

                                        @allan-zimmermann said in Openflow - 404 Page Not Found:

                                        I just found an issue with my docker images. I was adding support for macbooks using M1, i made a mistake so : latest tag, only had the new arm process version. This should be fixed now, you may need to do a "pull" request to tell docker there is a fresh version published

                                        My docker knowledge is basic, how can I make this pull request?

                                        Allan Zimmermann 1 Reply Last reply Reply Quote 0
                                        • Allan Zimmermann
                                          Allan Zimmermann @Flávio Pinheiro de Souza last edited by

                                          @flávio-pinheiro-de-souza replace up with pull
                                          So what ever you wrote to start it, do that but replace up with pull
                                          https://docs.docker.com/compose/reference/pull/

                                          Allan Zimmermann 1 Reply Last reply Reply Quote 0
                                          • Allan Zimmermann
                                            Allan Zimmermann @Allan Zimmermann last edited by Allan Zimmermann

                                            If you ran on of my .bat files, open it and look inside to see what to write

                                            1 Reply Last reply Reply Quote 0
                                            • Locked by  A az 
                                            • First post
                                              Last post