Re: update hell

2018-07-26 Thread Ben Caradoc-Davies

On 27/07/18 16:44, Ben Caradoc-Davies wrote:

On 27/07/18 16:09, Default User wrote:

Debian Unstable, x86-64

[...]

$ sudo aptitude -Pvv full-upgrade

[...]

The following packages have unmet dependencies:
  libkf5xmlgui5 : Depends: qtbase-abi-5-10-0 which is a virtual package,
provided by:
   - libqt5core5a (5.10.1+dfsg-7), but 
5.11.1+dfsg-6

is to be installed

[...]

What to do?
Wait for the Qt 5.11 transition 
 to 
be completed?

When on unstable, the transition tracker is your friend:
https://release.debian.org/transitions/


More specifically, I use "apt-get dist-upgrade -V", and if apt-get wants 
to remove anything that I do not think it should, I reply "n", and then 
I use "apt-get upgrade -V" instead, so that I can upgrade packages not 
blocked by an in-progress transition.


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Re: update hell

2018-07-26 Thread Ben Caradoc-Davies

On 27/07/18 16:09, Default User wrote:

Debian Unstable, x86-64

[...]

$ sudo aptitude -Pvv full-upgrade

[...]

The following packages have unmet dependencies:
  libkf5xmlgui5 : Depends: qtbase-abi-5-10-0 which is a virtual package,
provided by:
   - libqt5core5a (5.10.1+dfsg-7), but 5.11.1+dfsg-6
is to be installed

[...]

What to do?


Wait for the Qt 5.11 transition 
 to 
be completed?


When on unstable, the transition tracker is your friend:
https://release.debian.org/transitions/

Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Re: Cross-Platform Assembly Language Compilers?

2018-07-26 Thread Erik Christiansen
On 26.07.18 08:29, cyaiplexys wrote:
> I'd like to try a native compiler but also I would like to have something I
> could compile for Arduino (here we go again) and ARM and other CPUs as well.

$ apt-cache search avr | more
arduino - AVR development board IDE and built-in libraries
libavresample-dev - FFmpeg compatibility library for resampling -
development files
libavresample4 - FFmpeg compatibility library for resampling - runtime
files
gcc-avr - The GNU C compiler (cross compiler for avr)
avrdude-doc - documentation for avrdude
avr-libc - Standard C library for Atmel AVR development
gdb-avr - The GNU Debugger for avr
avrdude - software for programming Atmel AVR microcontrollers
binutils-avr - Binary utilities supporting Atmel's AVR targets

When you install gcc-avr, binutils-avr will also be installed, else
gcc-avr can't produce executables. You can use avr-as to assemble your
own assembler source files, but if you put your *.S files through
gcc-avr, then you can use the 'C' header files, with cpp doing the macro
mappings.

Unless arduinoing, you'll probably want to install "make", as it's very
handy for building a code suite. (Duno what arduino uses, but IDEs
usually try to appear to do something more than the elements of a CLI
build environment - aka "*nix is the IDE")

Once entangled in the peripherals (initialisation and utilisation) of
one CPU, you'll find enough to learn that hopping on to the next target
will not immediately appeal. However, what you learn of the GNU
toolchain on one target is equally applicable to the next. (E.g. ld,
objdump, nm, ar, gprof, gdb, readelf, ...)

Read the avrdude manpage and avrdude-doc for suitable programming
dongles, or just hop on ebay. Maybe buy a couple of arduinos while there,
leave the bootloader intact, and produce your code with the GNU toolchain
if arduino "sketches" seem too naff. They're easier, than a laptop, to
screw to a post if the project is a computerised birdfeeder. (And easier
to power out there.)

Arduino: # apt-get install arduino
 Then read all doco, and google.

X86: Similar to above.

Erik



update hell

2018-07-26 Thread Default User
Hi.

Debian Unstable, x86-64
Time to update:

$ sudo aptitude -Pvv full-upgrade
The following packages will be upgraded:
  libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5positioning5
libqt5printsupport5
  libqt5qml5 libqt5quick5 libqt5quickcontrols2-5 libqt5quicktemplates2-5
libqt5quickwidgets5
  libqt5script5 libqt5sensors5 libqt5svg5 libqt5test5 libqt5texttospeech5
libqt5waylandclient5
  libqt5waylandcompositor5 libqt5webchannel5 libqt5webkit5 libqt5widgets5
libqt5x11extras5
  libqt5xml5 qml-module-qtgraphicaleffects qml-module-qtqml-models2
qml-module-qtquick-controls2
  qml-module-qtquick-templates2 qml-module-qtquick-window2
qml-module-qtquick2
  qt5-gtk-platformtheme qtwayland5
31 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.6 MB of archives. After unpacking 1,365 kB will be freed.
The following packages have unmet dependencies:
 libkf5xmlgui5 : Depends: qtbase-abi-5-10-0 which is a virtual package,
provided by:
  - libqt5core5a (5.10.1+dfsg-7), but 5.11.1+dfsg-6
is to be installed

The following actions will resolve these dependencies:

  Keep the following packages at their current version:
1)  libqt5core5a [5.10.1+dfsg-7 (now)]
2)  libqt5dbus5 [5.10.1+dfsg-7 (now)]
3)  libqt5gui5 [5.10.1+dfsg-7 (now)]
4)  libqt5network5 [5.10.1+dfsg-7 (now)]
5)  libqt5positioning5 [5.10.1+dfsg-3 (now)]
6)  libqt5printsupport5 [5.10.1+dfsg-7 (now)]
7)  libqt5qml5 [5.10.1-4 (now)]
8)  libqt5quick5 [5.10.1-4 (now)]
9)  libqt5quickcontrols2-5 [5.10.1-2 (now)]
10) libqt5quicktemplates2-5 [5.10.1-2 (now)]
11) libqt5quickwidgets5 [5.10.1-4 (now)]
12) libqt5script5 [5.10.1+dfsg-2 (now)]
13) libqt5sensors5 [5.10.1-3 (now)]
14) libqt5svg5 [5.10.1-2 (now)]
15) libqt5test5 [5.10.1+dfsg-7 (now)]
16) libqt5texttospeech5 [5.10.1-2 (now)]
17) libqt5waylandclient5 [5.10.1-3 (now)]
18) libqt5waylandcompositor5 [5.10.1-3 (now)]
19) libqt5webchannel5 [5.10.1-2 (now)]
20) libqt5webkit5 [5.212.0~alpha2-9+b1 (now)]
21) libqt5widgets5 [5.10.1+dfsg-7 (now)]
22) libqt5x11extras5 [5.10.1-2 (now)]
23) libqt5xml5 [5.10.1+dfsg-7 (now)]
24) qml-module-qtgraphicaleffects [5.10.1-2 (now)]
25) qml-module-qtqml-models2 [5.10.1-4 (now)]
26) qml-module-qtquick-controls2 [5.10.1-2 (now)]
27) qml-module-qtquick-templates2 [5.10.1-2 (now)]
28) qml-module-qtquick-window2 [5.10.1-4 (now)]
29) qml-module-qtquick2 [5.10.1-4 (now)]
30) qt5-gtk-platformtheme [5.10.1+dfsg-7 (now)]
31) qtwayland5 [5.10.1-3 (now)]



