Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Slobodan Mišković
    @slobo
    sure thing, just a sec
    ok, last line is hipache..., should i try azk start again?
    i did azk start and it's stuck again, here's the agent log:
    https://gist.github.com/slobo/509256dd40c1e99fbd88
    Felipe Arenales Santos
    @fearenales
    @slobo : ps -ef | grep sync
    Slobodan Mišković
    @slobo
    on the host or in the vm?
    Felipe Arenales Santos
    @fearenales
    this is the origin folder, right? /Users/slobo/Documents/project/project-ng/react-ui
    on the host
    Slobodan Mišković
    @slobo
    Azkfile is in /Users/slobo/Documents/project/project-ng
    and i want to sync .../react-ui
      501 23567 23442   0  1:28pm ttys006    0:00.34 azk sync worker /Users/slobo/Documents/project/project-ng/react-ui /mnt/sda1/azk/sync_folders/d3a450 AZK_AGENT_CONF_FILE=/Users/slobo/.azk/data/run/agent.json
    Felipe Arenales Santos
    @fearenales
    ok, change one file from this dir (.../react-ui) and check the agent logs, please
    Slobodan Mišković
    @slobo
    (btw, "project/project-ng" is actually anonymized, so hash might not match what's the real thing)
    Felipe Arenales Santos
    @fearenales
    no worries
    Slobodan Mišković
    @slobo
    nothing in agent, just the memory monitor stuff
    i tried: touch new-file, echo > existing-file, saving a small change from editor
    btw, azk start react-ui is still stuck on syncing
    Felipe Arenales Santos
    @fearenales
    is react-ui a different git repository with its own .gitignore file?
    Slobodan Mišković
    @slobo
    no .gitignore in there
    it's in the master repo
    i mean repo base is same where Azkfile is
    Felipe Arenales Santos
    @fearenales
    ok
    Slobodan Mišković
    @slobo
    do you source .gitignore,
    Felipe Arenales Santos
    @fearenales
    give me a minute, please?
    Slobodan Mišković
    @slobo
    sure, thanks for your help!
    Felipe Arenales Santos
    @fearenales
    how is your .gitignore? Ignored files in .gitignore (or .syncignore if it exists) aren't synced (just to be sure you know that)
    Slobodan Mišković
    @slobo
    i have react-ui/node_modules in .gitignore
    in the project root
    but i think it's not normal for sync to still be stuck, and system doesn't even start?
    Felipe Arenales Santos
    @fearenales
    yes, that's odd
    may you run azk shell -c "env | grep MID" ?
    then azk vm ssh
    cd /mnt/sda1/azk/data/sync_folders/<MID>
    Slobodan Mišković
    @slobo
    no such folder, but there is: /mnt/sda1/azk/sync_folders/d3a4508ee4
    Felipe Arenales Santos
    @fearenales
    ops, my bad
    Slobodan Mišković
    @slobo
    (there is no data in the path)
    Felipe Arenales Santos
    @fearenales
    which files are in this folder?
    Slobodan Mišković
    @slobo
    files start in /mnt/sda1/azk/sync_folders/d3a4508ee4/react-ui/Users/slobo/Documents/project/project-ng/react-ui
    Felipe Arenales Santos
    @fearenales
    yes, that's right
    and those files are correct?
    Slobodan Mišković
    @slobo
    looks to be the one's from real folder, but i think they may be stale
    like, it's missing the edits i tried to make
    Felipe Arenales Santos
    @fearenales
    hmm.. one moment
    Felipe Arenales Santos
    @fearenales
    looks like the first sync is being concluded but the watcher is failing to be spawned...
    Slobodan Mišković
    @slobo
    btw, i think i tried similar thing last year with another folder, i still see the leftover dir in /mnt/sda1/azk/sync_folders/d3a4508ee4
    Bartek Kus
    @bartekus

    is there a way to have run server and client from the same folder but using different uri’s? This certainly doesnt work as I’ve found out:

    systems({
      'priim-client': {
        docker_extra: {
          User: 'root',
        },
        depends: ["priim-server"],
        image: {"docker": "azukiapp/node"},
        provision: [
          "npm install -g webpack@2.1.0-beta.4",
          "npm install -g ionic@beta",
          "npm install"
        ],
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        command: ["npm", "start"],
        wait: 200,
        mounts: {
          '/azk/#{manifest.dir}': sync("."),
          '/azk/#{manifest.dir}/node_modules': persistent("./node_modules")
        },
        scalable: {"default": 1},
        http: {
          domains: [
            "#{system.name}.#{azk.default_domain}"
          ]
        },
        ports: {
          // exports global variables
          http: "8100",
        },
        envs: {
          // Make sure that the PORT value is the same as the one
          // in ports/http below, and that it's also the same
          // if you're setting it in a .env file
          PORT: "8100",
        }
      },
    
      'priim-server': {
        docker_extra: {
          User: 'root',
        },
        depends: ["rethinkdb"],
        image: {"docker": "azukiapp/node"},
        provision: [
          "rm -rf node_modules/*",
          "npm install -g webpack@2.1.0-beta.4",
          "npm install -g ionic@beta",
          "npm install"
        ],
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        command: ["npm", "run", "serve"],
        wait: 200,
        mounts: {
          '/azk/#{manifest.dir}': sync("."),
          '/azk/#{manifest.dir}/node_modules': persistent("./node_modules")
        },
        scalable: {"default": 1},
        http: {
          domains: [
            "#{env.HOST_DOMAIN}",
            "#{env.HOST_IP}",
            "#{system.name}.#{azk.default_domain}"
          ]
        },
        ports: {
          // exports global variables
          http: "5000",
        },
        envs: {
          // Make sure that the PORT value is the same as the one
          // in ports/http below, and that it's also the same
          // if you're setting it in a .env file
          PORT: "5000",
        }
      },
    
      rethinkdb: {
        image: { docker: 'rethinkdb' },
        // If you need to expose and bind the rethinkdb ports outside of the docker
        // enable the docker_extra setting below
         docker_extra: {
           HostConfig: {
             'PortBindings': {
               '8080/tcp': [{ 'HostPort': '8080' }],
               '28015/tcp': [{ 'HostPort': '28015' }],
               '29015/tcp': [{ 'HostPort': '29015' }]
             }
           }
         },
        shell: '/bin/bash',
        scalable: false,
        command: "rethinkdb --bind all --direct-io --cache-size 512 --server-name rethinkdb --directory ./rethinkdb --canonical-address rethinkdb.dev.azk.io",
        wait: 75,
        mounts: {
          '/rethinkdb': persistent('rethinkdb-#{manifest.dir}'),
          '/data': persistent('#{system.name}/data')
        },
        ports: {
          http: '8080',
          data: '28015',
          cluster: '29015'
        },
        http: {
          domains: [ '#{system.name}.#{azk.default_domain}' ]
        },
        export_envs: {
          'DATABASE_HOST': '#{net.host}',
          'DATABASE_PORT': '#{net.port.data}',
          'DATABASE_URL': 'rethinkdb://#{net.host}:#{net.port.data}'
        }
      },
    
      deploy: {
        image: {'docker': 'azukiapp/deploy-digitalocean'},
        mounts: {
          '/azk/deploy/src' :    path('.'),
          '/azk/deploy/.ssh':    path('#{env.HOME}/.ssh'),
          '/azk/deploy/.config': persistent('deploy-config')
        },
        envs: {
          REMOTE_HOST:        "192.168.0.77"
        },
        scalable: {'default': 0, 'limit': 0}
      }
    
    });

    Any suggestions?

    Saito
    @saitodisse
    @Bartekus using different uri’s? I did not understand. As they have #{system.name}.#{azk.default_domain} they already have distinct uris.
    if priim-client depends on priim-server maybe you do not need the priim-client sync mount. They are sending files to the same place.
    Bartek Kus
    @bartekus
    @saitodisse that's exactly why I've done it this way, since extend didn't work, but neither is this current setup. But yes, I'd like both server and client use and access the same folder structure, node_modules, etc... but be accessible as separate uri's so that they could be independent restarted if necessary plus be clearly percieved/separated as distinctive subsets of the overall system
    Saito
    @saitodisse
    As they will run in distinct containers, can you try to change the left side: '/azk/#{manifest.dir}': sync("."),
    maybe:
        mounts: {
          '/azk/#{manifest.dir}/#{system.name}': sync("."),
          '/azk/#{manifest.dir}/#{system.name}/node_modules': persistent("./node_modules")
        },