These are chat archives for azukiapp/azk

15th
Nov 2015
Patrik Patie Gmitter
@patie
Nov 15 2015 15:56
anybody who have problem with latest azukiapp/mysql ?
azk: .mysql [log] > Command not set in system mysql
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:07
@patie
You forced download the image and the problem persists?
Patrik Patie Gmitter
@patie
Nov 15 2015 16:07
i think yes, how can i force download for sure?
before i was
azk: .dbmysql [log] > /azk-entrypoint.sh: line 6: /docker-entrypoint.sh: No such file or directory
now i have
azk: .mysql [log] > Command not set in system mysql
on both computers the same problem hm
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:12

in the command azk start, you can use the option--rebuild
e.g:

azk start mysql --rebuild

To more options, run:

azk start --help
Patrik Patie Gmitter
@patie
Nov 15 2015 16:13
same problem
azk: Run system mysql return: (1), for command: /bin/bash -c echo "Command not set in system `mysql`"; exit 1:
azk: .mysql [log] > Command not set in system mysql
i dont know whats going on
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:14
one moment
Patrik Patie Gmitter
@patie
Nov 15 2015 16:14
of course
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:15
pls, run:
azk shell --image azukiapp/mysql -c "cat /azk-entrypoint.sh"
Patrik Patie Gmitter
@patie
Nov 15 2015 16:15
its ok
#!/bin/bash
set -e

export MYSQL_PASSWORD="${MYSQL_PASSWORD:-$MYSQL_PASS}"