Accept this solution? [Y/n/q/?]  [Enter]
The following packages will NOT be UPGRADED:
  libqt5core5a{a} libqt5dbus5{a} libqt5gui5{a} libqt5network5{a}
libqt5positioning5{a}
  libqt5printsupport5{a} libqt5qml5{a} libqt5quick5{a}
libqt5quickcontrols2-5{a}
  libqt5quicktemplates2-5{a} libqt5quickwidgets5{a} libqt5script5{a}
libqt5sensors5{a}
  libqt5svg5{a} libqt5test5{a} libqt5texttospeech5{a}
libqt5waylandclient5{a}
  libqt5waylandcompositor5{a} libqt5webchannel5{a} libqt5webkit5{a}
libqt5widgets5{a}
  libqt5x11extras5{a} libqt5xml5{a} qml-module-qtgraphicaleffects{a}
qml-module-qtqml-models2{a}
  qml-module-qtquick-controls2{a} qml-module-qtquick-templates2{a}
qml-module-qtquick-window2{a}
  qml-module-qtquick2{a} qt5-gtk-platformtheme{a} qtwayland5{a}
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

Current status: 0 (+0) broken, 31 (+0) upgradable, 58217 (+0) new.


$ sudo aptitude show libqt5core5a
Package: libqt5core5a
Version: 5.11.1+dfsg-6
State: installed (5.10.1+dfsg-7), upgrade available (5.11.1+dfsg-6)
Automatically installed: yes
Multi-Arch: same
Priority: optional
Section: libs
Maintainer: Debian Qt/KDE Maintainers 
Architecture: amd64
Uncompressed Size: 5,656 k
Depends: libc6 (>= 2.25), libdouble-conversion1 (>= 2.0.0), libgcc1 (>=
1:3.4), libglib2.0-0 (>=
 2.22.0), libicu60 (>= 60.1-1~), libpcre2-16-0 (>= 10.31),
libstdc++6 (>= 5), zlib1g (>=
 1:1.1.4)
Recommends: qttranslations5-l10n
Suggests: libthai0
Breaks: libqt5scintilla2-12v5 (< 2.9.2+dfsg-2~)
Provides: qtbase-abi-5-11-0
Description: Qt 5 core module
 Qt is a cross-platform C++ application framework. Qt's primary feature is
its rich set of widgets that
 provide standard GUI functionality.

 The QtCore module contains core non-GUI functionality.
Homepage: http://qt-project.org/
Tags: role::shared-lib


What to do?


Re: Car Audio USB Jacks

2018-07-26 Thread Doug



On 07/23/2018 03:19 PM, Thomas Schmitt wrote:

Hi,

(i reply to Doug's mail but adopt Dan Ritter's new subject text.)

Doug wrote:

I would make some copies of CDs onto a flash drive, if I knew how!

The act of copying audio data from CD is usually called "ripping".
Program cdda2wav is specialized on that job.

I would use my own program cdrskin (which is mainly for burning data to
CD rather than ripping data from CD). At then of the man page there is an
example:
"Extract audio tracks and CD-TEXT from CD into directory /home/me/my_cd"

   mkdir /home/me/my_cd

   cdrskin -v dev=/dev/sr0 extract_audio_to=/home/me/my_cd \
   cdtext_to_v07t=/home/me/my_cd/cdtext.v07t

This will yield per track NN a file trackNN.wav in directory /home/me/my_cd.
If CD-TEXT is present, then it will be extracted to human readble file
/home/me/my_cd/cdtext.v07t .



do I have to format the flash drive, and if so with what system?

If the car expects USB sticks, then it probably can handle a (microsoftly)
FAT filesystem.


I thought that flash drives come formatted with a Windows file system?

They usually do and readers usually are ready to use the filesystem.

More important will be to find out which audio file formats are supported.
.wav is possibly ok, but also quite a wasteful way of storing sound on
a general data storage device.


Have a nice day :)

Thomas



Thanx to all for the information. I don't seem to have cdda2wav, but
I had an interesting (!) experience. I used K3b to put one CD on the
flash, but I could not seem to get it to do it again, and all the info for
K3b is 6 years old. I wound up installing Asunder CD Ripper, and it is
really simple. Tell it what format (.wav) you want, and it will rip to
a place in the home directory, like "Music" and then you can copy
each CD package to your USB flash drive. wav may be a lossy format, but
you can get a heck of a lot of CDs on an 8GiB flash drive!

--doug



Re: xdg-open drives me crazy

2018-07-26 Thread John Crawley

On 2018-07-27 03:21, Markus Grunwald wrote:

A few programs that I use, in turn use xdg-open. With web-pages, it gets
it completely wrong, no matter what I do:


What can I do ...?


file $(which xdg-open)
/usr/bin/xdg-open: POSIX shell script, ASCII text executable

OK it's a shell script. Try the -x option to see what it's actually doing:

sh -x /usr/bin/xdg-open /path/to/file.html

There might be a hint there.

--
John



Re: [OT] An easier database

2018-07-26 Thread Zenaan Harkness
On Wed, Jul 25, 2018 at 03:02:29PM -0400, Ric Moore wrote:
> On 07/25/2018 02:00 PM, Clive Standbridge wrote:
> > > I wonder if it would be nice for apt to have a feature so that a
> > > user could mark packages "never install".
> 
> Anyone remember "File Cabinet" for Win3.1? It didn't get easier than that! Ric

ISTR when Microsoft came out with their "cabinet" file format (W95
days? can't remember) that the first time I saw a .CAB file it gave
me immediate mental indigestion as I did a double take and
immediately Altavista'ed it or something...



max volume not max volume

2018-07-26 Thread Anil Duggirala
Im running Stretch and Gnome with whatever sound setup corresponds to that. I 
turn my volume completely up from my my DE (Gnome), however the volume doesnt 
actually go to its max. Running alsamixer in the terminal, initially also shows 
the master to be at the max, pressing F6 and choosing a different sound device 
(not default) shows me more controls and shows me a master slider that is not 
at the max level. Could someone please explain what might be happening and how 
to correct this?
thanks, 



Re: Cross-Platform Assembly Language Compilers?

2018-07-26 Thread Joe
On Thu, 26 Jul 2018 20:10:47 +0200
deloptes  wrote:


> 
> Here we go again - true :) these are different and pretty vague
> formulations: Arduino mostly AVR. ARM != AVR.
> For AVR you may have advantage of using assembler. For ARM I doubt
> unless you write firmware or drivers or similar. 

If we're still on the nostalgia kick, I remember using an ARM assembler
in 1989. Nothing whatever like a CISC instruction set, it was more like
that of the Nova and other 70s minis, for exactly the same reasons. I
particularly recall writing a colour-based cellular automaton.

