LINUX.ORG.RU

Сообщения Slawka

 

Error! Bad return status for module build on kernel

root@pm:/home/slawka# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
Building for 6.8.4-2-pve 6.8.4-3-pve
Building for architecture amd64
Building initial module for 6.8.4-2-pve
Error! Bad return status for module build on kernel: 6.8.4-2-pve (amd64)
Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 amdgpu-dkms
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Как избавиться от данной ошибки при каждой установки, обновлении?

 ,

Slawka
()

Компиляция php-7.4.19 gd jpeg - syntax error near unexpected token `ZLIB,'

Для php-7.4.19 в gd, нужна поддержка jpeg, пробую собрать ручками, но получаю syntax error near unexpected token `ZLIB,’ Поскажите куда копать zlib-devel стоит

/opt/php74/bin/php -r 'print_r(gd_info());'
Array
(
    [GD Version] => bundled (2.1.0 compatible)
    [FreeType Support] => 1
    [FreeType Linkage] => with freetype
    [GIF Read Support] => 1
    [GIF Create Support] => 1
    [JPEG Support] =>
    [PNG Support] => 1
    [WBMP Support] => 1
    [XPM Support] => 1
    [XBM Support] => 1
    [WebP Support] => 1
    [BMP Support] => 1
    [TGA Read Support] => 1
    [JIS-mapped Japanese Font Support] =>
)

[root@centos69 ~]# tar zxf php-7.4.19.tar.gz
[root@centos69 ~]# cd /root/php-7.4.19/ext/gd
[root@centos69 gd]# ls -alh
total 208K
drwxrwxr-x.  4 root root 4.0K May  4 14:06 .
drwxrwxr-x. 74 root root 4.0K May  4 14:06 ..
-rw-rw-r--.  1 root root 6.3K May  4 14:06 config.m4
-rw-rw-r--.  1 root root 3.5K May  4 14:06 config.w32
-rw-rw-r--.  1 root root  118 May  4 14:06 CREDITS
-rw-rw-r--.  1 root root 133K May  4 14:06 gd.c
-rw-rw-r--.  1 root root  522 May  4 14:06 gd_compat.c
-rw-rw-r--.  1 root root  144 May  4 14:06 gd_compat.h
-rw-rw-r--.  1 root root 6.0K May  4 14:06 gd_ctx.c
drwxrwxr-x.  2 root root 4.0K May  4 14:06 libgd
-rw-rw-r--.  1 root root 6.5K May  4 14:06 php_gd.h
drwxrwxr-x.  2 root root  20K May  4 14:06 tests
[root@centos69 gd]# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
configure.in:150: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:3903: _LT_SYS_MODULE_PATH_AIX is expanded from...
aclocal.m4:7042: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:8117: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:3019: _LT_SETUP is expanded from...
aclocal.m4:2948: LT_INIT is expanded from...
aclocal.m4:2983: AC_PROG_LIBTOOL is expanded from...
configure.in:150: the top level
configure.in:150: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:7042: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:8117: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:3019: _LT_SETUP is expanded from...
aclocal.m4:2948: LT_INIT is expanded from...
aclocal.m4:2983: AC_PROG_LIBTOOL is expanded from...
configure.in:150: the top level
configure.in:3: warning: prefer named diversions
configure.in:150: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:3903: _LT_SYS_MODULE_PATH_AIX is expanded from...
aclocal.m4:7042: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:8117: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:3019: _LT_SETUP is expanded from...
aclocal.m4:2948: LT_INIT is expanded from...
aclocal.m4:2983: AC_PROG_LIBTOOL is expanded from...
configure.in:150: the top level
configure.in:150: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:7042: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:8117: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:3019: _LT_SETUP is expanded from...
aclocal.m4:2948: LT_INIT is expanded from...
aclocal.m4:2983: AC_PROG_LIBTOOL is expanded from...
configure.in:150: the top level
[root@centos69 gd]# ls -alh
total 1.5M
drwxrwxr-x.  6 root root 4.0K May 28 17:45 .
drwxrwxr-x. 74 root root 4.0K May  4 14:06 ..
-rw-r--r--.  1 root root  74K May 28 17:45 acinclude.m4
-rw-r--r--.  1 root root 350K May 28 17:45 aclocal.m4
drwxr-xr-x.  2 root root 4.0K May 28 17:45 autom4te.cache
drwxr-xr-x.  2 root root 4.0K May 28 17:45 build
-rwxr-xr-x.  1 root root  44K May 28 17:45 config.guess
-rw-r--r--.  1 root root 2.3K May 28 17:45 config.h.in
-rw-rw-r--.  1 root root 6.3K May  4 14:06 config.m4
-rwxr-xr-x.  1 root root  33K May 28 17:45 config.sub
-rwxr-xr-x.  1 root root 433K May 28 17:45 configure
-rw-r--r--.  1 root root 4.6K May 28 17:45 configure.in
-rw-rw-r--.  1 root root 3.5K May  4 14:06 config.w32
-rw-rw-r--.  1 root root  118 May  4 14:06 CREDITS
-rw-rw-r--.  1 root root 133K May  4 14:06 gd.c
-rw-rw-r--.  1 root root  522 May  4 14:06 gd_compat.c
-rw-rw-r--.  1 root root  144 May  4 14:06 gd_compat.h
-rw-rw-r--.  1 root root 6.0K May  4 14:06 gd_ctx.c
-rw-r--r--.  1 root root    0 May 28 17:45 install-sh
drwxrwxr-x.  2 root root 4.0K May  4 14:06 libgd
-rw-r--r--.  1 root root 238K May 28 17:45 ltmain.sh
-rw-r--r--.  1 root root 5.4K May 28 17:45 Makefile.global
-rw-r--r--.  1 root root    0 May 28 17:45 missing
-rw-r--r--.  1 root root    0 May 28 17:45 mkinstalldirs
-rw-rw-r--.  1 root root 6.5K May  4 14:06 php_gd.h
-rw-r--r--.  1 root root  68K May 28 17:45 run-tests.php
drwxrwxr-x.  2 root root  20K May  4 14:06 tests
[root@centos69 gd]# ./configure --with-jpeg --with-freetype --with-xpm --with-webp --enable-gd --with-php-config=/opt/php74/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/php74
checking for PHP includes... -I/opt/php74/include/php -I/opt/php74/include/php/main -I/opt/php74/include/php/TSRM -I/opt/php74/include/php/Zend -I/opt/php74/include/php/ext -I/opt/php74/include/php/ext/date/lib
checking for PHP extension directory... /opt/php74/lib/php/modules
checking for PHP installed headers prefix... /opt/php74/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.6 (ok)
checking for gawk... gawk
checking for GD support... yes, shared
checking for external libgd... no
checking for libwebp... yes
checking for libjpeg... yes
checking for libXpm... yes
checking for FreeType 2... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
./configure: line 4274: syntax error near unexpected token `ZLIB,'
./configure: line 4274: `  PKG_CHECK_MODULES(ZLIB, zlib)'

 , , ,

