From unknown Fri Mar 29 11:14:39 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#1063: CreateDB fails with error `DBI connect('dbname=/var/lib/x2go/x2go_sessions', '', ...) failed` Reply-To: Sivachidambaram Somu , 1063@bugs.x2go.org Resent-From: Sivachidambaram Somu Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Sun, 14 Aug 2016 01:15:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 1063 X-X2Go-PR-Package: x2goserver X-X2Go-PR-Keywords: moreinfo Received: via spool by 1063-submit@bugs.x2go.org id=B1063.147113718629434 (code B ref 1063); Sun, 14 Aug 2016 01:15:01 +0000 Received: (at 1063) by bugs.x2go.org; 14 Aug 2016 01:13:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.7 required=3.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from localhost (localhost [127.0.0.1]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 38EAD5DEFE for <1063@bugs.x2go.org>; Sun, 14 Aug 2016 03:13:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de Received: from ymir.das-netzwerkteam.de ([127.0.0.1]) by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QhaVd2jvjRLD for <1063@bugs.x2go.org>; Sun, 14 Aug 2016 03:12:57 +0200 (CEST) Received: from mail-qt0-f181.google.com (mail-qt0-f181.google.com [209.85.216.181]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 0447F5DDF4 for <1063@bugs.x2go.org>; Sun, 14 Aug 2016 03:12:57 +0200 (CEST) Received: by mail-qt0-f181.google.com with SMTP id x25so9025299qtx.2 for <1063@bugs.x2go.org>; Sat, 13 Aug 2016 18:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hu3HHHLJ8W+YY+it5OAeE0EdeNE3AAMT7OHwbk73Ij8=; b=WHdRSR93LOWqbdwyTr9skBvsGUnGVKkVVecdGeXb1aI1cXDl9A6+Dw/wNrnV6VbGvE MvtJ4IH5BwSG0CB66fuY5v6NlVEJYUBc7g0NZ0Xtux2KmVwzDrgrvN4JZ3DQMaW5BlmB Ocdeb6Le9Cw1wZe6XFqtP31nubggOO1jLeontnpTSjXRVEU5pq/S3cqQRNj1vYXGt/xQ noHIe2ZodIY//ApL+U/ghYR21e/DMA4NtFqxKaO4hxyFCZ4724R+OFw9VkWIlrM89aOV aN+rmKsGi+DFeMHJ9GapBvw2M9IFFmtJewX6cRbU6M0bNaFUQbSd3ZnQ5mC6+MNeHiDt 43xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hu3HHHLJ8W+YY+it5OAeE0EdeNE3AAMT7OHwbk73Ij8=; b=gKjuZvre9d7UWxj1SC5u8nzTomsDLc8LSCMz/veM5NBdFwaPUCb6D+fCFO4qwXwu0R PZtzZTVTtqlH9wv+U4C/vLwqrGUFiyv6AOqjg83RuMV/SsJnpAE0TrdRNAfM49lEUeWc /s3FTcxqDj4SEvIT+YukURybWj7WqeJlrGcI8e1vajNB+ayT3LFsVJdQ/z++Mr1LnSvI tZrHGDhVXoC3R2uKVW8vE1SJa4Ei35S/rohcxoo1Ncvjg+okIjrNRYZRDaiRMQQPlCaV r9y1ctHY7/jZwYHq9mu00bprBn+RcC79BWSDcEICCSS1gzQ/SufKYu4h+LHnaSG4CFc6 uWiA== X-Gm-Message-State: AEkooutq6KoZ0Y+kTTecn/tmdFSKZQZJgdS6dVAL9LZKm9+loJmo7rYwh6X3c1J/QeWgmjgZBV4NE9UPCtqDDQ== X-Received: by 10.237.36.112 with SMTP id s45mr25317404qtc.7.1471137175758; Sat, 13 Aug 2016 18:12:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.79.3 with HTTP; Sat, 13 Aug 2016 18:12:54 -0700 (PDT) Received: by 10.55.79.3 with HTTP; Sat, 13 Aug 2016 18:12:54 -0700 (PDT) In-Reply-To: References: From: Sivachidambaram Somu Date: Sun, 14 Aug 2016 06:42:54 +0530 Message-ID: To: Mihai Moldovan Cc: 1063@bugs.x2go.org Content-Type: multipart/alternative; boundary=001a113fecdec6ecec0539fdd02e --001a113fecdec6ecec0539fdd02e Content-Type: text/plain; charset=UTF-8 When I run the command with elevated privileges, the created DB file is owned by root and it remains unaccessible when the client tries to establish a connection. On Aug 14, 2016 2:41 AM, "Mihai Moldovan" wrote: > Control: tag -1 moreinfo > > On 26.07.2016 08:03 AM, Sivachidambaram Somu wrote: > > Package: x2goserver > > Version: 4.0.1.19-3.el6 > > > > Upon installing x2goserver, when "x2godbadmin" script is used with > create DB > > option, a DBI connect error is thrown by the script. As a result, upon > > suspending/terminating the first session, the client refuses to > reconnect to the > > server displaying the error message given below. > > > > *_Complete Error Message:_* > > > > %x2godbadmin --createdb > > > > DBI connect('dbname=/var/lib/x2go/x2go_sessions','',...) failed: unable > to open > > database file at /usr/sbin/x2godbadmin line 103 > > > > backend=sqlite at /usr/sbin/x2godbadmin line 103. > > Not quite sure what you do here or what the bug is. > > You're trying to create the DB as a user - which won't work. > > sudo x2godbadmin --createdb > > should work, instead, and judging from the DB's size (13 KB), it looks > like it > was created successfully by the RPM scriptlets. > > So what's the *real* problem? > > > > Mihai > > --001a113fecdec6ecec0539fdd02e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

When I run the command with elevated privileges, the created= DB file is owned by root and it remains unaccessible when the client tries= to establish a connection.

--001a113fecdec6ecec0539fdd02e--