-- 
Joe



Re: xdg-open drives me crazy

2018-07-26 Thread Markus Grunwald
Hello,

> It looks in your output like you are using Xfce - what is set in
> "Preferred Applications" under Web Browser?

Xfce is only installed on the computer. I'm using i3.

-- 
Markus Grunwald
https://www.the-grue.de/~markus/markus_grunwald.gpg



Re: xdg-open drives me crazy

2018-07-26 Thread Andreas Ronnquist
On Thu, 26 Jul 2018 20:21:07 +0200,
Markus Grunwald wrote:

>Hello,
>
>A few programs that I use, in turn use xdg-open. With web-pages, it
>gets it completely wrong, no matter what I do:
>
>% xdg-settings get default-web-browser
>chromium.desktop
>% echo $BROWSER
>chromium
>
>
> % grep -i bin /usr/share/xfce4/helpers/chromium.desktop
>/usr/share/applications/chromium.desktop
>/usr/share/xfce4/helpers/chromium.desktop:X-XFCE-Binaries=chromium;chromium-browser;
>/usr/share/applications/chromium.desktop:Exec=/usr/bin/chromium %U
>
>
>But what does that damn thing open? Firefox...
>
>What can I do ...?
>

It looks in your output like you are using Xfce - what is set in
"Preferred Applications" under Web Browser?

also test

exo-open --launch WebBrowser

which is a Xfce specific way. See

https://docs.xfce.org/xfce/exo/preferred-applications

for more info.

-- Andreas Rönnquist
mailingli...@gusnan.se
andr...@ronnquist.net



Re: xdg-open drives me crazy

2018-07-26 Thread Markus Grunwald
Hello,

> Look at update-alternatives


Thanks for the hint, but the alternatives are configured correctly:

# ll /usr/bin/x-www-browser
lrwxrwxrwx 1 root root 31 Jul 22  2009 /usr/bin/x-www-browser ->
/etc/alternatives/x-www-browser

# ll /etc/alternatives/x-www-browser
lrwxrwxrwx 1 root root 17 Mär 28 21:21 /etc/alternatives/x-www-browser
-> /usr/bin/chromium
# ll /usr/bin/chromium
-rwxr-xr-x 1 root root 3754 Jun 19 14:13 /usr/bin/chromium


-- 
Markus Grunwald
https://www.the-grue.de/~markus/markus_grunwald.gpg



Re: xdg-open drives me crazy

2018-07-26 Thread deloptes
Markus Grunwald wrote:

> But what does that damn thing open? Firefox...
> 
> What can I do ...?

Look at update-alternatives

update-alternatives --install /etc/alternatives/firefox
x-www-browser /opt/custom/firefox/firefox 300
update-alternatives --set x-www-browser /opt/custom/firefox/firefox

regards




xdg-open drives me crazy

2018-07-26 Thread Markus Grunwald
Hello,

A few programs that I use, in turn use xdg-open. With web-pages, it gets
it completely wrong, no matter what I do:

% xdg-settings get default-web-browser
chromium.desktop
% echo $BROWSER
chromium


 % grep -i bin /usr/share/xfce4/helpers/chromium.desktop
/usr/share/applications/chromium.desktop
/usr/share/xfce4/helpers/chromium.desktop:X-XFCE-Binaries=chromium;chromium-browser;
/usr/share/applications/chromium.desktop:Exec=/usr/bin/chromium %U


But what does that damn thing open? Firefox...

What can I do ...?

-- 
Markus Grunwald
https://www.the-grue.de/~markus/markus_grunwald.gpg



Re: Cross-Platform Assembly Language Compilers?

2018-07-26 Thread deloptes
Hi,
cyaiplexys wrote:

> Thanks to a very nostalgic thread, now I'm curious about something else.
> Back in the day I used to do assembly language programming on a Tandy
> Color Computer 3 with Disk-based EDASM+.
> 

well, times have changed since.

> I'm wondering what is the best assembler/compiler for the x86 (64-bit)
> system?
> 

Is your google broken today?

> I'd like to try a native compiler but also I would like to have
> something I could compile for Arduino (here we go again) and ARM and
> other CPUs as well.
> 

Here we go again - true :) these are different and pretty vague
formulations: Arduino mostly AVR. ARM != AVR.
For AVR you may have advantage of using assembler. For ARM I doubt unless
you write firmware or drivers or similar. So basically start with C - there
are tons of tutorials and examples also many Arduino or whatever projects.
Just meet your best friend Google :) 
Come to the list when you have debian user related questions.


> However, for now I'd like to just stick to x86. I would imagine that
> would be easiest since I could test right on the laptop. And it's
> something I've always wanted to learn.

It actually doesn't matter or better what does matter is what you want to
achieve. Again it is too vague from your side, but one advice from me.

Imagine you want to make a chair out of wood. This is the goal and the
context for you. You need specific tools and know how to operate them. If
the chair would be from plastic or iron - tools and skills were different.
So pick up a material first (draw a context line) and then look for the
tools and the skills.
So if you were developing gui it would be one thing, but if it were driver
another.

regards

regards



Re: fpm problem

2018-07-26 Thread Georgi Naplatanov
On 07/26/2018 04:56 PM, Gokan Atmaca wrote:
>>
>> My advice is :
>>
>>  - try to use TCP/IP for communication between FPM and NginX
> 
> I read that UNIX socket is better.

Unix socket is faster than TCP/IP but in your case the OS may require
additional tuning. Therefor I proposed TCP/IP.

> 
> On Thu, Jul 26, 2018 at 4:05 PM, Georgi Naplatanov  wrote:
>> On 07/26/2018 03:37 PM, Gokan Atmaca wrote:
 Can you attach your PHP-FPM configuration file and NginX virtual host
 section for the site?
