[GRASS-dev] [GRASS GIS] #491: grass7: cannot start grass with -text and no existing .grassrc7

#491: grass7: cannot start grass with -text and no existing .grassrc7
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
With no .grassrc7 file, starting grass7 with the -text parameter leads to
the following error:

{{{
/home/mlennert/<UNKNOWN>/<UNKNOWN>/.gislock: No such file or directory
ERREUR :
         /home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/etc/lock:
mlennert is currently running GRASS in selected mapset (file
/home/mlennert/<UNKNOWN>/<UNKNOWN>/.gislock found). Concurrent use not
allowed.
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/491&gt;
GRASS GIS <http://grass.osgeo.org>

#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martin):

Same here; GRASS configured to install in /opt/GRASS70/:

{{{
jive: 0:03:55 ~> env | grep -i grass
jive: 0:04:02 ~> env | grep -i gis
jive: 0:04:05 ~> /opt/GRASS70/bin/grass70 -text

WELCOME TO GRASS Version 7.0.svn 2010
[...]
Hit RETURN to continue
Starting GRASS GIS...
/home/martin/<UNKNOWN>/<UNKNOWN>/.gislock: No such file or directory
FEHLER: /opt/GRASS70/grass-7.0.svn/etc/lock:
Unable to properly access "/home/martin/<UNKNOWN>/<UNKNOWN>/.gislock"
Please notify system personel.
}}}

Platform is Debian Lenny, but as far as I understand this isn't relevant
in this case.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/491#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martin):

* cc: martin (added)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/491#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by hamish):

the old interactive text forms have been removed in grass7. either pass
the path to the mapset on the command line or if none is given and you've
had a previous session the last session will be used if no command line
args are given and `GRASS_GUI: text`.

of course the error checking, messages, and new text startup workflow can
always be improved, you're not looking at the final product.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/491#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martin):

Ok, let me try it this way:

{{{
jive: 23:30:10 ~> /opt/GRASS70/bin/grass70 -text
/home/martin/grassdata/world/PERMANENT
[...]
Hit RETURN to continue
Starting GRASS GIS...
</home/martin/grassdata/world/PERMANENT> is not a valid GRASS location
}}}

This doesn't come by surprise, since the entire $GISDBASE has yet to be
created. Next try, adding "-c":

{{{
jive: 23:32:25 ~> /opt/GRASS70/bin/grass70 -c -text
/home/martin/grassdata/world/PERMANENT
[...]
Hit RETURN to continue
Starting GRASS GIS...
The location <world> does not exist. Please create it first.
}}}

So, should I conclude that creating a new $GISBASE is currently impossible
in 7.0 SVN trunk without using a GUI ?

Cheers, Martin.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/491#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by lucadelu):

* cc: lucadelu (added)

Comment:

I have the same problem, is any solution?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/491#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#491: grass7: cannot start grass with -text and no existing .grassrc7
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by hcho):

  * status: new => closed
  * resolution: => fixed

Comment:

This ticket is 3 years old and I tried -c and -text. Both options are
working fine and I can create a new database without any problem. I think
this problem has been fixed now. Also, we don't even have .grassrc7
anymore.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/491#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>