Re: [gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-05 Thread Adam Carter
>
> ... except I can't figure out how to use the sheet feeder for multipage
> scanning.
>
> I can select multipage and can the scan each page singly and hit
> "save multipage file".  This works.  But I can't put say 10 pages in the
> feeder, hit something, get coffee, and find a 10 page document on my
> computer.
>

scanimage has a batch option, but it will save each image in a separate
file. You can walk away for coffee though.


RE: [gentoo-user] Inconsistent behavior in my Gentoo OS instance

2017-05-05 Thread Bobby Kent
Looks like there are two things that concern you.  Firstly, how bash tab
expansion appears to work (the ls, etc. commands executed when you hit the
tab key) on your system.  Secondly, the "bash: unexpected EOF while looking
for matching `)'bash: syntax error: unexpected end of file" messages
generated when a particular tab expansion fails.

Is that second issue generated by hitting tab at the end of the command:

ls -1d root_170430_g0n*.d

?  If so, perhaps there's something unusual with the items that match the
pattern "root_170430_g0n*.d*" that results in the error ...

Regarding your diagnosis:

> That's a serious bug or a serious malfunction in my Gentoo, the latter
being most likely...
>
> And if it is the latter, it can only be one or the other way. 
> One: the cause is in some Gentoo packge. 
> Two: it is an attack by some unknown means.

Before declaring bug / broken package / attack, it might be an idea to see
whether the issue is reproducible, and under what circumstances.

Note, tab expansion can be modified (see, for example,
http://www.linuxjournal.com/content/more-using-bash-complete-command).


-Original Message-
From: Miroslav Rovis [mailto:miro.ro...@croatiafidelis.hr] 
Sent: Friday, May 05, 2017 01:02
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Inconsistent behavior in my Gentoo OS instance

Hi Bobby!

Pls. see also:

Tab (no exec) triggers script on Bash on grsec admin
https://forums.grsecurity.net/viewtopic.php?f=3=4700

as well as the other email that I sent some 7 or so hours ago.

NOTE: if I'm away, it's because I'm a little worried... I'm afraid my system
may be vulnerable because of these issues. Patience pls.

(no more but only my sig in bottom)

On 170504-21:15-0400, Bobby Kent wrote:
> Hi Miroslav,
> 
> Attempting to reproduce third issue:
> 
> # mkdir wibble1_1
> # mkdir wibble2_1
> # mkdir wibble3_1
> # mkdir wibble4_1
> # mkdir wibble5_1
> # for d in wibble*_1 ; do mkdir $d/wobble ; done # ls -1d wibble*_1
> wibble1_1
> wibble2_1
> wibble3_1
> wibble4_1
> wibble5_1
> 
> Then hit tab after positioning cursor after the / below:
> # for i in $(ls -1d wibble*_1/) ; do echo $i ; done
> 
> And the results are an attempt to autocomplete:
> wibble1_1// wibble2_1// wibble3_1// wibble4_1// wibble5_1//
> 
> Perhaps the test oversimplified the issue, though maybe you could 
> provide the simplest way to reproduce what you see.
> 
> Thanks.
> 
> 
> -Original Message-
> From: Miroslav Rovis [mailto:miro.ro...@croatiafidelis.hr]
> Sent: Tuesday, May 02, 2017 10:13
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Inconsistent behavior in my Gentoo OS 
> instance
> 
> I've received one reply, and thanks again, but I had better remove the 
> gzip-"inconsistency" related bloat from my own previous email... I 
> need the previous text to make the remaining three important 
> parts/issues/inconsistencies clearer and easier to check, and reply 
> to, any of the three.
> 
> I will also reorder my quotes to get them easier to skip or skip to, 
> since they are separate issues/inconsistencies.
> 
> On 170501-18:17+0200, Miroslav Rovis wrote:
> ...
> First issue
> ===
> (All first issue-related text have been removed here from all quotes 
> from my previous message) ...
> 
> Second issue
> 
> > Another part is actually on Wireshark mailing list. Pls. see:
> > 
> > Filtering on (negated) frame.time_relative filters out wrong 
> > frame.number 
> > https://www.wireshark.org/lists/wireshark-users/201704/msg00037.html
> > as well as my study at:
> > https://www.croatiafidelis.hr/foss/cap/cap-170313-git-devuan-mail/gi
> > t-
> > devuan-mail-4.php
> That page has just been updated with clearer instructions.
> 
> > (and the previous ones there, but I gave the last as it is 
> > simplest/fastest to check)
> > 
> > There is information that any advanced reader can easily provide by 
> > retracing some of my steps there, and which would clear some 
> > uncertainties
> here.
> ...
> > ... That's a serious bug or a
> > serious malfunction in my Gentoo, the latter being most likely...
> > 
> > And if it is the latter, it can only be one or the other way. One: 
> > the cause is in some Gentoo packge. Two: it is an attack by some 
> > unknown
> means.
> > 
> > (
> > If Air-Gapped is some info, I did try and editcap (and the whole
> > Wireshark) behave in the same wrong way in my Air-Gapped too.
> > ...
> > )
> > 
> 
> 
> Third issue
> ==
> 
> The text it too much because the command line in which bash throw 
> strange error is a long for loop. The main point is marked with short 
> new text below.
> > This is one of a series of commands that I used to check one of the 
> > backups, in three different instances of tar-gzip'd archive I 
> > checked (such as the /root directory tar-gzip'd today), and which 
> > showed faultless upon decompression in all the three instances, 
> > despite the three instances of tar-gzip'd archives not being 
> > 

Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread tuxic
On 05/05 09:17, Kai Krakow wrote:
> Am Fri, 5 May 2017 21:12:53 +0200
> schrieb tu...@posteo.de:
> 
> > On 05/05 09:03, Kai Krakow wrote:
> > > Am Fri, 5 May 2017 20:40:50 +0200
> > > schrieb tu...@posteo.de:
> > >   
> > > > On 05/05 08:28, Kai Krakow wrote:  
> >  [...]  
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> >  [...]  
> > > > 
> > > > Hi kai,
> > > > 
> > > > THANKS FOR THAT COMMANDLINE!  
> > > 
> > > Which of those two?
> > >   
> > > > Now FreeCAD is willing to cooperate...up to an certain level: It
> > > > starts
> > > > 
> > > > Loading an STEP-data file results in :
> > > > FreeCAD 0.16, Libs: 0.16RUnknown
> > > > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> > > >   #   ###     
> > > >   ##  # #   #   # 
> > > >   # ##     # #   #  #   # 
> > > >     # # #  # #  #  # #  #   # 
> > > >   # #      ## # #   # 
> > > >   # #   ## ## # #   #  ##  ##  ##
> > > >   # #       ### # #    ##  ##  ##
> > > > 
> > > > libGL error: No matching fbConfigs or visuals found
> > > > libGL error: failed to load driver: swrast
> > > > Unhandled std::exception caught in GUIApplication::notify.
> > > > The error message is: Permission denied
> > > > *** Abort *** an exception was raised, but no catch was found.
> > > > ... The exception is:SIGSEGV 'segmentation violation'
> > > > detected. Address 0
> > > > 
> > > > Any ideas?  
> > > 
> > > I'd still try the preload stuff. I don't think QT_GRAPHICSSYSTEM can
> > > solve this.
> > > 
> > > But I'm only guessing which command line you used.
> > > 
> > > 
> > > -- 
> > > Regards,
> > > Kai
> > > 
> > > Replies to list-only preferred.
> > > 
> > > 
> > >   
> > 
> > Hi Kai,
> > 
> > sorry for the confusion I initiated...
> > 
> > This one I used
> > 
> > QT_GRAPHICSSYSTEM=raster freecad
> 
> Please also try my other suggestion:
> 
> Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so" and
> try those paths in the preloader:
> 
> # LD_PRELOAD=/path/to/libGL.so freecad
> 
> Try the libGL most specific to your graphics card first.
> 
> 
> -- 
> Regards,
> Kai
> 
> Replies to list-only preferred.
> 
> 
> 

Hi Kai,


here the results:
LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. FreeCAD   
ERROR: ld.so: object '/usr/lib64/opengl/nvidia/lib/.' from LD_PRELOAD cannot be 
preloaded (cannot read file data): ignored.
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #   ###     
  ##  # #   #   # 
  # ##     # #   #  #   # 
    # # #  # #  #  # #  #   # 
  # #      ## # #   # 
  # #   ## ## # #   #  ##  ##  ##
  # #       ### # #    ##  ##  ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
using visual class 4, id 2b
[1]17990 segmentation fault  LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/. 
FreeCAD




>LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #   ###     
  ##  # #   #   # 
  # ##     # #   #  #   # 
    # # #  # #  #  # #  #   # 
  # #      ## # #   # 
  # #   ## ## # #   #  ##  ##  ##
  # #       ### # #    ##  ##  ##

using visual class 4, id 2b
[1]17552 segmentation fault  
LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so FreeCAD


Cheers 
Meino





[gentoo-user] scanning using the sheet feeder (HP 8600 + xsane)

2017-05-05 Thread allan gottlieb
I have an hp 8600 all-in-one and use net-print/hplip.
Printing is fine.

I use xsane for scanning, which also works well ...

... except I can't figure out how to use the sheet feeder for multipage
scanning.

I can select multipage and can the scan each page singly and hit
"save multipage file".  This works.  But I can't put say 10 pages in the
feeder, hit something, get coffee, and find a 10 page document on my
computer.

In case it is relevant, I run gentoo stable / gnome-3 / systemd.

thanks in advance,
allan



Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread Zhu Sha Zang

[rodolfo@asgard ~]$ eselect qtgraphicssystem list 20:55
Available Qt Graphics Systems:
  [1]   native
  [2]   opengl (experimental)
  [3]   raster (default) *

Best Regards


On 05/05/2017 03:17 PM, Kai Krakow wrote:

Am Fri, 5 May 2017 21:12:53 +0200
schrieb tu...@posteo.de:


On 05/05 09:03, Kai Krakow wrote:

Am Fri, 5 May 2017 20:40:50 +0200
schrieb tu...@posteo.de:
   

On 05/05 08:28, Kai Krakow wrote:

  [...]
  [...]

  [...]
  [...]

  [...]

  [...]
  [...]

  [...]
  [...]

Hi kai,

THANKS FOR THAT COMMANDLINE!

Which of those two?
   

Now FreeCAD is willing to cooperate...up to an certain level: It
starts

Loading an STEP-data file results in :
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
   #   ###   
   ##  # #   #   #
   # ##     # #   #  #   #
     # # #  # #  #  # #  #   #
   # #      ## # #   #
   # #   ## ## # #   #  ##  ##  ##
   # #       ### # #    ##  ##  ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Unhandled std::exception caught in GUIApplication::notify.
The error message is: Permission denied
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation'
detected. Address 0

Any ideas?

I'd still try the preload stuff. I don't think QT_GRAPHICSSYSTEM can
solve this.

But I'm only guessing which command line you used.


--
Regards,
Kai

Replies to list-only preferred.


   

Hi Kai,

sorry for the confusion I initiated...

This one I used

QT_GRAPHICSSYSTEM=raster freecad

Please also try my other suggestion:

Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so" and
try those paths in the preloader:

# LD_PRELOAD=/path/to/libGL.so freecad

Try the libGL most specific to your graphics card first.







Re: [gentoo-user] new scanner : how to activate for Gentoo : no success

2017-05-05 Thread Philip Webb
170504 Philip Webb wrote:
> I want to get my new Epson V550 working on Gentoo,
> having successfully installed Epson's driver on Mint.
> 
> I installed the Gentoo pkg 'dpkg', which handles .deb archives,
> & listed the content of the  3  .deb files in the Epson driver pkg.
> They cb viewed at  http://chass.utoronto.ca/~purslow/test/
> with names beginning with 'v550'.
> 
> It appears that the pkg installs a utility 'iscan',
> a Sane plugin called 'epkowa', which is not available via Sane-backends
> ( /etc/hotplug/usb/libsane.usermap  doesn't list it),
> plus some further data files + a lot of dox.

I've tried  3  methods without success :
(1) install Iscan via Portage & copy the other files in the .deb ;
(2) copy all the files in the .deb  (apart from dox) (list checked) ;
(3) try to run the  install.sh  script.

None of them succeeds in getting the scanner recognised.

There is a pkg  media-gfx/iscan-plugin-gt-x820  for a V600 :
I could take the V550 back & exchange it for a V600
& try to install Iscan + data + that plugin.

Any suggestions are very welcome.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




[gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread Kai Krakow
Am Fri, 5 May 2017 21:12:53 +0200
schrieb tu...@posteo.de:

> On 05/05 09:03, Kai Krakow wrote:
> > Am Fri, 5 May 2017 20:40:50 +0200
> > schrieb tu...@posteo.de:
> >   
> > > On 05/05 08:28, Kai Krakow wrote:  
>  [...]  
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
>  [...]  
> > > 
> > > Hi kai,
> > > 
> > > THANKS FOR THAT COMMANDLINE!  
> > 
> > Which of those two?
> >   
> > > Now FreeCAD is willing to cooperate...up to an certain level: It
> > > starts
> > > 
> > > Loading an STEP-data file results in :
> > > FreeCAD 0.16, Libs: 0.16RUnknown
> > > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> > >   #   ###     
> > >   ##  # #   #   # 
> > >   # ##     # #   #  #   # 
> > >     # # #  # #  #  # #  #   # 
> > >   # #      ## # #   # 
> > >   # #   ## ## # #   #  ##  ##  ##
> > >   # #       ### # #    ##  ##  ##
> > > 
> > > libGL error: No matching fbConfigs or visuals found
> > > libGL error: failed to load driver: swrast
> > > Unhandled std::exception caught in GUIApplication::notify.
> > > The error message is: Permission denied
> > > *** Abort *** an exception was raised, but no catch was found.
> > >   ... The exception is:SIGSEGV 'segmentation violation'
> > > detected. Address 0
> > > 
> > > Any ideas?  
> > 
> > I'd still try the preload stuff. I don't think QT_GRAPHICSSYSTEM can
> > solve this.
> > 
> > But I'm only guessing which command line you used.
> > 
> > 
> > -- 
> > Regards,
> > Kai
> > 
> > Replies to list-only preferred.
> > 
> > 
> >   
> 
> Hi Kai,
> 
> sorry for the confusion I initiated...
> 
> This one I used
> 
> QT_GRAPHICSSYSTEM=raster freecad

Please also try my other suggestion:

Find your GL drivers with "locate libGL.so" or "qfile -b libGL.so" and
try those paths in the preloader:

# LD_PRELOAD=/path/to/libGL.so freecad

Try the libGL most specific to your graphics card first.


-- 
Regards,
Kai

Replies to list-only preferred.





Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread tuxic
On 05/05 09:03, Kai Krakow wrote:
> Am Fri, 5 May 2017 20:40:50 +0200
> schrieb tu...@posteo.de:
> 
> > On 05/05 08:28, Kai Krakow wrote:
> > > Am Fri, 5 May 2017 19:43:14 +0200
> > > schrieb tu...@posteo.de:
> > >   
> > > > On 05/05 10:31, Daniel Frey wrote:  
> >  [...]  
> >  [...]  
> > > >  [...]  
> > > >  [...]  
> > > >  [...]
> >  [...]  
> >  [...]  
> > > > 
> > > > It says that passing 
> > > > 
> > > > --graphicssystem=raster
> > > > 
> > > > as option to FreeCAD would fix that problem.
> > > > 
> > > > 
> > > > When doing so, FreeCAD says it does not that 
> > > > option.
> > > > 
> > > > Hm  
> > > 
> > > Then it's maybe
> > > 
> > > # QT_GRAPHICSSYSTEM=raster freecad
> > > 
> > > I had a similar problem with mixxx. I think I solved it with an LD
> > > preloader:
> > > 
> > > $ cat bin/mixxx
> > > #!/bin/sh
> > > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so exec /usr/bin/mixxx
> > > 
> > > You may want to try something similar with freecad. Be sure to
> > > adjust that to your graphics card. It will obviously not work that
> > > way if you don't use NVIDIA proprietary... ;-)
> > > 
> > > -- 
> > > Regards,
> > > Kai
> > > 
> > > Replies to list-only preferred.
> > > 
> > > 
> > >   
> > 
> > Hi kai,
> > 
> > THANKS FOR THAT COMMANDLINE!
> 
> Which of those two?
> 
> > Now FreeCAD is willing to cooperate...up to an certain level: It
> > starts
> > 
> > Loading an STEP-data file results in :
> > FreeCAD 0.16, Libs: 0.16RUnknown
> > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> >   #   ###     
> >   ##  # #   #   # 
> >   # ##     # #   #  #   # 
> >     # # #  # #  #  # #  #   # 
> >   # #      ## # #   # 
> >   # #   ## ## # #   #  ##  ##  ##
> >   # #       ### # #    ##  ##  ##
> > 
> > libGL error: No matching fbConfigs or visuals found
> > libGL error: failed to load driver: swrast
> > Unhandled std::exception caught in GUIApplication::notify.
> > The error message is: Permission denied
> > *** Abort *** an exception was raised, but no catch was found.
> > ... The exception is:SIGSEGV 'segmentation violation'
> > detected. Address 0
> > 
> > Any ideas?
> 
> I'd still try the preload stuff. I don't think QT_GRAPHICSSYSTEM can
> solve this.
> 
> But I'm only guessing which command line you used.
> 
> 
> -- 
> Regards,
> Kai
> 
> Replies to list-only preferred.
> 
> 
> 

Hi Kai,

sorry for the confusion I initiated...

This one I used

QT_GRAPHICSSYSTEM=raster freecad


Cheers
Meino




[gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread Kai Krakow
Am Fri, 5 May 2017 20:40:50 +0200
schrieb tu...@posteo.de:

> On 05/05 08:28, Kai Krakow wrote:
> > Am Fri, 5 May 2017 19:43:14 +0200
> > schrieb tu...@posteo.de:
> >   
> > > On 05/05 10:31, Daniel Frey wrote:  
>  [...]  
>  [...]  
> > >  [...]  
> > >  [...]  
> > >  [...]
>  [...]  
>  [...]  
> > > 
> > > It says that passing 
> > > 
> > > --graphicssystem=raster
> > > 
> > > as option to FreeCAD would fix that problem.
> > > 
> > > 
> > > When doing so, FreeCAD says it does not that 
> > > option.
> > > 
> > > Hm  
> > 
> > Then it's maybe
> > 
> > # QT_GRAPHICSSYSTEM=raster freecad
> > 
> > I had a similar problem with mixxx. I think I solved it with an LD
> > preloader:
> > 
> > $ cat bin/mixxx
> > #!/bin/sh
> > LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so exec /usr/bin/mixxx
> > 
> > You may want to try something similar with freecad. Be sure to
> > adjust that to your graphics card. It will obviously not work that
> > way if you don't use NVIDIA proprietary... ;-)
> > 
> > -- 
> > Regards,
> > Kai
> > 
> > Replies to list-only preferred.
> > 
> > 
> >   
> 
> Hi kai,
> 
> THANKS FOR THAT COMMANDLINE!

Which of those two?

> Now FreeCAD is willing to cooperate...up to an certain level: It
> starts
> 
> Loading an STEP-data file results in :
> FreeCAD 0.16, Libs: 0.16RUnknown
> © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
>   #   ###     
>   ##  # #   #   # 
>   # ##     # #   #  #   # 
>     # # #  # #  #  # #  #   # 
>   # #      ## # #   # 
>   # #   ## ## # #   #  ##  ##  ##
>   # #       ### # #    ##  ##  ##
> 
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> Unhandled std::exception caught in GUIApplication::notify.
> The error message is: Permission denied
> *** Abort *** an exception was raised, but no catch was found.
>   ... The exception is:SIGSEGV 'segmentation violation'
> detected. Address 0
> 
> Any ideas?

I'd still try the preload stuff. I don't think QT_GRAPHICSSYSTEM can
solve this.

But I'm only guessing which command line you used.


-- 
Regards,
Kai

Replies to list-only preferred.





Re: [gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread tuxic
On 05/05 08:28, Kai Krakow wrote:
> Am Fri, 5 May 2017 19:43:14 +0200
> schrieb tu...@posteo.de:
> 
> > On 05/05 10:31, Daniel Frey wrote:
> > > On 05/05/2017 10:23 AM, tu...@posteo.de wrote:  
> > > > On 05/05 10:17, Daniel Frey wrote:  
> >  [...]  
> >  [...]  
> >  [...]  
> > > > 
> > > > Hi Dan,
> > > > 
> > > > I am already in the video group...
> > > > 
> > > > And: When run as user, is starts but loading
> > > > an *.STP file crashes FreeCAD with:
> > > > 
> > > > FreeCAD 0.16, Libs: 0.16RUnknown
> > > > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> > > >   #   ###     
> > > >   ##  # #   #   # 
> > > >   # ##     # #   #  #   # 
> > > >     # # #  # #  #  # #  #   # 
> > > >   # #      ## # #   # 
> > > >   # #   ## ## # #   #  ##  ##  ##
> > > >   # #       ### # #    ##  ##  ##
> > > > 
> > > > libGL error: No matching fbConfigs or visuals found
> > > > libGL error: failed to load driver: swrast
> > > > *** Abort *** an exception was raised, but no catch was found.
> > > > ... The exception is:SIGSEGV 'segmentation violation'
> > > > detected. Address 0 [1]5658 exit 1 FreeCAD
> > > > 
> > > > 
> > > > It ssems more odd than previously thought 
> > > > 
> > > > What is that 'swrast' thingy?
> > > > 
> > > > 
> > > > Cheers
> > > > Meino
> > > > 
> > > > 
> > > >   
> > > 
> > > From what I've just read, it's a software raster driver. I figured
> > > it couldn't talk to the hardware, hence the adding to video group
> > > suggestion.
> > > 
> > > Found this though:
> > > 
> > > http://forum.freecadweb.org/viewtopic.php?t=20187
> > > 
> > > Dan
> > >   
> > 
> > It says that passing 
> > 
> > --graphicssystem=raster
> > 
> > as option to FreeCAD would fix that problem.
> > 
> > 
> > When doing so, FreeCAD says it does not that 
> > option.
> > 
> > Hm
> 
> Then it's maybe
> 
> # QT_GRAPHICSSYSTEM=raster freecad
> 
> I had a similar problem with mixxx. I think I solved it with an LD
> preloader:
> 
> $ cat bin/mixxx
> #!/bin/sh
> LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so exec /usr/bin/mixxx
> 
> You may want to try something similar with freecad. Be sure to adjust
> that to your graphics card. It will obviously not work that way if you
> don't use NVIDIA proprietary... ;-)
> 
> -- 
> Regards,
> Kai
> 
> Replies to list-only preferred.
> 
> 
> 

Hi kai,

THANKS FOR THAT COMMANDLINE!

Now FreeCAD is willing to cooperate...up to an certain level: It
starts

Loading an STEP-data file results in :
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #   ###     
  ##  # #   #   # 
  # ##     # #   #  #   # 
    # # #  # #  #  # #  #   # 
  # #      ## # #   # 
  # #   ## ## # #   #  ##  ##  ##
  # #       ### # #    ##  ##  ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Unhandled std::exception caught in GUIApplication::notify.
The error message is: Permission denied
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 0

Any ideas?

Cheers
Meino





[gentoo-user] Re: FreeCAD permission problems

2017-05-05 Thread Kai Krakow
Am Fri, 5 May 2017 19:43:14 +0200
schrieb tu...@posteo.de:

> On 05/05 10:31, Daniel Frey wrote:
> > On 05/05/2017 10:23 AM, tu...@posteo.de wrote:  
> > > On 05/05 10:17, Daniel Frey wrote:  
>  [...]  
>  [...]  
>  [...]  
> > > 
> > > Hi Dan,
> > > 
> > > I am already in the video group...
> > > 
> > > And: When run as user, is starts but loading
> > > an *.STP file crashes FreeCAD with:
> > > 
> > > FreeCAD 0.16, Libs: 0.16RUnknown
> > > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> > >   #   ###     
> > >   ##  # #   #   # 
> > >   # ##     # #   #  #   # 
> > >     # # #  # #  #  # #  #   # 
> > >   # #      ## # #   # 
> > >   # #   ## ## # #   #  ##  ##  ##
> > >   # #       ### # #    ##  ##  ##
> > > 
> > > libGL error: No matching fbConfigs or visuals found
> > > libGL error: failed to load driver: swrast
> > > *** Abort *** an exception was raised, but no catch was found.
> > >   ... The exception is:SIGSEGV 'segmentation violation'
> > > detected. Address 0 [1]5658 exit 1 FreeCAD
> > > 
> > > 
> > > It ssems more odd than previously thought 
> > > 
> > > What is that 'swrast' thingy?
> > > 
> > > 
> > > Cheers
> > > Meino
> > > 
> > > 
> > >   
> > 
> > From what I've just read, it's a software raster driver. I figured
> > it couldn't talk to the hardware, hence the adding to video group
> > suggestion.
> > 
> > Found this though:
> > 
> > http://forum.freecadweb.org/viewtopic.php?t=20187
> > 
> > Dan
> >   
> 
> It says that passing 
> 
> --graphicssystem=raster
> 
> as option to FreeCAD would fix that problem.
> 
> 
> When doing so, FreeCAD says it does not that 
> option.
> 
> Hm

Then it's maybe

# QT_GRAPHICSSYSTEM=raster freecad

I had a similar problem with mixxx. I think I solved it with an LD
preloader:

$ cat bin/mixxx
#!/bin/sh
LD_PRELOAD=/usr/lib64/opengl/nvidia/lib/libGL.so exec /usr/bin/mixxx

You may want to try something similar with freecad. Be sure to adjust
that to your graphics card. It will obviously not work that way if you
don't use NVIDIA proprietary... ;-)

-- 
Regards,
Kai

Replies to list-only preferred.





[gentoo-user] Reading and converting *.STEP / *.STP data

2017-05-05 Thread tuxic
Hi,

since FreeCAD choose not to cooperate :) maube some 
other program will do:

The reason why I wanted FreeCAD is -- I need to
convert a STEP/STP-file into something, blener can
import.
In search of such a program I found FreeCAD.

OpenSCAD does not read/import STP/STEP data.

What else can be used -- it doesnot need
to be a CAD program -- it only needs to convert
the data,

Any alternatives?

Cheers
Meino

PS: I alreadytried an online converter but
that one is only free for one time
and for a really small file.





Re: [gentoo-user] FreeCAD permission problems

2017-05-05 Thread tuxic
On 05/05 10:31, Daniel Frey wrote:
> On 05/05/2017 10:23 AM, tu...@posteo.de wrote:
> > On 05/05 10:17, Daniel Frey wrote:
> >> On 05/05/2017 10:08 AM, tu...@posteo.de wrote:
> >>> Hi 
> >>>
> >>> I emerged FreCAD and started it as user.
> >>> It crashes with following output:
> >>> FreeCAD 0.16, Libs: 0.16RUnknown
> >>> © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> >>>   #   ###     
> >>>   ##  # #   #   # 
> >>>   # ##     # #   #  #   # 
> >>>     # # #  # #  #  # #  #   # 
> >>>   # #      ## # #   # 
> >>>   # #   ## ## # #   #  ##  ##  ##
> >>>   # #       ### # #    ##  ##  ##
> >>>
> >>> libGL error: No matching fbConfigs or visuals found
> >>> libGL error: failed to load driver: swrast
> >>> using visual class 4, id 2b
> >>> [1]5388 segmentation fault  FreeCAD
> >>>
> >>> When run as root it works, though.
> >>>
> >>> Where do I have to tweak what perms? :)
> >>>
> >>> Thanks a lot in advance for any help!
> >>> Cheers
> >>> Meino
> >>>
> >>>
> >>>
> >>
> >> Try adding your user to the video group.
> >>
> >> Dan
> >>
> > 
> > Hi Dan,
> > 
> > I am already in the video group...
> > 
> > And: When run as user, is starts but loading
> > an *.STP file crashes FreeCAD with:
> > 
> > FreeCAD 0.16, Libs: 0.16RUnknown
> > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> >   #   ###     
> >   ##  # #   #   # 
> >   # ##     # #   #  #   # 
> >     # # #  # #  #  # #  #   # 
> >   # #      ## # #   # 
> >   # #   ## ## # #   #  ##  ##  ##
> >   # #       ### # #    ##  ##  ##
> > 
> > libGL error: No matching fbConfigs or visuals found
> > libGL error: failed to load driver: swrast
> > *** Abort *** an exception was raised, but no catch was found.
> > ... The exception is:SIGSEGV 'segmentation violation' detected. Address > > 0
> > [1]5658 exit 1 FreeCAD
> > 
> > 
> > It ssems more odd than previously thought 
> > 
> > What is that 'swrast' thingy?
> > 
> > 
> > Cheers
> > Meino
> > 
> > 
> > 
> 
> From what I've just read, it's a software raster driver. I figured it
> couldn't talk to the hardware, hence the adding to video group suggestion.
> 
> Found this though:
> 
> http://forum.freecadweb.org/viewtopic.php?t=20187
> 
> Dan
> 

It says that passing 

--graphicssystem=raster

as option to FreeCAD would fix that problem.


When doing so, FreeCAD says it does not that 
option.

Hm

Cheers
Meino





Re: [gentoo-user] FreeCAD permission problems

2017-05-05 Thread Daniel Frey
On 05/05/2017 10:23 AM, tu...@posteo.de wrote:
> On 05/05 10:17, Daniel Frey wrote:
>> On 05/05/2017 10:08 AM, tu...@posteo.de wrote:
>>> Hi 
>>>
>>> I emerged FreCAD and started it as user.
>>> It crashes with following output:
>>> FreeCAD 0.16, Libs: 0.16RUnknown
>>> © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
>>>   #   ###     
>>>   ##  # #   #   # 
>>>   # ##     # #   #  #   # 
>>>     # # #  # #  #  # #  #   # 
>>>   # #      ## # #   # 
>>>   # #   ## ## # #   #  ##  ##  ##
>>>   # #       ### # #    ##  ##  ##
>>>
>>> libGL error: No matching fbConfigs or visuals found
>>> libGL error: failed to load driver: swrast
>>> using visual class 4, id 2b
>>> [1]5388 segmentation fault  FreeCAD
>>>
>>> When run as root it works, though.
>>>
>>> Where do I have to tweak what perms? :)
>>>
>>> Thanks a lot in advance for any help!
>>> Cheers
>>> Meino
>>>
>>>
>>>
>>
>> Try adding your user to the video group.
>>
>> Dan
>>
> 
> Hi Dan,
> 
> I am already in the video group...
> 
> And: When run as user, is starts but loading
> an *.STP file crashes FreeCAD with:
> 
> FreeCAD 0.16, Libs: 0.16RUnknown
> © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
>   #   ###     
>   ##  # #   #   # 
>   # ##     # #   #  #   # 
>     # # #  # #  #  # #  #   # 
>   # #      ## # #   # 
>   # #   ## ## # #   #  ##  ##  ##
>   # #       ### # #    ##  ##  ##
> 
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> *** Abort *** an exception was raised, but no catch was found.
>   ... The exception is:SIGSEGV 'segmentation violation' detected. Address > 0
> [1]5658 exit 1 FreeCAD
> 
> 
> It ssems more odd than previously thought 
> 
> What is that 'swrast' thingy?
> 
> 
> Cheers
> Meino
> 
> 
> 

>From what I've just read, it's a software raster driver. I figured it
couldn't talk to the hardware, hence the adding to video group suggestion.

Found this though:

http://forum.freecadweb.org/viewtopic.php?t=20187

Dan



Re: [gentoo-user] FreeCAD permission problems

2017-05-05 Thread tuxic
On 05/05 10:17, Daniel Frey wrote:
> On 05/05/2017 10:08 AM, tu...@posteo.de wrote:
> > Hi 
> > 
> > I emerged FreCAD and started it as user.
> > It crashes with following output:
> > FreeCAD 0.16, Libs: 0.16RUnknown
> > © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
> >   #   ###     
> >   ##  # #   #   # 
> >   # ##     # #   #  #   # 
> >     # # #  # #  #  # #  #   # 
> >   # #      ## # #   # 
> >   # #   ## ## # #   #  ##  ##  ##
> >   # #       ### # #    ##  ##  ##
> > 
> > libGL error: No matching fbConfigs or visuals found
> > libGL error: failed to load driver: swrast
> > using visual class 4, id 2b
> > [1]5388 segmentation fault  FreeCAD
> > 
> > When run as root it works, though.
> > 
> > Where do I have to tweak what perms? :)
> > 
> > Thanks a lot in advance for any help!
> > Cheers
> > Meino
> > 
> > 
> > 
> 
> Try adding your user to the video group.
> 
> Dan
> 

Hi Dan,

I am already in the video group...

And: When run as user, is starts but loading
an *.STP file crashes FreeCAD with:

FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #   ###     
  ##  # #   #   # 
  # ##     # #   #  #   # 
    # # #  # #  #  # #  #   # 
  # #      ## # #   # 
  # #   ## ## # #   #  ##  ##  ##
  # #       ### # #    ##  ##  ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 0
[1]5658 exit 1 FreeCAD


It ssems more odd than previously thought 

What is that 'swrast' thingy?


Cheers
Meino





Re: [gentoo-user] FreeCAD permission problems

2017-05-05 Thread Daniel Frey
On 05/05/2017 10:08 AM, tu...@posteo.de wrote:
> Hi 
> 
> I emerged FreCAD and started it as user.
> It crashes with following output:
> FreeCAD 0.16, Libs: 0.16RUnknown
> © Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
>   #   ###     
>   ##  # #   #   # 
>   # ##     # #   #  #   # 
>     # # #  # #  #  # #  #   # 
>   # #      ## # #   # 
>   # #   ## ## # #   #  ##  ##  ##
>   # #       ### # #    ##  ##  ##
> 
> libGL error: No matching fbConfigs or visuals found
> libGL error: failed to load driver: swrast
> using visual class 4, id 2b
> [1]5388 segmentation fault  FreeCAD
> 
> When run as root it works, though.
> 
> Where do I have to tweak what perms? :)
> 
> Thanks a lot in advance for any help!
> Cheers
> Meino
> 
> 
> 

Try adding your user to the video group.

Dan



[gentoo-user] FreeCAD permission problems

2017-05-05 Thread tuxic
Hi 

I emerged FreCAD and started it as user.
It crashes with following output:
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #   ###     
  ##  # #   #   # 
  # ##     # #   #  #   # 
    # # #  # #  #  # #  #   # 
  # #      ## # #   # 
  # #   ## ## # #   #  ##  ##  ##
  # #       ### # #    ##  ##  ##

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
using visual class 4, id 2b
[1]5388 segmentation fault  FreeCAD

When run as root it works, though.

Where do I have to tweak what perms? :)

Thanks a lot in advance for any help!
Cheers
Meino





Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Rasmus Thomsen
Hi,

wrong permissions usually caused 500 errors for me, but I'm using 
nginx+php-fpm. I don't changing php's time limit would change something about 
your situation (especially considering that the first time setup always loaded 
pretty much instantly for me, even on a raspberry pi 2), unless you import 
massive amounts of new data (but I don't think you'd import that much (if any) 
data on your first setup ;)

Regards,
Rasmus

 Original Message 
On 5 May 2017, 16:37, John Covici wrote:

On Fri, 05 May 2017 10:25:21 -0400,
Rasmus Thomsen wrote:
>
> [1 ]
> [2 ]
> Hi,
>
> Nextcloud/Owncloud both provide a script to set the correct permissions:
>
> https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#strong-perms-label
>
> Just set the correct user (most likely apache)/path
>
> Regards,
> Rasmus
>
>  Original Message 
> On 5 May 2017, 16:16, Mick < michaelkintz...@gmail.com> wrote:
>
> On Friday 05 May 2017 08:31:56 John Covici wrote:
> > On Fri, 05 May 2017 07:24:02 -0400,
> >
> > Michael Orlitzky wrote:
> > > On 05/05/2017 07:13 AM, John Covici wrote:
> > > > The php log is not mentioned in the .htaccess file of owncloud. But
> > > > regardless of owncloud, php fatal errors are not logged anywhere under
> > > > apache, even though I have log_errors and a log file name.
> > >
> > > Apache doesn't know anything about what happens in the PHP code, so the
> > > errors should be logged in that separate PHP error log, if anywhere.
> > >
> > > As a temporary measure, you can try enabling "display_errors" and
> > > "display_startup_errors" in your (Apache) php.ini. That should convince
> > > PHP to spit out the error into your browser when you visit the page,
> > > rather than (or in addition to) logging it.
> >
> > If I put those on, I don't even get the 500, I get nothing at all
> > instead! Very odd, indeed. I just get a blank window when I use my
> > php fatal error creator.
> > But if I change it to http, I get the fatal error.
> >
> >
> > For owncloud, changing to http yields the same result. However, when
> > I finally changed the display_startup_errors to On, I get the
> > following fatal error:
> > [05-May-2017 11:44:21 UTC] PHP Fatal error: Maximum execution time of
> > 30 seconds exceeded in
> > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
> > [05-May-2017 11:44:21 UTC] PHP Stack trace:
> > [05-May-2017 11:44:21 UTC] PHP 1. {main}()
> > /var/www/covici.com/htdocs-secure/owncloud/index.php:0
> > [05-May-2017 11:44:21 UTC] PHP 2. require_once()
> > /var/www/covici.com/htdocs-secure/owncloud/index.php:37
> > [05-May-2017 11:44:21 UTC] PHP 3. OC::init()
> > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
> > [05-May-2017 11:44:21 UTC] PHP 4. set_time_limit()
> > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542
> >
> >
> > Any insights would be appreciated.
>
> Have you looked at the lines mentioned above in base.php and index.php?
>
> It may be an issue of correct owneship/access rights and the lines in those
> files may give you a hint. Some files may need to be owned by the owncloud
> user or the webserver user accounts.
> --
> Regards,
> Mick
>

I have the script mentioned above. I would think if the permissions
were wrong, it would not get into the file at all.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
cov...@ccs.covici.com

Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread John Covici

On Fri, 05 May 2017 10:25:21 -0400,
Rasmus Thomsen wrote:
> 
> [1  ]
> [2  ]
> Hi,
> 
> Nextcloud/Owncloud both provide a script to set the correct permissions:
> 
> https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#strong-perms-label
> 
> Just set the correct user (most likely apache)/path
> 
> Regards,
> Rasmus
> 
>  Original Message 
> On 5 May 2017, 16:16, Mick < michaelkintz...@gmail.com> wrote:
> 
>  On Friday 05 May 2017 08:31:56 John Covici wrote: 
>  > On Fri, 05 May 2017 07:24:02 -0400, 
>  > 
>  > Michael Orlitzky wrote: 
>  > > On 05/05/2017 07:13 AM, John Covici wrote: 
>  > > > The php log is not mentioned in the .htaccess file of owncloud. But 
>  > > > regardless of owncloud, php fatal errors are not logged anywhere under 
>  > > > apache, even though I have log_errors and a log file name. 
>  > > 
>  > > Apache doesn't know anything about what happens in the PHP code, so the 
>  > > errors should be logged in that separate PHP error log, if anywhere. 
>  > > 
>  > > As a temporary measure, you can try enabling "display_errors" and 
>  > > "display_startup_errors" in your (Apache) php.ini. That should convince 
>  > > PHP to spit out the error into your browser when you visit the page, 
>  > > rather than (or in addition to) logging it. 
>  > 
>  > If I put those on, I don't even get the 500, I get nothing at all 
>  > instead! Very odd, indeed. I just get a blank window when I use my 
>  > php fatal error creator. 
>  > But if I change it to http, I get the fatal error. 
>  > 
>  > 
>  > For owncloud, changing to http yields the same result. However, when 
>  > I finally changed the display_startup_errors to On, I get the 
>  > following fatal error: 
>  > [05-May-2017 11:44:21 UTC] PHP Fatal error: Maximum execution time of 
>  > 30 seconds exceeded in 
>  > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542 
>  > [05-May-2017 11:44:21 UTC] PHP Stack trace: 
>  > [05-May-2017 11:44:21 UTC] PHP 1. {main}() 
>  > /var/www/covici.com/htdocs-secure/owncloud/index.php:0 
>  > [05-May-2017 11:44:21 UTC] PHP 2. require_once() 
>  > /var/www/covici.com/htdocs-secure/owncloud/index.php:37 
>  > [05-May-2017 11:44:21 UTC] PHP 3. OC::init() 
>  > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967 
>  > [05-May-2017 11:44:21 UTC] PHP 4. set_time_limit() 
>  > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542 
>  > 
>  > 
>  > Any insights would be appreciated. 
> 
>  Have you looked at the lines mentioned above in base.php and index.php? 
> 
>  It may be an issue of correct owneship/access rights and the lines in those 
>  files may give you a hint. Some files may need to be owned by the owncloud 
>  user or the webserver user accounts. 
>  -- 
>  Regards, 
>  Mick 
> 


I have the script mentioned above.  I would think if the permissions
were wrong, it would not get into the file at all.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread John Covici
On Fri, 05 May 2017 10:16:08 -0400,
Mick wrote:
> 
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] trying to find the cause of an http 500 error
> From: Mick 
> Date: Fri, 05 May 2017 15:16:08 +0100
> Reply-to: gentoo-user@lists.gentoo.org
> 
> [1  ]
> On Friday 05 May 2017 08:31:56 John Covici wrote:
> > On Fri, 05 May 2017 07:24:02 -0400,
> > 
> > Michael Orlitzky wrote:
> > > On 05/05/2017 07:13 AM, John Covici wrote:
> > > > The php log is not mentioned in the .htaccess file of owncloud.  But
> > > > regardless of owncloud, php fatal errors are not logged anywhere under
> > > > apache, even though I have log_errors and a log file name.
> > > 
> > > Apache doesn't know anything about what happens in the PHP code, so the
> > > errors should be logged in that separate PHP error log, if anywhere.
> > > 
> > > As a temporary measure, you can try enabling "display_errors" and
> > > "display_startup_errors" in your (Apache) php.ini. That should convince
> > > PHP to spit out the error into your browser when you visit the page,
> > > rather than (or in addition to) logging it.
> > 
> > If I put those on, I don't even get the 500, I get nothing at all
> > instead!  Very odd, indeed.  I just get a blank window when I use my
> > php fatal error creator.
> > But if I change it to http, I get the fatal error.
> > 
> > 
> > For owncloud, changing to http yields the same result.  However, when
> > I finally changed the display_startup_errors to On, I get the
> > following fatal error:
> > [05-May-2017 11:44:21 UTC] PHP Fatal error:  Maximum execution time of
> > 30 seconds exceeded in
> > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
> > [05-May-2017 11:44:21 UTC] PHP Stack trace:
> > [05-May-2017 11:44:21 UTC] PHP   1. {main}()
> > /var/www/covici.com/htdocs-secure/owncloud/index.php:0
> > [05-May-2017 11:44:21 UTC] PHP   2. require_once()
> > /var/www/covici.com/htdocs-secure/owncloud/index.php:37
> > [05-May-2017 11:44:21 UTC] PHP   3. OC::init()
> > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
> > [05-May-2017 11:44:21 UTC] PHP   4. set_time_limit()
> > /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542
> > 
> > 
> > Any insights would be appreciated.
> 
> Have you looked at the lines mentioned above in base.php and index.php?
> 
> It may be an issue of correct owneship/access rights and the lines in those 
> files may give you a hint.  Some files may need to be owned by the owncloud 
> user or the webserver user accounts.

Seems good, everything is owned correctly.  I wonder if its something
more basic on my system, what is set_time_limit actually doing?

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Rasmus Thomsen
Hi,

Nextcloud/Owncloud both provide a script to set the correct permissions:

https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#strong-perms-label

Just set the correct user (most likely apache)/path

Regards,
Rasmus

 Original Message 
On 5 May 2017, 16:16, Mick wrote:
On Friday 05 May 2017 08:31:56 John Covici wrote:
> On Fri, 05 May 2017 07:24:02 -0400,
>
> Michael Orlitzky wrote:
> > On 05/05/2017 07:13 AM, John Covici wrote:
> > > The php log is not mentioned in the .htaccess file of owncloud. But
> > > regardless of owncloud, php fatal errors are not logged anywhere under
> > > apache, even though I have log_errors and a log file name.
> >
> > Apache doesn't know anything about what happens in the PHP code, so the
> > errors should be logged in that separate PHP error log, if anywhere.
> >
> > As a temporary measure, you can try enabling "display_errors" and
> > "display_startup_errors" in your (Apache) php.ini. That should convince
> > PHP to spit out the error into your browser when you visit the page,
> > rather than (or in addition to) logging it.
>
> If I put those on, I don't even get the 500, I get nothing at all
> instead! Very odd, indeed. I just get a blank window when I use my
> php fatal error creator.
> But if I change it to http, I get the fatal error.
>
>
> For owncloud, changing to http yields the same result. However, when
> I finally changed the display_startup_errors to On, I get the
> following fatal error:
> [05-May-2017 11:44:21 UTC] PHP Fatal error: Maximum execution time of
> 30 seconds exceeded in
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
> [05-May-2017 11:44:21 UTC] PHP Stack trace:
> [05-May-2017 11:44:21 UTC] PHP 1. {main}()
> /var/www/covici.com/htdocs-secure/owncloud/index.php:0
> [05-May-2017 11:44:21 UTC] PHP 2. require_once()
> /var/www/covici.com/htdocs-secure/owncloud/index.php:37
> [05-May-2017 11:44:21 UTC] PHP 3. OC::init()
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
> [05-May-2017 11:44:21 UTC] PHP 4. set_time_limit()
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542
>
>
> Any insights would be appreciated.

Have you looked at the lines mentioned above in base.php and index.php?

It may be an issue of correct owneship/access rights and the lines in those
files may give you a hint. Some files may need to be owned by the owncloud
user or the webserver user accounts.
--
Regards,
Mick

Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Mick
On Friday 05 May 2017 08:31:56 John Covici wrote:
> On Fri, 05 May 2017 07:24:02 -0400,
> 
> Michael Orlitzky wrote:
> > On 05/05/2017 07:13 AM, John Covici wrote:
> > > The php log is not mentioned in the .htaccess file of owncloud.  But
> > > regardless of owncloud, php fatal errors are not logged anywhere under
> > > apache, even though I have log_errors and a log file name.
> > 
> > Apache doesn't know anything about what happens in the PHP code, so the
> > errors should be logged in that separate PHP error log, if anywhere.
> > 
> > As a temporary measure, you can try enabling "display_errors" and
> > "display_startup_errors" in your (Apache) php.ini. That should convince
> > PHP to spit out the error into your browser when you visit the page,
> > rather than (or in addition to) logging it.
> 
> If I put those on, I don't even get the 500, I get nothing at all
> instead!  Very odd, indeed.  I just get a blank window when I use my
> php fatal error creator.
> But if I change it to http, I get the fatal error.
> 
> 
> For owncloud, changing to http yields the same result.  However, when
> I finally changed the display_startup_errors to On, I get the
> following fatal error:
> [05-May-2017 11:44:21 UTC] PHP Fatal error:  Maximum execution time of
> 30 seconds exceeded in
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
> [05-May-2017 11:44:21 UTC] PHP Stack trace:
> [05-May-2017 11:44:21 UTC] PHP   1. {main}()
> /var/www/covici.com/htdocs-secure/owncloud/index.php:0
> [05-May-2017 11:44:21 UTC] PHP   2. require_once()
> /var/www/covici.com/htdocs-secure/owncloud/index.php:37
> [05-May-2017 11:44:21 UTC] PHP   3. OC::init()
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
> [05-May-2017 11:44:21 UTC] PHP   4. set_time_limit()
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542
> 
> 
> Any insights would be appreciated.

Have you looked at the lines mentioned above in base.php and index.php?

It may be an issue of correct owneship/access rights and the lines in those 
files may give you a hint.  Some files may need to be owned by the owncloud 
user or the webserver user accounts.
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Michael Orlitzky
On 05/05/2017 08:31 AM, John Covici wrote:
> 
> For owncloud, changing to http yields the same result.  However, when
> I finally changed the display_startup_errors to On, I get the
> following fatal error:
> [05-May-2017 11:44:21 UTC] PHP Fatal error:  Maximum execution time of
> 30 seconds exceeded in
> /var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542

First I would try the easy thing: increase the maximum execution time in
php.ini to something like 5 minutes and try again. It's possible that
the Owncloud initialization takes a long time, the first time around.





Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Bill Kenworthy
On 05/05/17 20:31, John Covici wrote:
> On Fri, 05 May 2017 07:24:02 -0400,
> Michael Orlitzky wrote:
>>
>> On 05/05/2017 07:13 AM, John Covici wrote:
>>>
>>> The php log is not mentioned in the .htaccess file of owncloud.  But
>>> regardless of owncloud, php fatal errors are not logged anywhere under
>>> apache, even though I have log_errors and a log file name.
>>>
...
> 
> Any insights would be appreciated.
> 

Does phpinfo give a clue?

https://www.garron.me/en/bits/phpinfo-script-test-php-apache.html

BillK





Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread John Covici
On Fri, 05 May 2017 07:24:02 -0400,
Michael Orlitzky wrote:
> 
> On 05/05/2017 07:13 AM, John Covici wrote:
> > 
> > The php log is not mentioned in the .htaccess file of owncloud.  But
> > regardless of owncloud, php fatal errors are not logged anywhere under
> > apache, even though I have log_errors and a log file name.
> > 
> 
> Apache doesn't know anything about what happens in the PHP code, so the
> errors should be logged in that separate PHP error log, if anywhere.
> 
> As a temporary measure, you can try enabling "display_errors" and
> "display_startup_errors" in your (Apache) php.ini. That should convince
> PHP to spit out the error into your browser when you visit the page,
> rather than (or in addition to) logging it.

If I put those on, I don't even get the 500, I get nothing at all
instead!  Very odd, indeed.  I just get a blank window when I use my
php fatal error creator.
But if I change it to http, I get the fatal error.


For owncloud, changing to http yields the same result.  However, when
I finally changed the display_startup_errors to On, I get the
following fatal error:
[05-May-2017 11:44:21 UTC] PHP Fatal error:  Maximum execution time of
30 seconds exceeded in
/var/www/covici.com/htdocs-secure/owncloud/lib/base.php on line 542
[05-May-2017 11:44:21 UTC] PHP Stack trace:
[05-May-2017 11:44:21 UTC] PHP   1. {main}()
/var/www/covici.com/htdocs-secure/owncloud/index.php:0
[05-May-2017 11:44:21 UTC] PHP   2. require_once()
/var/www/covici.com/htdocs-secure/owncloud/index.php:37
[05-May-2017 11:44:21 UTC] PHP   3. OC::init()
/var/www/covici.com/htdocs-secure/owncloud/lib/base.php:967
[05-May-2017 11:44:21 UTC] PHP   4. set_time_limit()
/var/www/covici.com/htdocs-secure/owncloud/lib/base.php:542


Any insights would be appreciated.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Michael Orlitzky
On 05/05/2017 07:13 AM, John Covici wrote:
> 
> The php log is not mentioned in the .htaccess file of owncloud.  But
> regardless of owncloud, php fatal errors are not logged anywhere under
> apache, even though I have log_errors and a log file name.
> 

Apache doesn't know anything about what happens in the PHP code, so the
errors should be logged in that separate PHP error log, if anywhere.

As a temporary measure, you can try enabling "display_errors" and
"display_startup_errors" in your (Apache) php.ini. That should convince
PHP to spit out the error into your browser when you visit the page,
rather than (or in addition to) logging it.




Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread John Covici
On Fri, 05 May 2017 06:37:00 -0400,
Michael Orlitzky wrote:
> 
> On 05/05/2017 02:30 AM, John Covici wrote:
> > 
> > In case of some crazy thing in owncloud turning off logging or
> > something, I wrote a program which triggers a fatal error  (I know
> > it does using the cli) and ran it under apache and nothing is being
> > logged.
> > 
> > So, the question is how to get it so I can see the fatal error, so I
> > can get my owncloud working again?
> 
> Check for an .htaccess file that ships with owncloud and relocates the
> PHP log.

The php log is not mentioned in the .htaccess file of owncloud.  But
regardless of owncloud, php fatal errors are not logged anywhere under
apache, even though I have log_errors and a log file name.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread Michael Orlitzky
On 05/05/2017 02:30 AM, John Covici wrote:
> 
> In case of some crazy thing in owncloud turning off logging or
> something, I wrote a program which triggers a fatal error  (I know
> it does using the cli) and ran it under apache and nothing is being
> logged.
> 
> So, the question is how to get it so I can see the fatal error, so I
> can get my owncloud working again?

Check for an .htaccess file that ships with owncloud and relocates the
PHP log.




[gentoo-user] trying to find the cause of an http 500 error

2017-05-05 Thread John Covici
Hi folks.  I am running owncloud  which I like a lot, but for the past
few days I have been getting a 500 response when I try to  log in to
the server.

Now when I look at the apache logs I see nothing about the error, I
just get lines like this:
[Thu May 04 23:37:10.802948 2017] [ssl:info] [pid 14953] [client
192.168.0.2:50009] AH01964: Connection to child 2 established (server
ccs.covici.com:443)


Even if I set loglevel debug in my apache configuration, I don't get
any more about the 500 error, just a lot about ssl.

Now after a lot of googling, I am told that the reason for the 50
response is a php fatal error.  But I have log_errors as one in the
/etc/php/apache2-php5.6/php.ini and I have the errors logged to a file
/var/log/apache2/php_errors.log .  So, why are these fatal errors not
being logged?

In case of some crazy thing in owncloud turning off logging or
something, I wrote a program which triggers a fatal error  (I know
it does using the cli) and ran it under apache and nothing is being
logged.

So, the question is how to get it so I can see the fatal error, so I
can get my owncloud working again?

Thanks in advance for any suggestions.



-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com