Slawka
()

Ubuntu 20.04 pure-ftp за Openvpn

Проблема такая Авторизация есть, запрос содержимого каталога и все

`Filezila Команда: MLSD

И все таймаут`

В дампе на сервере с ftp tcpdump -i tun3 -A -s0 -nn port 21 or portrange 35000-35999

`23:56:37.261361 IP 213.87.162.125.20563 > 10.1.0.2.35609: Flags [S], seq 2535941766, win 65535, options [mss 1106,nop,wscale 7,nop,nop,sackOK], length 0 E..4i.@.r….W.} …PS…’f…………….R……..

23:56:39.261220 IP 213.87.162.125.20563 > 10.1.0.2.35609: Flags [S], seq 2535941766, win 65535, options [mss 1106,nop,wscale 7,nop,nop,sackOK], length 0 E..4i.@.r….W.} …PS…’f…………….R……..

23:56:43.301753 IP 213.87.162.125.20563 > 10.1.0.2.35609: Flags [S], seq 2535941766, win 65535, options [mss 1106,nop,wscale 7,nop,nop,sackOK], length 0 E..4i.@.r….W.} …PS…’f…………….R……..`

Запросы вижу ответов нет в логах

`Jan 13 22:09:38 eth0 pure-ftpd: (?@10.1.0.1) [DEBUG] Command [user] [defaulttest]

Jan 13 22:09:39 eth0 pure-ftpd: (?@10.1.0.1) [DEBUG] Command [pass] [<*>]

Jan 13 22:09:39 eth0 pure-ftpd: (?@10.1.0.1) [INFO] defaulttest is now logged in

Jan 13 22:09:39 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [opts] [UTF8 ON]

Jan 13 22:09:39 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [pbsz] [0]

Jan 13 22:09:39 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [prot] [P]

Jan 13 22:09:40 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [pwd] []

Jan 13 22:09:40 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [type] [I]

Jan 13 22:09:40 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [pasv] []

Jan 13 22:09:40 eth0 pure-ftpd: (defaulttest@10.1.0.1) [DEBUG] Command [mlsd] []`

firewall отключен везде

ext_ip->10.1.0.1->10.1.0.2(ftp)

 ,

Slawka
()

Centos rsyslog buffer как отключить буфер

Подскажите как отключить буфер в rsyslog (пишем в файл) Пишет но такое ощущение, что есть огромный буфер и его хватает часов на 6.

Подскажите как возможно отключить этот буфер, хочется читать логи онлайн.

Заранее спасибо.


#### MODULES ####

$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# Provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514


#### GLOBAL DIRECTIVES ####

# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# File syncing capability is disabled by default. This feature is usually not required,
# not useful and an extreme performance hit
#$ActionFileEnableSync on

# Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none                /var/log/messages

# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure

# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog


# Log cron stuff
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
*.emerg                                                 *

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log

+192.168.140.10
*.*                                             -/var/log/eltex/72-10.log

+192.168.10.11
*.*                                             -/var/log/eltex/72-11.log

+192.168.10.12
*.*                                             -/var/log/eltex/72-12.log

# ### begin forwarding rule ###
# The statement between the begin ... end define a SINGLE forwarding
# rule. They belong together, do NOT split them. If you create multiple
# forwarding rules, duplicate the whole block!
# Remote Logging (we use TCP for reliable delivery)
#
# An on-disk queue is created for this action. If the remote host is
# down, messages are spooled to disk and sent when it is up again.
#$WorkDirectory /var/lib/rsyslog # where to place spool files
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
#$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
#$ActionQueueType LinkedList   # run asynchronously
#$ActionResumeRetryCount -1    # infinite retries if host is down
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @@remote-host:514
# ### end of the forwarding rule ###

 ,

Slawka
()

RSS подписка на новые темы