exec /entrypoint.sh "$@"
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:16
the image has been updated.
the problem lies elsewhere.
Patrik Patie Gmitter
@patie
Nov 15 2015 16:17
so what i must do, any idea please
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:17
show me your Azkfile, please.
Patrik Patie Gmitter
@patie
Nov 15 2015 16:18
systems({

    'appka': {
        depends: ['mysql', 'redis'],
        image: {
            dockerfile: '../docker-php-apache/5.6/Dockerfile'
        },
        provision: [
            "composer install"
        ],
        workdir: "/azk/#{manifest.dir}",
        shell: "/bin/bash",
        wait: {"retry": 20, "timeout": 1000},
        mounts: {
            '/azk/#{manifest.dir}': sync("./php")
        },
        scalable: {"default": 1},
        http: {
            domains: ["#{system.name}.#{azk.default_domain}"]
        },
        ports: {
            http: "80/tcp",
        },
        envs: {
            APP_DIR: "/azk/#{manifest.dir}",
        },
    },

    mysql: {
        image: {"docker": "azukiapp/mysql:5.7"},
        shell: "/bin/bash",
        wait: 25,
        mounts: {
            '/var/lib/mysql': persistent("mysql_data"),
        },
        ports: {
            data: "3306/tcp",
        },
        envs: {
            MYSQL_ROOT_PASSWORD: "your-root-password",
            MYSQL_USER: "your-user",
            MYSQL_PASS: "your-password",
            MYSQL_DATABASE: "#{manifest.dir}_development"
        },
        export_envs: {
            MYSQL_USER: "your-user",
            MYSQL_PASS: "your-password",
            MYSQL_DATABASE: "#{manifest.dir}_development"
        },
    },

    redis: {
        scalable: false,
        image: {docker: "library/redis"},
        mounts: {
            "/data": persistent("#{manifest.dir}/redis")
        },
        export_envs: {
            REDIS_PORT: "#{net.port[6379]}",
            REDIS_HOST: "#{net.host}",
        },
        http: {domains: ["#{system.name}.#{azk.default_domain}"]},
        wait: {retry: 20, timeout: 2000},
        ports: {data: "6379/tcp"}
    }

});
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:22
I found the problem.
Patrik Patie Gmitter
@patie
Nov 15 2015 16:23
in my azkfile or in image?
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:25
It seems that the docker changed behavior.
From what I understand, now, if you change the ENTRYPOINT of image, you will needs to set a new CMD.
I will correct the image, but as a workaround, you add the command mysqld in the mysql system.
eg:
command: "mysqld”
Patrik Patie Gmitter
@patie
Nov 15 2015 16:26
i try for now
uh
there is more problems :)
azk: Run system `mysql` return: (1), for command: /bin/bash -c mysqld:
azk:  .mysql [log] >  2015-11-15T16:28:28.340095Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
azk:  .mysql [log] >  2015-11-15T16:28:28.340178Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
azk:  .mysql [log] >  2015-11-15T16:28:28.492645Z 0 [Note] mysqld (mysqld 5.7.9) starting as process 1 ...
azk:  .mysql [log] >  2015-11-15T16:28:28.496235Z 0 [Note] InnoDB: PUNCH HOLE support available
azk:  .mysql [log] >  2015-11-15T16:28:28.496279Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
azk:  .mysql [log] >  2015-11-15T16:28:28.496284Z 0 [Note] InnoDB: Uses event mutexes
azk:  .mysql [log] >  2015-11-15T16:28:28.496287Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
azk:  .mysql [log] >  2015-11-15T16:28:28.496292Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
azk:  .mysql [log] >  2015-11-15T16:28:28.496295Z 0 [Note] InnoDB: Using Linux native AIO
azk:  .mysql [log] >  2015-11-15T16:28:28.496549Z 0 [Note] InnoDB: Number of pools: 1
azk:  .mysql [log] >  2015-11-15T16:28:28.496733Z 0 [Note] InnoDB: Using CPU crc32 instructions
azk:  .mysql [log] >  2015-11-15T16:28:28.502598Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
azk:  .mysql [log] >  2015-11-15T16:28:28.509060Z 0 [Note] InnoDB: Completed initialization of buffer pool
azk:  .mysql [log] >  2015-11-15T16:28:28.511111Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
azk:  .mysql [log] >  2015-11-15T16:28:28.522042Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
azk:  .mysql [log] >  2015-11-15T16:28:28.522424Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
azk:  .mysql [log] >  2015-11-15T16:28:28.522467Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
azk:  .mysql [log] >  2015-11-15T16:28:28.522506Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
azk:  .mysql [log] >  2015-11-15T16:28:28.522542Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
azk:  .mysql [log] >  2015-11-15T16:28:28.522567Z 0 [ERROR] InnoDB: Cannot open datafile './ibdata1'
azk:  .mysql [log] >  2015-11-15T16:28:28.522634Z 0 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
azk:  .mysql [log] >  2015-11-15T16:28:28.522662Z 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Cannot open a file. You may need to delete the ibdata1 file before trying to start up again.
azk:  .mysql [log] >  2015-11-15T16:28:29.127085Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
azk:  .mysql [log] >  2015-11-15T16:28:29.127189Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
azk:  .mysql [log] >  2015-11-15T16:28:29.127249Z 0 [ERROR] Failed to initialize plugins.
azk:  .mysql [log] >  2015-11-15T16:28:29.127273Z 0 [ERROR] Aborting
azk:  .mysql [log] >  
azk:  .mysql [log] >  2015-11-15T16:28:29.127307Z 0 [Note] Binlog end
azk:  .mysql [log] >  2015-11-15T16:28:29.127483Z 0 [Note] Shutting down plugin 'MyISAM'
azk:  .mysql [log] >  2015-11-15T16:28:29.127849Z 0 [Note] mysqld: Shutdown complete
maybe user permissions
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:42
This problem must be related to persisted data.
run:
azk shell mysql -c "rm -rf /var/lib/mysql/*"
and start again
Patrik Patie Gmitter
@patie
Nov 15 2015 16:45
@gullitmiranda same problem :(
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:50
Here it worked.
Patrik Patie Gmitter
@patie
Nov 15 2015 16:50
hm
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:51
please, run:
$ azk shell mysql
ls -alh /var/lib/mysql/
Patrik Patie Gmitter
@patie
Nov 15 2015 16:52
root@5d415a658207:/# ls -alh /var/lib/mysql/
total 8.0K
drwxr-xr-x  2 root root 4.0K Nov 15 16:47 .
drwxr-xr-x 18 root root 4.0K Nov 10 20:11 ..
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:52
inside of shell, try:
mysqld &
Patrik Patie Gmitter
@patie
Nov 15 2015 16:53
same error
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:53
you use Mac OS X, right?
Patrik Patie Gmitter
@patie
Nov 15 2015 16:53
yep
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:56
It is a known problem:
docker-library/mysql#3
Patrik Patie Gmitter
@patie
Nov 15 2015 16:57
:/
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:57
What is the memory of your machine?
Patrik Patie Gmitter
@patie
Nov 15 2015 16:57
8gb
but now only 0.7 free, this can be problem
Gullit Miranda
@gullitmiranda
Nov 15 2015 16:58
This should not be a problem, after all the memory of the VM is reserved.
My machine has only 4GB.
How is the disk space?
Patrik Patie Gmitter
@patie
Nov 15 2015 16:59
800GB free :D
Gullit Miranda
@gullitmiranda
Nov 15 2015 17:00
Very strange.
try to stop your agent and start again.
Patrik Patie Gmitter
@patie
Nov 15 2015 17:02
nope, im sad because that :(
Gullit Miranda
@gullitmiranda
Nov 15 2015 17:04
:cry:
Patrik Patie Gmitter
@patie
Nov 15 2015 17:04
few days ago there was no problem, it must be something in new versions somewhere :/
Gullit Miranda
@gullitmiranda
Nov 15 2015 17:07
this release of 0:16 was not very good :(
Updating the docker has been sore
Gullit Miranda
@gullitmiranda
Nov 15 2015 17:13
try the following:
  • Change the image to azukiapp/mysql: 5.6
  • Clean and run:
    azk shell mysql -c "rm -rf /var/lib/mysql/*”
    azk start mysql
Patrik Patie Gmitter
@patie
Nov 15 2015 17:17
same
Gullit Miranda
@gullitmiranda
Nov 15 2015 17:20
:(
I need to do some more tests to try to replicate your problem. What azk version you are using?
Patrik Patie Gmitter
@patie
Nov 15 2015 17:23
azk 0.16.1
Gullit Miranda
@gullitmiranda
Nov 15 2015 17:24
ok
Patrik Patie Gmitter
@patie
Nov 15 2015 18:02
if you have any other questions im here
Gullit Miranda
@gullitmiranda
Nov 15 2015 18:03
Not for now. I'm doing some tests and has even identified a small BUG in the release that we are preparing.
Patrik Patie Gmitter
@patie
Nov 15 2015 18:03
thank you for great work
Gullit Miranda
@gullitmiranda
Nov 15 2015 18:04
thanks, but not yet solved the problem :p
Because in my machine all versions are running smoothly.
Patrik Patie Gmitter
@patie
Nov 15 2015 18:06
you cannot send me it for try?
Gullit Miranda
@gullitmiranda
Nov 15 2015 18:07
ok. Let's do a cleaning and testing, including the official images.
Patrik Patie Gmitter
@patie
Nov 15 2015 18:08
no problem but you must me tell what must i do :D
Gullit Miranda
@gullitmiranda
Nov 15 2015 18:09
Clean:
azk agent stop 
azk agent start

adocker rm -f $(adocker ps -f status=exited -q | tr '\r\n' ' ')
adocker rmi -f $(adocker images | grep "mysql" | awk '{print $3}' | tr '\r\n' ' ')
Update your mysql system:
  mysql: {
    // Dependent systems
    depends: [],
    // More images:  http://images.azk.io
    image: {"docker": "mysql:5.7"},
    shell: "/bin/bash",
    // command: "mysqld",
    wait: 25,
    mounts: {
      '/var/lib/mysql': persistent("#{manifest.dir}/mysql"),
    },
    ports: {
      // exports global variables
      data: "3306/tcp",
    },
    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
      MYSQL_ROOT_PASSWORD: "mysecretpassword",
      MYSQL_USER         : "azk",
      MYSQL_PASSWORD     : "azk",
      MYSQL_DATABASE     : "#{manifest.dir}_development",
    },
    export_envs: {
      // check this gist to configure your database
      // https://gist.github.com/gullitmiranda/62082f2e47c364ef9617
      DATABASE_URL: "mysql2://#{envs.MYSQL_USER}:#{envs.MYSQL_PASSWORD}@#{net.host}:#{net.port.data}/#{envs.MYSQL_DATABASE}",
    },
  },
Patrik Patie Gmitter
@patie
Nov 15 2015 18:10
clean done
you want try only mysql system or with apache-php ?
Gullit Miranda
@gullitmiranda
Nov 15 2015 18:11
  • clean persistents and run:
    azk shell mysql -c "rm -rf /var/lib/mysql/*" && azk restart mysql -vvvv
for now only mysql. But no need to remove the other systems.
Patrik Patie Gmitter
@patie
Nov 15 2015 18:12
k
Patrik Patie Gmitter
@patie
Nov 15 2015 18:21
hm mysql only working
i go try, with apache
whats changed?
Gullit Miranda
@gullitmiranda
Nov 15 2015 18:28
I think it might be something related images.
If possible also try to image azukiapp/mysql: 5.7
Patrik Patie Gmitter
@patie
Nov 15 2015 18:31
now i tested 5.7 from your azkfile part
maybe you mean 5.6?
Gullit Miranda
@gullitmiranda
Nov 15 2015 19:21
no
test with 5.7.
Patrik Patie Gmitter
@patie
Nov 15 2015 19:21
separate mysql 5.7 is ok
now i want try with php and apache but app has long waiting on comparing registry layers and local layers...
i dont know why, no errors, maybe problem with connection
Gullit Miranda
@gullitmiranda
Nov 15 2015 19:25
can be local or in docker hub.
Patrik Patie Gmitter
@patie
Nov 15 2015 19:57
its strange, local and remote dont work
probably because we removed all images
Step 0 : FROM azukiapp/apache2
and waiting
i do try restart agent
imac27:test2 patie$ azk start -vv
azk: ↑ starting `mysql` system, 1 new instances...
azk: ✓ checking `library/mysql:5.7` image...
azk: ◴ waiting for `mysql` system to start, trying connection to port data/tcp...
azk: ↑ starting `appka` system, 1 new instances...
azk: ✓ checking `azukiapp/php-apache:latest` image...
azk: ⇲ downloading `azukiapp/php-apache:latest` image...
azk: ⇲ comparing registry layers and local layers...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ image already being pulled. Please wait...
azk: ⇲ pulling 21/38 layers.
     [=============                                    ] 29% 6/21
now its waiting on 29% :/
Patrik Patie Gmitter
@patie
Nov 15 2015 20:21
i restarted computer and now its working omg
:(
Patrik Patie Gmitter
@patie
Nov 15 2015 20:32
ok now all run fine
last error i see in main system with apache and php is
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.27. Set the 'ServerName' directive globally to suppress this message
but its not really error, maybe notice, so its good now :)
Gullit Miranda
@gullitmiranda
Nov 15 2015 21:14
cool. Glad it all worked out now =D
This notice will appear because the server name was not configured, it can be anyone.