From owner-freebsd-current@FreeBSD.ORG Mon Jan 3 13:21:19 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA6561065670 for ; Mon, 3 Jan 2011 13:21:19 +0000 (UTC) (envelope-from dsc.fbsd.current@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3C2568FC21 for ; Mon, 3 Jan 2011 13:21:18 +0000 (UTC) Received: by ewy24 with SMTP id 24so6272018ewy.13 for ; Mon, 03 Jan 2011 05:21:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=ASvMCyOvmUsNFE2SnbOX9Hhfb/PrlbXKZmCzAyD+Jgw=; b=tPi4W4YF9HRSt6kXhIhfS7txIWXo67eGvgWyYKclazCzg0dvsbYE15E/FBNlnVacdG NBPy8WMDus5LGjZ5RTNxw4vEELHuBWYfngX1dRMhBS2f0SdFc0dAKrnfcOLjmZZ09JOK VbF1CkVW8KZkoZmDJFTaCrSJLpR6N/ISsJP4c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; b=UsdIdzqkwFbjiWmcAdI/247LhHpjLFnfhGJTIn62fiBU69jLc1tpPPABKcklUPGBIC lfS/418y0+0Gd+K3hsM1wx2Ipr6un3JS4whryw4dFCt87a1aGtAWQwibFjh32yc6sMEm Kd23BycxQUrNAZd5O7odXoXNDPEPlpVgAJmao= Received: by 10.213.6.193 with SMTP id a1mr1141513eba.63.1294060877960; Mon, 03 Jan 2011 05:21:17 -0800 (PST) Received: from fscld ([94.176.153.23]) by mx.google.com with ESMTPS id x54sm14785439eeh.23.2011.01.03.05.21.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 05:21:17 -0800 (PST) From: "dsc fbsd.current" To: "'J. Hellenthal'" Date: Mon, 3 Jan 2011 15:20:55 +0200 Message-ID: <002301cbab49$10468350$30d389f0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcurSA3CDWMqYCv4SJSn/jf6Fe559A== Content-Language: en-us Cc: freebsd-current@freebsd.org Subject: RE: jailing MYSQL error [SOLVED] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 13:21:19 -0000 Hello, SOLVED ! But the problem was in another place. Host world and kernel were build with src r215329 (patched with head-v28-v2.patch from Martin Matuska), but ezjail buildworld was made using more recent sources with no patch (in fact I was trying to apply the same patch to more recent sources, but it doesn't work ... but that's another issue). Mysql seems to have problems in this case (kernel and world based on different versions of src). But other stuff work just fine. So, first I've made a jail (standard steps from the handbook) using the same src r215329 (patched for zfs v28). Mysql works fine under this jail. After this step, I've updated the ezjail basejail (ezjail-admin update -i). Now, Mysql works just fine under ezjail too. Thanks for your time and help. Regards, Lulu -----Original Message----- From: J. Hellenthal [mailto:jhellenthal@gmail.com] On Behalf Of J. Hellenthal Sent: Monday, January 03, 2011 12:24 AM To: dsc fbsd.current Cc: freebsd-current@freebsd.org Subject: Re: jailing MYSQL error -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Just to be sure as the long detailed information that you laid before can lead to confusion, lets take this one step at a time. Assuming all your bases are covered and it sinks down to a permissions issue try this: chown root:wheel /path/to/jail/tmp /path/to/jail/var/tmp chmod 1777 /path/to/jail/tmp /path/to/jail/var/tmp rm -rf /path/to/jail/var/db/mysql - -Login to the jail here- make sure that rc.conf* only contains mysql_enable="YES" service mysql-server start ls -ld /var/db/mysql should convey mode 700 or drwx------ and uid/88 gid/88 mysql/mysql At this point your mysql server should be running and fully working. Another thing to make sure you eliminate just in case... would be any my.cnf files in /etc or /usr/local/etc Good luck - -- Regards, jhell,v JJH48-ARIN -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJNIPrkAAoJEJBXh4mJ2FR+fLEH/0N91782PKGna/DZNoRF4hWJ 8tTh9bPFaHGjRu2ITC08gFJBLaAK8hE5oh9Tg5k6eysyzjE1EEHXUAJaL6B8Rg+N w5m66OGtvunX8JQqwu8d6ulDLk4EHex7Aaf0G2wfpW2OBDP4oCbeXxaakDJp+dzB GGf4a4ezODgQsr8Hxva71bgesfQ6a1BEirf/pwGcaQs9y1lCgoRK6M+iKDKqruLM Vyp4oNCHX52GTKa/cpx2VveZG/F21RabYtCVrBhU3Xq0EbDeDkiP2JjZt0xNPJVA dnCfCtTRECeruqlFHekH7MayF7uZ5nZIjJ3SEA6xHTCyt3PVC7oxr1NCmaETWJQ= =HFv4 -----END PGP SIGNATURE-----