• [^] # Re: Le système a accès au conteneur

    Posté par . En réponse au message Problémes avec contener LxC qui ne démarrent plus .... Évalué à 1.

    Bon en fait j'avais mal modifié le my.cnf,

    en forçant le paramètre datadir=/var/lib/lxc/www-prod/rootfs/var/lib/mysql/

    MySQL refuse bien de démarrée ... j'ai pourtant collé un 777 de cochon sur le repertoire du conteneur ...

    mysql.error :

    140704 22:04:42 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
    140704 22:05:17 mysqld_safe Starting mysqld daemon with databases from /var/lib/lxc/www-prod/rootfs/var/lib/mysql
    140704 22:05:17 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
    140704 22:05:17 [Warning] Can't create test file /var/lib/lxc/www-prod/rootfs/var/lib/mysql/cube-box.lower-test
    140704 22:05:17 [Warning] Can't create test file /var/lib/lxc/www-prod/rootfs/var/lib/mysql/cube-box.lower-test
    140704 22:05:17 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
    140704 22:05:17 [Note] Plugin 'FEDERATED' is disabled.
    /usr/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
    140704 22:05:17 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
    140704 22:05:17 InnoDB: The InnoDB memory heap is disabled
    140704 22:05:17 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    140704 22:05:17 InnoDB: Compressed tables use zlib 1.2.8
    140704 22:05:17 InnoDB: Using Linux native AIO
    140704 22:05:17 InnoDB: Initializing buffer pool, size = 128.0M
    140704 22:05:17 InnoDB: Completed initialization of buffer pool
    140704 22:05:17 InnoDB: Operating system error number 13 in a file operation.
    InnoDB: The error means mysqld does not have the access rights to
    InnoDB: the directory.
    InnoDB: File name ./ibdata1
    InnoDB: File operation call: 'create'.
    InnoDB: Cannot continue operation.
    140704 22:05:17 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended