[GRASS-dev] [GRASS GIS] #2290: Grass not starting

#2290: Grass not starting
----------------------+-----------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
----------------------+-----------------------------------------------------
When trying to launch GRASS 7 svnR60210-961, i only get hte command window
minimized. When bringing up the window I see:
C:\Program Files (x86)\GRASS GIS 7.0.0svn\extrabin\python.exe: can't open
file '
C:\Program Files (x86)\GRASS GIS 7.0.0svn\etc\grass70.py': [Errno 13]
Permission denied
Press any key to continue . . .

Upon pressing any key the command window disappears and GRASS is not
running.

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

#2290: Grass not starting
----------------------+-----------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by neteler):

Could you try to start GRASS from the OSGeo4W command line:

{{{
cd C:\Program Files (x86)\GRASS GIS 7.0.0svn\etc\
grass70.py -text
}}}

?

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

#2290: Grass not starting
----------------------+-----------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by dnewcomb):

Tried that and I get Access is denied.

Looking at the security permissions for grass70.py , I see that there are
only security permissions listed for administrative users ( i.e. SYSTEM,
Administrators Group) There are no security policies for ordinary users
listed . Comparing to other programs, it looks like there should be read
and read and execute permissions for standard Users.

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

#2290: Grass not starting
----------------------+-----------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by dnewcomb):

Downloaded r60231-962 , and had same problem. Manually set grass70.py
Windows security settings to Add USERS read and read/execute rights and
GRASS 7.0 started normally. The fix appears to be setting the correct
security settings for USERS for this file upon install.

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

#2290: Grass not starting
----------------------+-----------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by hellik):

Replying to [comment:3 dnewcomb]:
> Downloaded r60231-962 , and had same problem. Manually set grass70.py
Windows security settings to Add USERS read and read/execute rights and
GRASS 7.0 started normally. The fix appears to be setting the correct
security settings for USERS for this file upon install.

are you installing winGRASS7-standalone installer with admin rights (e.g.
right click on the standalone installer and execute as admin)?

long time ago I've added this as a needed default to the standalone
installer:
http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L96

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

#2290: Grass not starting
----------------------+-----------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
----------------------+-----------------------------------------------------

Comment(by dnewcomb):

| are you installing winGRASS7-standalone installer with admin rights
(e.g. right |click on the standalone installer and execute as admin)?

|long time ago I've added this as a needed default to the standalone
installer: |http://trac.osgeo.org/grass/browser/grass/trunk/mswindows
/GRASS-Installer.nsi.tmpl#L96

I just tried that and I still have the same problem

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

#2290: Grass not starting
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------
Changes (by marisn):

  * priority: normal => critical
  * component: Default => Installation

Comment:

I installed Wingrass 7.0 nightly on Vista launching the installer with
"Run as Admin", still on the ordinary user account I got hit by this bug.
(For a strange reason the grass70.py file was lacking permissions for
Users account.)

Rising its priority as ordinary user might not have Admin rights and thus
installer should create a working installation at the first place not
requiring manual adjustment of file permissions later.

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

#2290: Grass not starting
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------
Changes (by hellik):

  * type: defect => enhancement

Comment:

Replying to [comment:6 marisn]:
> I installed Wingrass 7.0 nightly on Vista launching the installer with
"Run as Admin", still on the ordinary user account I got hit by this bug.

