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


    Cloudron Forum

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

    Solved Install own app failed with No CloudronManifest.json found

    App Packaging & Development
    cli packaging
    3
    14
    525
    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.
    • R
      roru2k20 last edited by girish

      Hey,

      I would like to test a own app, but my console said
      No CloudronManifest.json found

      My image is on hub.docker.com and works on local docker installation.

      In my image also in my BitBucket repo exists CloudronManifest.json. I have copied an existing file and modify for my app.

      On hub.docker.com my repo built automatically at every commit on BitBucket

      murgero 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        The manifest file will not be part of the image. The docker image only contains the actual application. The manifest as well as other resources like the app logo are not part of that.

        For the cli, you have to make sure that you are in the same directory (your repository I assume) where the CloudronManifest.json resides.

        1 Reply Last reply Reply Quote 0
        • murgero
          murgero App Dev @roru2k20 last edited by

          @roru2k20 To install a custom app, CloudronManifest needs to be in the same dir where you run the install command.

          So as an example, if you git clone a custom app to your HDD:

          git clone https://github.com/username/cloudron-app
          cd cloudron-app
          cloudron install --image=dockerhubid/packagename
          

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~
          Matrix: @murgero:urgero.org

          1 Reply Last reply Reply Quote 1
          • R
            roru2k20 last edited by

            Okay I understand!
            It was not clear to me that I also had to be locally in the same directory.

            Now I have tested on my VS Code with installed Docker Desktop, npm with chocolatey, git and so on and it doesn't work for me. I think the problem is, that my user has no admin rights, therefore I can't install correctly any npm tools and therefore no cloudron cli work.

            With cloudron login my.... I get

            PS H:\Projekte\Docker\cloudron-mariadb> cloudron login my....
            internal/fs/utils.js:230
                throw err;
                ^
            
            Error: ENOENT: no such file or directory, open '\Users\axelh\.cloudron.json'
                at Object.openSync (fs.js:458:3)
                at Object.writeFileSync (fs.js:1355:35)
                at save (C:\Users\axelh\AppData\Roaming\npm\node_modules\cloudron\src\config.js:63:8)
                at set (C:\Users\axelh\AppData\Roaming\npm\node_modules\cloudron\src\config.js:71:5)
                at Object.<anonymous> (C:\Users\axelh\AppData\Roaming\npm\node_modules\cloudron\src\config.js:55:60)
                at Module._compile (internal/modules/cjs/loader.js:1138:30)
                at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
                at Module.load (internal/modules/cjs/loader.js:986:32)
                at Function.Module._load (internal/modules/cjs/loader.js:879:14)
                at Module.require (internal/modules/cjs/loader.js:1026:19) {
              errno: -4058,
              syscall: 'open',
              code: 'ENOENT',
              path: '\\Users\\axelh\\.cloudron.json'
            }
            PS H:\Projekte\Docker\cloudron-mariadb> 
            

            I have to work something out

            1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff last edited by

              We haven't really tested it on windows yet. I will do so in the next couple of days, to see if we need some special fixes there.

              1 Reply Last reply Reply Quote 0
              • R
                roru2k20 last edited by

                I install ZorinOS on HyperV and try it there

                1 Reply Last reply Reply Quote 0
                • R
                  roru2k20 last edited by

                  Hey,
                  I did everything differently than I had planned 😊

                  I have installed my first app on my instance, but i can't connect to mariadb-server.
                  Yes my plan was to install a standalone mariadb-server to use it as cloud database without any connection to the internal database.

                  Now I would like to test my server and I can't connect. The server runs good, the special credentials that I have created dynamically while installation works, but when I try to connect from my Client Valentina Studio on Zorin OS to the server nothing happens.

                  What I'm doing wrong?

                  https://bitbucket.org/roru2k20/cloudron-mariadb/src/master/

                  Can anybody help me? All knowledge I have acquired autodidactically

                  Thanks and have a nice evening.

                  murgero 1 Reply Last reply Reply Quote 0
                  • murgero
                    murgero App Dev @roru2k20 last edited by

                    @roru2k20 To use cloudrons built-in mysql server (MariaDB is mysql!) you need to add the mysql addon to the manifest. Then you will get auto-generated credentials via environment variables.

                    https://cloudron.io/documentation/custom-apps/addons/#mysql

                    Screenshot of how the manifest would look with it:
                    ba36fac5-95f1-4729-96b1-a6c471c22f7f-image.png

                    Please note the syntax - it's a JSON file and will need to be formatted properly!

                    --
                    https://urgero.org
                    ~ Professional Nerd. Freelance Programmer. ~
                    Matrix: @murgero:urgero.org

                    R 1 Reply Last reply Reply Quote 1
                    • R
                      roru2k20 @murgero last edited by

                      @murgero many thanks but my plan is not to connect to the internal server. My plan is only to create a standalone server.

                      Now I have installed successfully, but I can't connect to them.

                      When I test the container with a portscanner only 80, 443, 22 and 222 are open. My plan is 6033.

                      Screenshot_20200725-111439.png

                      Is this a good plan?

                      When all is fine next step is to combine with phpMyAdmin in one installation.

                      1 Reply Last reply Reply Quote 0
                      • R
                        roru2k20 last edited by

                        Now I have change all Ports to 6033 and I can't connect to the MariaDB-Server

                        Here you can see my netstat -tulpen export
                        Bildschirmfoto vom 2020-07-25 13-32-09.png

                        But further my portscanner said no open Port 6033.

                        What I'm doing wrong???

                        1 Reply Last reply Reply Quote 0
                        • nebulon
                          nebulon Staff last edited by

                          In your case you have to specify the ports in the CloudronManifest. See https://cloudron.io/documentation/custom-apps/manifest/#tcpports for that

                          Generally, what is your reason to require a standalone mysql server as an app on your Cloudron?

                          1 Reply Last reply Reply Quote 1
                          • R
                            roru2k20 last edited by

                            I would like to test if I can create an App for Cloudron.

                            But may be as App for centralized database server for development. It is only an idea from me.

                            When it successfull done I would like to test more, may be more complicated app.

                            1 Reply Last reply Reply Quote 0
                            • R
                              roru2k20 last edited by

                              Oh my godness...I'm so blind

                              In Germany we often say: We can't see the forest for the trees. 😉

                              It works great!! It was misconfiguration of my client. My client Valentina Studio thought the connection was a MSSQL-Server and not a MariaDB/MySQL. After I recreate my connection it works with the right port and use my special credentials.

                              Thanks a lot for your help

                              1 Reply Last reply Reply Quote 0
                              • nebulon
                                nebulon Staff last edited by

                                Glad it solved itself 🙂

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Powered by NodeBB