Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0958BC41604 for ; Tue, 6 Oct 2020 18:14:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C9D5206F7 for ; Tue, 6 Oct 2020 18:14:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=fieldses.org header.i=@fieldses.org header.b="opkbqlla" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725925AbgJFSOz (ORCPT ); Tue, 6 Oct 2020 14:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbgJFSOz (ORCPT ); Tue, 6 Oct 2020 14:14:55 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408F7C061755 for ; Tue, 6 Oct 2020 11:14:55 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 52FAE4EE8; Tue, 6 Oct 2020 14:14:54 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 52FAE4EE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1602008094; bh=iVA5FIs5/J42htxb55cdWnMyAFxn79IqFHIL7AVpquo=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=opkbqllasuM1fNp7WW8kYuzjA94Gdtdgm9VRNgdaSkpxufdtQh9I5+jyJaUcZCKrj YwoWLbjR2wPHRlUtcB1sTcWMmAJcIksibLqyLNnd4fiuKUlsOnwJoezeOf9+maGNgP oCTDei3yL0N7IMJgAhGY3/sy9mSxgD0K3KWeOnqU= Date: Tue, 6 Oct 2020 14:14:54 -0400 To: Kenneth Johansson Cc: Patrick Goetz , linux-nfs@vger.kernel.org Subject: Re: nfs home directory and google chrome. Message-ID: <20201006181454.GB32640@fieldses.org> References: <0ba0cd0c-eccd-2362-9958-23cd1fa033df@kenjo.org> <5326b6a3-0222-fc1a-6baa-ae2fbdaf209d@math.utexas.edu> <923003de-7fcf-abee-07a2-0691b25673d8@kenjo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <923003de-7fcf-abee-07a2-0691b25673d8@kenjo.org> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Oct 05, 2020 at 10:07:56PM +0200, Kenneth Johansson wrote: > On 2020-10-05 18:46, Patrick Goetz wrote: > >We had a similar problem with Firefox, most notably with Mac OSX > >users who have NFS-mounted home directories. There's an > >about:config solution for Firefox; namely set > > > >   storage.nfs_filesystem: true > > > >This forces a specific network file locking mechanism which makes > >sqlite behave better. I'm guessing google chrome has something > >similar. > > > Since I have used chrome for years without any problems my guess it > that its something that changed with nfs in my setup. > > I did a strace and the first -EIO I get look like this > > fdatasync(94) > = -1 EIO (Input/output error) > > then the same thing happens for other files like > > fdatasync(83) = > -1 EIO (Input/output error) > > fdatasync(74) = > -1 EIO (Input/output error) Are you using soft mounts? (What are your mount options?) --b. > > > > > >On 10/4/20 6:53 AM, Kenneth Johansson wrote: > >>So I have had for a long time problems with google chrome and > >>suspend resume causing it to mangle its sqlite database. > >> > >>it looks to only happen if I use nfs mounted home directory. I'm > >>not sure exactly what is happening but lets first see if this > >>happens to anybody else. > >> > >>How to get the error. > >> > >>1. start google from a terminal with "google-chrome" > >> > >>2. suspend the computer > >> > >>3. wait a while. There is some type of minimum time here I do > >>not know what its is but I basically get the error every time of > >>I suspend in evening and resume in morning > >> > >>4. look for printout that looks like something like this > >> > >>[16789:18181:1004/125852.529750:ERROR:database.cc(1692)] > >>Passwords sqlite error 1034, errno 5: disk I/O error, sql: > >>COMMIT > >>[16789:16829:1004/125852.529744:ERROR:database.cc(1692)] Web > >>sqlite error 1034, errno 5: disk I/O error, sql: COMMIT > >>[16789:16829:1004/125852.530261:ERROR:database.cc(1692)] Web > >>sqlite error 1034, errno 5: disk I/O error, sql: INSERT OR > >>REPLACE INTO autofill_model_type_state (model_type, value) > >>VALUES(?,?) > >>[16789:16789:1004/125852.563571:ERROR:sync_metadata_store_change_list.cc(34)] > >>Autofill datatype error was encountered: Failed to update > >>ModelTypeState. > >>[16789:19002:1004/125902.534103:ERROR:database.cc(1692)] History > >>sqlite error 1034, errno 5: disk I/O error, sql: COMMIT > >>[16789:19002:1004/125902.536903:ERROR:database.cc(1692)] > >>Thumbnail sqlite error 778, errno 5: disk I/O error, sql: COMMIT > >> > >> > >>[16789:19002:1004/130044.120379:ERROR:database.cc(1692)] > >>Passwords sqlite error 1034, errno 5: disk I/O error, sql: > >>INSERT OR REPLACE INTO sync_model_metadata (id, model_metadata) > >>VALUES(1, ?) > >>[16789:16829:1004/130044.120388:ERROR:database.cc(1692)] Web > >>sqlite error 1034, errno 5: disk I/O error, sql: INSERT OR > >>REPLACE INTO autofill_model_type_state (model_type, value) > >>VALUES(?,?) > >> > >> > >>and so on.  if you use google sync you can also check > >>"chrome://sync-internals" to see if something is wrong with the > >>database. > >> > >> > >> > >>>>This message is from an external sender. Learn more about why this << > >>>>matters at https://links.utexas.edu/rtyclf. << >