>>>
>>> Hello
>>>
>>> Debian stable (strech).
>>>
>>> packages:
>>>  php7.2-fpm
>>> 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
>>> server-side, HTML-embedded scripting language (FPM-CGI binary)
>>> nginx   1.10.3-1+deb9u1
>>>  all  small, powerful, scalable web/proxy server
>>>
>>> Fpm config:
>>>
>>> [www]
>>> user = www-data
>>> group = www-data
>>> listen = /run/php/php7.2-fpm.sock
>>> listen.owner = www-data
>>> listen.group = www-data
>>> pm = dynamic
>>> pm.max_children = 5000
>>> pm.start_servers = 4000
>>> pm.min_spare_servers = 4000
>>> pm.max_spare_servers = 50> --- Nginx config:
>>
>> The configuration is set for very high load. You've used Unix sockets.
>>
>> My advice is :
>>
>>  - try to use TCP/IP for communication between FPM and NginX
>>
>> Kind regards
>> Georgi
>>
>>>
>>> server {
>>> listen 80;
>>>
>>> root /home/website/;
>>> index index.php index.html index.htm;
>>> client_max_body_size 256M;
>>> server_name y.br
>>>
>>>
>>>
>>> location = /favicon.ico {
>>> log_not_found off;
>>> access_log off;
>>>}
>>>
>>>
>>> if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
>>>   return 403;
>>>  }
>>>
>>>
>>> location ~* 
>>> \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
>>>  expires 365d;
>>>  add_header Cache-Control "public";
>>>}
>>>
>>>
>>> location ~* \.(?:css|js)$ {
>>>   expires 1y;
>>>   access_log off;
>>>   add_header Cache-Control "public";
>>> }
>>>
>>>
>>>  location / {
>>> try_files $uri $uri/ /index.php?q=$uri&$args;
>>>
>>>
>>> }
>>>
>>> location /my{
>>>  allow x.x.x.x;
>>>  allow x.x.x.x;
>>>  if ($scheme = http) {  return 301 https://$host$request_uri;}
>>>  deny all;
>>>  error_page 403  error403.html;
>>>  try_files $uri $uri/ /index.php?q=$uri&$args;
>>> }
>>>
>>>  location ~ \.php$ {
>>> try_files $uri =404;
>>> fastcgi_split_path_info ^(.+\.php)(/.+)$;
>>> fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
>>> fastcgi_index index.php;
>>> fastcgi_param SCRIPT_FILENAME $request_filename;
>>> include fastcgi_params;
>>> }
>>>
>>> gzip on;
>>> gzip_disable "msie6";
>>> gzip_comp_level 9;
>>> gzip_min_length 1100;
>>> gzip_buffers 16 8k;
>>> gzip_proxied any;
>>> gzip_types
>>> text/plain
>>> text/css
>>> text/js
>>> text/xml
>>> text/javascript
>>> application/javascript
>>> application/x-javascript
>>> application/json
>>> application/xml
>>> application/xml+rss;
>>>
>>> On Thu, Jul 26, 2018 at 2:56 PM, Georgi Naplatanov  wrote:
 On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
>> What happened after you did what the warning message suggested to do?
>
> 502 gateway timeout

 Can you attach your PHP-FPM configuration file and NginX virtual host
 section for the site?

 Which Debian branch are you using - stable, testing or unstable? Where
 did you get PHP 7.2 packages from ?

 Kind regards
 Georgi

> On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
>  wrote:
>> Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
>>
>>> we are receiving an error as below. what is the cause of the problem?
>>> (32g ram , 240g ssd , xeon 8 cor cpu)
>>>
>>> WARNING: [pool www] seems busy (you may need to increase
>>> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
>>> there are 1 idle, and 143 total children
>>
>> What happened after you did what the warning message suggested to do?
>>
>> --
>> Regards
>>   mk
>>
>

>>



Re: fpm problem

2018-07-26 Thread Jens Sauer
Am Donnerstag, den 26.07.2018, 16:38 +0300 schrieb Gokan Atmaca:
> > Could it be that starting 4000 fpm processes eats up all your
> > resources
> > and starting the fpm-master process fails? Can you please check if
> > the
> > php7.2-fpm service is running?
> 
> Yes , services running...
> 
> > Can you try something like this?
> > 
> > pm = dynamic
> > pm.max_children = 250
> > pm.start_servers = 25
> > pm.min_spare_servers = 15
> > pm.max_spare_servers = 30
> 
> fpm, 8 mb per transaction. 32g ram... I have 32G RAM. I just want to
> use 24g ram.
> 
> 24576/8 = 3072 (pm.max.child)
> is this logic wrong?
> 

I think that php-fpm needs more than 8 MB RAM per process.
On my machine they currently around 50 MB per process.
And you do not have the guarantee that they will not need more
than this.

In your first mail the warning says that you are currently using 143
child processes. Why do you want to start 4000 at the beginning?

If you do not want to have a dynamic adjustment of the fpm processes,
this is what 'pm = dynamic' does, that you can try 'pm = static'.

> 
> S   UID   PID  PPID  C PRI  NI   RSSSZ WCHAN  TTY  TIME
> CMD
> S33  9343   594  0  80   0  5336 40706 SyS_ep ?00:00:00
> nginx
> S33  9344   594  0  80   0  5336 40706 SyS_ep ?00:00:00
> nginx
> S33  9345   594  0  80   0  5336 40706 SyS_ep ?00:00:00
> nginx
> S33  9347   594  0  80   0  5336 40706 SyS_ep ?00:00:00
> nginx
> S33  9348   594  0  80   0  5336 40706 SyS_ep ?00:00:00
> nginx
> S33  9349   594  0  80   0  5336 40706 SyS_ep ?00:00:00
> nginx
> S33  9346   594  0  80   0  6324 40706 SyS_ep ?00:00:00
> nginx
> S33  9342   594  0  80   0  7004 40772 SyS_ep ?00:00:00
> nginx
> S33  4828  4792  0  80   0  7400 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4829  4792  0  80   0  7400 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4830  4792  0  80   0  7400 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4831  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4832  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4833  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4834  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4835  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4836  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4837  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4838  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4839  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4840  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4841  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4842  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4843  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4844  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4845  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4846  4792  0  80   0  7404 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4847  4792  0  80   0  7408 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4848  4792  0  80   0  7408 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4849  4792  0  80   0  7408 87637 skb_wa ?00:00:00
> php-fpm7.2
> S33  4850  4792  0  80   0  7408 87637 skb_wa ?00:00:00
> php-fpm7.2
> 
> 
> On Thu, Jul 26, 2018 at 4:00 PM, Jens Sauer 
> wrote:
> > Am Donnerstag, den 26.07.2018, 15:37 +0300 schrieb Gokan Atmaca:
> > > > Can you attach your PHP-FPM configuration file and NginX
> > > > virtual
> > > > host
> > > > section for the site?
> > > 
> > > Hello
> > > 
> > > Debian stable (strech).
> > > 
> > > packages:
> > >  php7.2-fpm
> > > 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
> > > server-side, HTML-embedded scripting language (FPM-CGI binary)
> > > nginx   1.10.3-1+deb9u1
> > >  all  small, powerful, scalable web/proxy
> > > server
> > > 
> > 
> > This php7.2-fpm package is definitely not from the stable
> > repository.
> > php7.2 is not available in stretch and the latest php7.0-fpm
> > version
> > is 7.0.30-0+deb9u1
> > 
> > > Fpm config:
> > > 
> > > [www]
> > > user = www-data
> > > group = www-data
> > > listen = /run/php/php7.2-fpm.sock
> > > listen.owner = www-data
> > > listen.group = www-data
> > > pm = dynamic
> > > pm.max_children = 5000
> > > pm.start_servers = 4000
> > > pm.min_spare_servers = 4000
> > > pm.max_spare_servers = 5000
> > 
> > Could it be that starting 4000 fpm processes eats up all your
> > resources
> > and starting the fpm-master process fails? Can you please check if
> > the
> > 

Re: fpm problem

2018-07-26 Thread Gokan Atmaca
>
> My advice is :
>
>  - try to use TCP/IP for communication between FPM and NginX

I read that UNIX socket is better.

On Thu, Jul 26, 2018 at 4:05 PM, Georgi Naplatanov  wrote:
> On 07/26/2018 03:37 PM, Gokan Atmaca wrote:
>>> Can you attach your PHP-FPM configuration file and NginX virtual host
>>> section for the site?
>>
>> Hello
>>
>> Debian stable (strech).
>>
>> packages:
>>  php7.2-fpm
>> 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
>> server-side, HTML-embedded scripting language (FPM-CGI binary)
>> nginx   1.10.3-1+deb9u1
>>  all  small, powerful, scalable web/proxy server
>>
>> Fpm config:
>>
>> [www]
>> user = www-data
>> group = www-data
>> listen = /run/php/php7.2-fpm.sock
>> listen.owner = www-data
>> listen.group = www-data
>> pm = dynamic
>> pm.max_children = 5000
>> pm.start_servers = 4000
>> pm.min_spare_servers = 4000
>> pm.max_spare_servers = 50> --- Nginx config:
>
> The configuration is set for very high load. You've used Unix sockets.
>
> My advice is :
>
>  - try to use TCP/IP for communication between FPM and NginX
>
> Kind regards
> Georgi
>
>>
>> server {
>> listen 80;
>>
>> root /home/website/;
>> index index.php index.html index.htm;
>> client_max_body_size 256M;
>> server_name y.br
>>
>>
>>
>> location = /favicon.ico {
>> log_not_found off;
>> access_log off;
>>}
>>
>>
>> if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
>>   return 403;
>>  }
>>
>>
>> location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ 
>> {
>>  expires 365d;
>>  add_header Cache-Control "public";
>>}
>>
>>
>> location ~* \.(?:css|js)$ {
>>   expires 1y;
>>   access_log off;
>>   add_header Cache-Control "public";
>> }
>>
>>
>>  location / {
>> try_files $uri $uri/ /index.php?q=$uri&$args;
>>
>>
>> }
>>
>> location /my{
>>  allow x.x.x.x;
>>  allow x.x.x.x;
>>  if ($scheme = http) {  return 301 https://$host$request_uri;}
>>  deny all;
>>  error_page 403  error403.html;
>>  try_files $uri $uri/ /index.php?q=$uri&$args;
>> }
>>
>>  location ~ \.php$ {
>> try_files $uri =404;
>> fastcgi_split_path_info ^(.+\.php)(/.+)$;
>> fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
>> fastcgi_index index.php;
>> fastcgi_param SCRIPT_FILENAME $request_filename;
>> include fastcgi_params;
>> }
>>
>> gzip on;
>> gzip_disable "msie6";
>> gzip_comp_level 9;
>> gzip_min_length 1100;
>> gzip_buffers 16 8k;
>> gzip_proxied any;
>> gzip_types
>> text/plain
>> text/css
>> text/js
>> text/xml
>> text/javascript
>> application/javascript
>> application/x-javascript
>> application/json
>> application/xml
>> application/xml+rss;
>>
>> On Thu, Jul 26, 2018 at 2:56 PM, Georgi Naplatanov  wrote:
>>> On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
> What happened after you did what the warning message suggested to do?

 502 gateway timeout
>>>
>>> Can you attach your PHP-FPM configuration file and NginX virtual host
>>> section for the site?
>>>
>>> Which Debian branch are you using - stable, testing or unstable? Where
>>> did you get PHP 7.2 packages from ?
>>>
>>> Kind regards
>>> Georgi
>>>
 On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
  wrote:
> Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
>
>> we are receiving an error as below. what is the cause of the problem?
>> (32g ram , 240g ssd , xeon 8 cor cpu)
>>
>> WARNING: [pool www] seems busy (you may need to increase
>> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
>> there are 1 idle, and 143 total children
>
> What happened after you did what the warning message suggested to do?
>
> --
> Regards
>   mk
>

>>>
>



Re: fpm problem

2018-07-26 Thread Gokan Atmaca
> Could it be that starting 4000 fpm processes eats up all your resources
> and starting the fpm-master process fails? Can you please check if the
> php7.2-fpm service is running?

Yes , services running...

> Can you try something like this?
>
> pm = dynamic
> pm.max_children = 250
> pm.start_servers = 25
> pm.min_spare_servers = 15
> pm.max_spare_servers = 30

fpm, 8 mb per transaction. 32g ram... I have 32G RAM. I just want to
use 24g ram.

24576/8 = 3072 (pm.max.child)
is this logic wrong?


S   UID   PID  PPID  C PRI  NI   RSSSZ WCHAN  TTY  TIME CMD
S33  9343   594  0  80   0  5336 40706 SyS_ep ?00:00:00 nginx
S33  9344   594  0  80   0  5336 40706 SyS_ep ?00:00:00 nginx
S33  9345   594  0  80   0  5336 40706 SyS_ep ?00:00:00 nginx
S33  9347   594  0  80   0  5336 40706 SyS_ep ?00:00:00 nginx
S33  9348   594  0  80   0  5336 40706 SyS_ep ?00:00:00 nginx
S33  9349   594  0  80   0  5336 40706 SyS_ep ?00:00:00 nginx
S33  9346   594  0  80   0  6324 40706 SyS_ep ?00:00:00 nginx
S33  9342   594  0  80   0  7004 40772 SyS_ep ?00:00:00 nginx
S33  4828  4792  0  80   0  7400 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4829  4792  0  80   0  7400 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4830  4792  0  80   0  7400 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4831  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4832  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4833  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4834  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4835  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4836  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4837  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4838  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4839  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4840  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4841  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4842  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4843  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4844  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4845  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4846  4792  0  80   0  7404 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4847  4792  0  80   0  7408 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4848  4792  0  80   0  7408 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4849  4792  0  80   0  7408 87637 skb_wa ?00:00:00 php-fpm7.2
S33  4850  4792  0  80   0  7408 87637 skb_wa ?00:00:00 php-fpm7.2


On Thu, Jul 26, 2018 at 4:00 PM, Jens Sauer  wrote:
> Am Donnerstag, den 26.07.2018, 15:37 +0300 schrieb Gokan Atmaca:
>> > Can you attach your PHP-FPM configuration file and NginX virtual
>> > host
>> > section for the site?
>>
>> Hello
>>
>> Debian stable (strech).
>>
>> packages:
>>  php7.2-fpm
>> 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
>> server-side, HTML-embedded scripting language (FPM-CGI binary)
>> nginx   1.10.3-1+deb9u1
>>  all  small, powerful, scalable web/proxy server
>>
>
> This php7.2-fpm package is definitely not from the stable repository.
> php7.2 is not available in stretch and the latest php7.0-fpm version
> is 7.0.30-0+deb9u1
>
>> Fpm config:
>>
>> [www]
>> user = www-data
>> group = www-data
>> listen = /run/php/php7.2-fpm.sock
>> listen.owner = www-data
>> listen.group = www-data
>> pm = dynamic
>> pm.max_children = 5000
>> pm.start_servers = 4000
>> pm.min_spare_servers = 4000
>> pm.max_spare_servers = 5000
>
> Could it be that starting 4000 fpm processes eats up all your resources
> and starting the fpm-master process fails? Can you please check if the
> php7.2-fpm service is running?
>
> Can you try something like this?
>
> pm = dynamic
> pm.max_children = 250
> pm.start_servers = 25
> pm.min_spare_servers = 15
> pm.max_spare_servers = 30
>
>> -- Nginx config:
>>
>> server {
>> listen 80;
>>
>> root /home/website/;
>> index index.php index.html index.htm;
>> client_max_body_size 256M;
>> server_name y.br
>>
>>
>>
>> location = /favicon.ico {
>> log_not_found off;
>> access_log off;
>>}
>>
>>
>> if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
>>   return 403;
>>  }
>>
>>
>> location ~*
>> \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
>>  expires 365d;
>>  add_header Cache-Control "public";
>>}
>>
>>
>> location ~* \.(?:css|js)$ {
>>   expires 1y;
>>   access_log off;
>>   add

Re: fpm problem

2018-07-26 Thread Georgi Naplatanov
On 07/26/2018 03:37 PM, Gokan Atmaca wrote:
>> Can you attach your PHP-FPM configuration file and NginX virtual host
>> section for the site?
> 
> Hello
> 
> Debian stable (strech).
> 
> packages:
>  php7.2-fpm
> 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
> server-side, HTML-embedded scripting language (FPM-CGI binary)
> nginx   1.10.3-1+deb9u1
>  all  small, powerful, scalable web/proxy server
> 
> Fpm config:
> 
> [www]
> user = www-data
> group = www-data
> listen = /run/php/php7.2-fpm.sock
> listen.owner = www-data
> listen.group = www-data
> pm = dynamic
> pm.max_children = 5000
> pm.start_servers = 4000
> pm.min_spare_servers = 4000
> pm.max_spare_servers = 50> --- Nginx config:

The configuration is set for very high load. You've used Unix sockets.

My advice is :

 - try to use TCP/IP for communication between FPM and NginX

Kind regards
Georgi

> 
> server {
> listen 80;
> 
> root /home/website/;
> index index.php index.html index.htm;
> client_max_body_size 256M;
> server_name y.br
> 
> 
> 
> location = /favicon.ico {
> log_not_found off;
> access_log off;
>}
> 
> 
> if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
>   return 403;
>  }
> 
> 
> location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
>  expires 365d;
>  add_header Cache-Control "public";
>}
> 
> 
> location ~* \.(?:css|js)$ {
>   expires 1y;
>   access_log off;
>   add_header Cache-Control "public";
> }
> 
> 
>  location / {
> try_files $uri $uri/ /index.php?q=$uri&$args;
> 
> 
> }
> 
> location /my{
>  allow x.x.x.x;
>  allow x.x.x.x;
>  if ($scheme = http) {  return 301 https://$host$request_uri;}
>  deny all;
>  error_page 403  error403.html;
>  try_files $uri $uri/ /index.php?q=$uri&$args;
> }
> 
>  location ~ \.php$ {
> try_files $uri =404;
> fastcgi_split_path_info ^(.+\.php)(/.+)$;
> fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME $request_filename;
> include fastcgi_params;
> }
> 
> gzip on;
> gzip_disable "msie6";
> gzip_comp_level 9;
> gzip_min_length 1100;
> gzip_buffers 16 8k;
> gzip_proxied any;
> gzip_types
> text/plain
> text/css
> text/js
> text/xml
> text/javascript
> application/javascript
> application/x-javascript
> application/json
> application/xml
> application/xml+rss;
> 
> On Thu, Jul 26, 2018 at 2:56 PM, Georgi Naplatanov  wrote:
>> On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
 What happened after you did what the warning message suggested to do?
>>>
>>> 502 gateway timeout
>>
>> Can you attach your PHP-FPM configuration file and NginX virtual host
>> section for the site?
>>
>> Which Debian branch are you using - stable, testing or unstable? Where
>> did you get PHP 7.2 packages from ?
>>
>> Kind regards
>> Georgi
>>
>>> On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
>>>  wrote:
 Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:

> we are receiving an error as below. what is the cause of the problem?
> (32g ram , 240g ssd , xeon 8 cor cpu)
>
> WARNING: [pool www] seems busy (you may need to increase
> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
> there are 1 idle, and 143 total children

 What happened after you did what the warning message suggested to do?

 --
 Regards
   mk

>>>
>>



Re: fpm problem

2018-07-26 Thread Jens Sauer
Am Donnerstag, den 26.07.2018, 15:37 +0300 schrieb Gokan Atmaca:
> > Can you attach your PHP-FPM configuration file and NginX virtual
> > host
> > section for the site?
> 
> Hello
> 
> Debian stable (strech).
> 
> packages:
>  php7.2-fpm
> 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
> server-side, HTML-embedded scripting language (FPM-CGI binary)
> nginx   1.10.3-1+deb9u1
>  all  small, powerful, scalable web/proxy server
> 

This php7.2-fpm package is definitely not from the stable repository.
php7.2 is not available in stretch and the latest php7.0-fpm version
is 7.0.30-0+deb9u1

> Fpm config:
> 
> [www]
> user = www-data
> group = www-data
> listen = /run/php/php7.2-fpm.sock
> listen.owner = www-data
> listen.group = www-data
> pm = dynamic
> pm.max_children = 5000
> pm.start_servers = 4000
> pm.min_spare_servers = 4000
> pm.max_spare_servers = 5000

Could it be that starting 4000 fpm processes eats up all your resources
and starting the fpm-master process fails? Can you please check if the
php7.2-fpm service is running?

Can you try something like this?

pm = dynamic
pm.max_children = 250
pm.start_servers = 25
pm.min_spare_servers = 15
pm.max_spare_servers = 30

> -- Nginx config:
> 
> server {
> listen 80;
> 
> root /home/website/;
> index index.php index.html index.htm;
> client_max_body_size 256M;
> server_name y.br
> 
> 
> 
> location = /favicon.ico {
> log_not_found off;
> access_log off;
>    }
> 
> 
> if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
>   return 403;
>  }
> 
> 
> location ~*
> \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
>  expires 365d;
>  add_header Cache-Control "public";
>    }
> 
> 
> location ~* \.(?:css|js)$ {
>   expires 1y;
>   access_log off;
>   add_header Cache-Control "public";
> }
> 
> 
>  location / {
> try_files $uri $uri/ /index.php?q=$uri&$args;
> 
> 
> }
> 
> location /my{
>  allow x.x.x.x;
>  allow x.x.x.x;
>  if ($scheme = http) {  return 301 https://$host$request_uri;}
>  deny all;
>  error_page 403  error403.html;
>  try_files $uri $uri/ /index.php?q=$uri&$args;
> }
> 
>  location ~ \.php$ {
> try_files $uri =404;
> fastcgi_split_path_info ^(.+\.php)(/.+)$;
> fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME $request_filename;
> include fastcgi_params;
> }
> 
> gzip on;
> gzip_disable "msie6";
> gzip_comp_level 9;
> gzip_min_length 1100;
> gzip_buffers 16 8k;
> gzip_proxied any;
> gzip_types
> text/plain
> text/css
> text/js
> text/xml
> text/javascript
> application/javascript
> application/x-javascript
> application/json
> application/xml
> application/xml+rss;
> 
> On Thu, Jul 26, 2018 at 2:56 PM, Georgi Naplatanov 
> wrote:
> > On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
> > > > What happened after you did what the warning message suggested
> > > > to do?
> > > 
> > > 502 gateway timeout
> > 
> > Can you attach your PHP-FPM configuration file and NginX virtual
> > host
> > section for the site?
> > 
> > Which Debian branch are you using - stable, testing or unstable?
> > Where
> > did you get PHP 7.2 packages from ?
> > 
> > Kind regards
> > Georgi
> > 
> > > On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
> > >  wrote:
> > > > Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
> > > > 
> > > > > we are receiving an error as below. what is the cause of the
> > > > > problem?
> > > > > (32g ram , 240g ssd , xeon 8 cor cpu)
> > > > > 
> > > > > WARNING: [pool www] seems busy (you may need to increase
> > > > > pm.start_servers, or pm.min/max_spare_servers), spawning 32
> > > > > children,
> > > > > there are 1 idle, and 143 total children
> > > > 
> > > > What happened after you did what the warning message suggested
> > > > to do?
> > > > 
> > > > --
> > > > Regards
> > > >   mk
> > > > 
> 
> 
-- 
Jens Sauer 

smime.p7s
Description: S/MIME cryptographic signature


Re: fpm problem

2018-07-26 Thread Gokan Atmaca
> Can you attach your PHP-FPM configuration file and NginX virtual host
> section for the site?

Hello

Debian stable (strech).

packages:
 php7.2-fpm
7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
server-side, HTML-embedded scripting language (FPM-CGI binary)
nginx   1.10.3-1+deb9u1
 all  small, powerful, scalable web/proxy server

Fpm config:

[www]
user = www-data
group = www-data
listen = /run/php/php7.2-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 5000
pm.start_servers = 4000
pm.min_spare_servers = 4000
pm.max_spare_servers = 5000

--- Nginx config:

server {
listen 80;

root /home/website/;
index index.php index.html index.htm;
client_max_body_size 256M;
server_name y.br



location = /favicon.ico {
log_not_found off;
access_log off;
   }


if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
  return 403;
 }


location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
 expires 365d;
 add_header Cache-Control "public";
   }


location ~* \.(?:css|js)$ {
  expires 1y;
  access_log off;
  add_header Cache-Control "public";
}


 location / {
try_files $uri $uri/ /index.php?q=$uri&$args;


}

location /my{
 allow x.x.x.x;
 allow x.x.x.x;
 if ($scheme = http) {  return 301 https://$host$request_uri;}
 deny all;
 error_page 403  error403.html;
 try_files $uri $uri/ /index.php?q=$uri&$args;
}

 location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}

gzip on;
gzip_disable "msie6";
gzip_comp_level 9;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/xml+rss;

On Thu, Jul 26, 2018 at 2:56 PM, Georgi Naplatanov  wrote:
> On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
>>> What happened after you did what the warning message suggested to do?
>>
>> 502 gateway timeout
>
> Can you attach your PHP-FPM configuration file and NginX virtual host
> section for the site?
>
> Which Debian branch are you using - stable, testing or unstable? Where
> did you get PHP 7.2 packages from ?
>
> Kind regards
> Georgi
>
>> On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
>>  wrote:
>>> Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
>>>
 we are receiving an error as below. what is the cause of the problem?
 (32g ram , 240g ssd , xeon 8 cor cpu)

 WARNING: [pool www] seems busy (you may need to increase
 pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
 there are 1 idle, and 143 total children
>>>
>>> What happened after you did what the warning message suggested to do?
>>>
>>> --
>>> Regards
>>>   mk
>>>
>>
>



Cross-Platform Assembly Language Compilers?

2018-07-26 Thread cyaiplexys
Thanks to a very nostalgic thread, now I'm curious about something else. 
Back in the day I used to do assembly language programming on a Tandy 
Color Computer 3 with Disk-based EDASM+.


I'm wondering what is the best assembler/compiler for the x86 (64-bit) 
system?


I'd like to try a native compiler but also I would like to have 
something I could compile for Arduino (here we go again) and ARM and 
other CPUs as well.


However, for now I'd like to just stick to x86. I would imagine that 
would be easiest since I could test right on the laptop. And it's 
something I've always wanted to learn.


I don't plan to really do anything major with it (we have C, Python, 
Perl and a host of other languages for real programs).




Re: If not "newbie" then ????

2018-07-26 Thread cyaiplexys
This is taking me down a memory lane I don't necessarily have but have 
heard about! Ah, the early days of computers!


On 07/23/2018 05:14 AM, Erik Christiansen wrote:

On 23.07.18 10:28, Eric S Fraga wrote:

On Sunday, 22 Jul 2018 at 05:39, Tom Browder wrote:

Sounds like there are a lot of fellow travelers here.  If you lean
more towards loving programming as I do (started in FORTRAN IV in
1961), you might check out the new world of Perl 6 (https://perl6.org)


Interesting.  I started way back when with FORTRAN 66 and APL but I have
moved on to Julia (julialang.org) these days.


In 1972 we were still submitting FORTRAN IV jobs on Hollerith punched
cards, to run on an ICL1901 24-bit mainframe, which half-filled a room
with its fridge-sized chain printer and big card reader and disk drives.

But the electrical engineering department had its own little HP2100A
16-bit minicomputer, with 16k words of 980 ns ferrite core memory. (Very
spiffy stuff, back then.) If you overwrote the punched tape bootloader
in the first dozen words or so of RAM, then you had to load it by hand
from the frontpanel switch register, word by word, in octal.

The three-chip 8080A CPU had become the single-chip 8085 by the time I
programmed it, before moving to the 8051 microcontroller, but sprinkling
13 of 'em in a system, 12 mask programmed, so no coding errors permitted,

My first home CPU was a TMS9900, which like the COSMAC had 16 x 16 bit
registers, but not on-chip. A pointer register set the location of the
register workspace in RAM, so that on interrupt or subroutine call,
changing one register gave a new set of registers instantly. It also had
a barrel shifter, rotating a register any number of bits in a single
instruction, optionally controlled by the 4 LSBs of R0. (Magic for
computing sine and cos by the CORDIC method.) And it had 16x16 multiply
and 32/16 divide.

But the contemporary COSMAC was well ahead of its time - a CMOS CPU in 1976.

Erik


This sounds a lot like a friend of mine who is much older than me, who 
used punch cards. Luckily I was a teen in the dawn of the 
microscomputing age. It was mostly cassette tape and for the rich and 
well off, the 5.25" floppy disk drive. I never encountered punch cards. 
I bet it was a PITA compared to today.


This also reminds me of the old days of assembly language programming on 
the CoCo 3 (68B09E CPU) using disk EDASAM+ I actually did a good bit of 
that (pun half intended).


Never learned x86 assembly.

I'm going to start another thread (much more on Debian topic I hope) 
about assemblers, as I'm curious about that too.


I guess I get curious about everything. See what you guys started? :P



Re: If not "newbie" then ????

2018-07-26 Thread cyaiplexys

On 07/22/2018 03:06 PM, Richard Owlett wrote:

On 07/22/2018 10:04 AM, cyaiplexys wrote:

On 07/21/2018 09:43 PM, Gene Heskett wrote:

Best wishes to you as well. I hope that I'm still playing around with 
this stuff at that age. I remember taking an online C++ course years 
ago and there was another student in the class that was 92. He was 
taking the course to help him stave off Alzheimer's! He did really 
good too. As for me, I got a 100% on my final exam. And here I am 
still not great at C or C++. No I didn't cheat. Brain cells up and 
aged on me since then!



The summer between my high school junior and senior years I had the 
opportunity to take a college level physics course. One of my classmates 
was positively elderly, being older than my parents - twas 70+ ;/


More seriously, for benefit of lurking "young whipper-snappers", stay 
physically *AND* mentally active. My mother, who got her RN in the 20's, 
did volunteer work at the Church Home and with social services outreach 
to children into her 90's. That kept her physically/socially active. As 
to mentally acuity, she pursued crossword puzzles, challenging my 
brother-in-law, a tenured full professor of history.


End of lecture.  *THINK*


I will take that advice to heart seriously. To you, I'm still a "young 
whipper-snapper" even at my age. :) I agree that keeping one's mind 
occupied keeps it sharp. Which is another reason I'll always be 
programming *something*. Back in the day I would try to learn everything 
about computers that I could. Even some rather odd and esoteric 
languages (like Liberty Basic and another not at all well known language 
called "euphoria" 
(https://en.wikipedia.org/wiki/Euphoria_(programming_language) way back 
when it first came out. That was a very interesting experience to say 
the least!


Ironically I never even tried Fortran, Cobol or Lisp. There's a good 
many out there I never even tried (yet, still).


Now I seem to be rather stuck to Python like I was with Visual Basic. 
Python is portable as well and with cython, one can compile to a binary 
(though I don't really do that with 99.999% of my Python scripts).





Re: fpm problem

2018-07-26 Thread Georgi Naplatanov
On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
>> What happened after you did what the warning message suggested to do?
> 
> 502 gateway timeout

Can you attach your PHP-FPM configuration file and NginX virtual host
section for the site?

Which Debian branch are you using - stable, testing or unstable? Where
did you get PHP 7.2 packages from ?

Kind regards
Georgi

> On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
>  wrote:
>> Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
>>
>>> we are receiving an error as below. what is the cause of the problem?
>>> (32g ram , 240g ssd , xeon 8 cor cpu)
>>>
>>> WARNING: [pool www] seems busy (you may need to increase
>>> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
>>> there are 1 idle, and 143 total children
>>
>> What happened after you did what the warning message suggested to do?
>>
>> --
>> Regards
>>   mk
>>
> 



Re: fpm problem

2018-07-26 Thread Gokan Atmaca
> What happened after you did what the warning message suggested to do?

502 gateway timeout

On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
 wrote:
> Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
>
>> we are receiving an error as below. what is the cause of the problem?
>> (32g ram , 240g ssd , xeon 8 cor cpu)
>>
>> WARNING: [pool www] seems busy (you may need to increase
>> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
>> there are 1 idle, and 143 total children
>
> What happened after you did what the warning message suggested to do?
>
> --
> Regards
>   mk
>



Re: fpm problem

2018-07-26 Thread Markus Schönhaber
Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:

> we are receiving an error as below. what is the cause of the problem?
> (32g ram , 240g ssd , xeon 8 cor cpu)
> 
> WARNING: [pool www] seems busy (you may need to increase
> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
> there are 1 idle, and 143 total children

What happened after you did what the warning message suggested to do?

-- 
Regards
  mk



Re: Select between 686-pae and amd64 kernel in Grub?

2018-07-26 Thread floris

Reiner Buehl schreef op 2018-07-25 19:51:

Many thanks, Floris! With your expression I now see the other options:

bilbo:~# awk -F"'" '/menuentry/ {print $2}' /boot/grub/grub.cfg

Debian GNU/Linux

Advanced options for Debian GNU/Linux

Debian GNU/Linux, with Linux 4.9.0-7-686-pae

Debian GNU/Linux, with Linux 4.9.0-7-686-pae (sysvinit)

Debian GNU/Linux, with Linux 4.9.0-7-686-pae (recovery mode)

Debian GNU/Linux, with Linux 4.9.0-7-amd64

Debian GNU/Linux, with Linux 4.9.0-7-amd64 (sysvinit)

Debian GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode)

Debian GNU/Linux, with Linux 4.9.0-6-686-pae

Debian GNU/Linux, with Linux 4.9.0-6-686-pae (sysvinit)

Debian GNU/Linux, with Linux 4.9.0-6-686-pae (recovery mode)

Debian GNU/Linux, with Linux 4.9.0-5-686-pae

Debian GNU/Linux, with Linux 4.9.0-5-686-pae (sysvinit)

Debian GNU/Linux, with Linux 4.9.0-5-686-pae (recovery mode)

Do you know if just specifying "Debian GNU/Linux, with Linux
4.9.0-7-amd64" as option to grub-set-default is enough or do I need to
somehow "navigate" into the "Advanced options for Debian GNU/Linux"
sub menu?

Best regards,

Reiner


From grub-set-default --help
 Usage: grub-set-default [OPTION] MENU_ENTRY
 MENU_ENTRY is a number, a menu item title or a menu item identifier.

Specifying "Debian GNU/Linux, with Linux 4.9.0-7-amd64" should be 
enough.


---
Floris



Re: fpm problem

2018-07-26 Thread Gokan Atmaca
> we are receiving an error as below. what is the cause of the problem?
> (32g ram , 240g ssd , xeon 8 cor cpu)

nginx 1.10 version and php7.2-fpm...


On Thu, Jul 26, 2018 at 9:46 AM, Gokan Atmaca  wrote:
> Hello
>
> we are receiving an error as below. what is the cause of the problem?
> (32g ram , 240g ssd , xeon 8 cor cpu)
>
> WARNING: [pool www] seems busy (you may need to increase
> pm.start_servers, or pm.min/max_spare_servers), spawning 32 children,
> there are 1 idle, and 143 total children