I wouldn't say that this is a winGRASS '''bug''', it's a window operating
system and a sytem right issue that can't be solved easily; as there are
quite a lot of different right managements out there in the windows world.
so I would class it rather an enhancement than a defect.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------
Changes (by marisn):

  * type: enhancement => defect

Comment:

Replying to [comment:7 hellik]:
> I wouldn't say that this is a winGRASS '''bug''', it's a window
operating system and a sytem right issue that can't be solved easily; as
there are quite a lot of different right managements out there in the
windows world. so I would class it rather an enhancement than a defect.

It is. In *NIX world that equals shipping a package (RPM, deb) with
missing go+R permissions. This is not a limitation of Windows. This is an
error in Wingrass installer not setting correct permissions on files.
Changed the summary to better reflect the scope of this issue.

I am not familiar with NSIS and Wingrass, but as grass70.py file was
affected, I would look on some of the magic touching that particular file,
i.e.:
https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L884

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:8 marisn]:
> Replying to [comment:7 hellik]:
> > I wouldn't say that this is a winGRASS '''bug''', it's a window
operating system and a sytem right issue that can't be solved easily; as
there are quite a lot of different right managements out there in the
windows world. so I would class it rather an enhancement than a defect.
>
> It is. In *NIX world that equals shipping a package (RPM, deb) with
missing go+R permissions. This is not a limitation of Windows. This is an
error in Wingrass installer not setting correct permissions on files.
Changed the summary to better reflect the scope of this issue.
>
> I am not familiar with NSIS and Wingrass, but as grass70.py file was
affected, I would look on some of the magic touching that particular file,
i.e.:
> https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L884

it could be that changing some content in the file by L884 etc. may change
the permission rights on some windows systems.

for setting permission rights:

http://nsis.sourceforge.net/AccessControl_plug-in

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------
Changes (by wenzeslaus):

  * keywords: => installation

Comment:

Possible duplicate of #1983. Please continue discussion here.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:10 wenzeslaus]:
> Possible duplicate of #1983. Please continue discussion here.

around line [https://trac.osgeo.org/grass/browser/grass/trunk/mswindows
/GRASS-Installer.nsi.tmpl#L894 L894] may be following should be added:

{{{
AccessControl::SetOnFile
"$INSTDIR\etc\grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@.py" "(BU)"
"Execute"
}}}

not sure to whom ''execute'' should be granted ( BU is builtin/users:
[http://ss64.com/nt/syntax-security_groups.html builtin/users]

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:11 hellik]:
> Replying to [comment:10 wenzeslaus]:
> > Possible duplicate of #1983. Please continue discussion here.
>
> around line [https://trac.osgeo.org/grass/browser/grass/trunk/mswindows
/GRASS-Installer.nsi.tmpl#L894 L894] may be following should be added:

and the [http://nsis.sourceforge.net/AccessControl_plug-in plugin] has to
be added to nsis on the build server.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by martinl):

Replying to [comment:11 hellik]:

> around line [https://trac.osgeo.org/grass/browser/grass/trunk/mswindows
/GRASS-Installer.nsi.tmpl#L894 L894] may be following should be added:
>
{{{
> AccessControl::SetOnFile
"$INSTDIR\etc\grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@.py" "(BU)"
"Execute"
}}}

done in r61401. Please check the next build 2014-07-26.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by martinl):

Replying to [comment:12 hellik]:

> and the [http://nsis.sourceforge.net/AccessControl_plug-in plugin] has
to be added to nsis on the build server.

done and documented on wiki:CompileOnWindows

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:13 martinl]:
> Replying to [comment:11 hellik]:
>
> > around line
[https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L894 L894] may be following should be added:
> >
> {{{
> > AccessControl::SetOnFile
"$INSTDIR\etc\grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@.py" "(BU)"
"Execute"
> }}}
>
> done in r61401. Please check the next build 2014-07-26.

tested with

http://wingrass.fsv.cvut.cz/grass71/WinGRASS-7.1.svn-r61439-1037-Setup.exe

{{{
GRASS Version: 7.1.svn
GRASS SVN Revision: 61439
Erstellungsdatum: 2014-07-29
Build Platform: i686-pc-mingw32
GDAL/OGR: 1.11.0
PROJ.4: 4.8.0
GEOS: 3.4.2
SQLite: 3.7.17
Python: 2.7.4
wxPython: 2.8.12.1
Platform: Windows-Vista-6.0.6002-SP2
}}}

there is now added following access control to the current user:

{{{
grass71.py

user:
read, execute => allowed
read => allowed
}}}

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:15 hellik]:
>
> tested with
>
>
http://wingrass.fsv.cvut.cz/grass71/WinGRASS-7.1.svn-r61439-1037-Setup.exe
>
> {{{
> GRASS Version: 7.1.svn
> GRASS SVN Revision: 61439
> Erstellungsdatum: 2014-07-29
> Build Platform: i686-pc-mingw32
> GDAL/OGR: 1.11.0
> PROJ.4: 4.8.0
> GEOS: 3.4.2
> SQLite: 3.7.17
> Python: 2.7.4
> wxPython: 2.8.12.1
> Platform: Windows-Vista-6.0.6002-SP2
> }}}
>
> there is now added following access control to the current user:
>
> {{{
> grass71.py
>
> user:
> read, execute => allowed
> read => allowed
> }}}
>

testing on other MS windows platforms very welcome!!! no chance here on my
side to test with further windows boxes ( win 7, 8) at the moment.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by marisn):

Replying to [comment:16 hellik]:
>
> testing on other MS windows platforms very welcome!!! no chance here on
my side to test with further windows boxes ( win 7, 8) at the moment.

Tested with Vista - issue is fixed. Can't test on XP at the moment.

Needs a backport to 7.0 ASAP.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by martinl):

Replying to [comment:17 marisn]:
> Replying to [comment:16 hellik]:
> >
> > testing on other MS windows platforms very welcome!!! no chance here
on my side to test with further windows boxes ( win 7, 8) at the moment.
>
> Tested with Vista - issue is fixed. Can't test on XP at the moment.
>
> Needs a backport to 7.0 ASAP.

Done in r61454.

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

#2290: Wrong file permissions for grassXY.py on Windows (was: Grass not starting)
--------------------------+-------------------------------------------------
Reporter: dnewcomb | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Installation | Version: svn-releasebranch70
Keywords: installation | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------
Changes (by hellik):

  * priority: critical => major

Comment:

as the fix seems to work, downgrading to priority: major.

keeping ticket open until more tests on different win boxes (win7, win8)
are done.

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