Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on ubuntu #85

Open
mxmkmarquette opened this issue Nov 1, 2019 · 8 comments
Open

on ubuntu #85

mxmkmarquette opened this issue Nov 1, 2019 · 8 comments

Comments

@mxmkmarquette
Copy link

mxmkmarquette commented Nov 1, 2019

##################################
Compilation summary
##################################

Detected OS : Ubuntu 18.04.3 LTS
Detected Arch : x86_64

  • Nginx release : 1.17.5

  • LIBRESSL : YES

  • Dynamic modules YES

  • Pagespeed : beta

  • Naxsi : NO

  • RTMP : NO

  • Plesk : YES

    Installing dependencies [OK]
    Installing gcc-8 [OK]
    Downloading additionals modules [OK]
    Downloading zlib [OK]
    Downloading brotli [OK]
    Downloading LibreSSL [OK]
    Downloading pagespeed [FAIL]

    Please look at /tmp/nginx-ee.log

`
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11).
automake is already the newest version (1:1.15.1-3ubuntu2).
autotools-dev is already the newest version (20180224.1).
build-essential is already the newest version (12.4ubuntu1).
libbsd-dev is already the newest version (0.8.7-1).
libgeoip-dev is already the newest version (1.6.12-1).
libgmp-dev is already the newest version (2:6.1.2+dfsg-2).
libgoogle-perftools-dev is already the newest version (2.5-2.2ubuntu3).
libreadline-dev is already the newest version (7.0-3).
libtool is already the newest version (2.4.6-2).
libbz2-ocaml is already the newest version (0.6.0-7build2).
libbz2-ocaml-dev is already the newest version (0.6.0-7build2).
libjemalloc-dev is already the newest version (3.6.0-11).
dpkg-dev is already the newest version (1.19.0.5ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.4).
gnupg is already the newest version (2.2.4-1ubuntu1.2).
libbz2-1.0 is already the newest version (1.0.6-8.1ubuntu0.2).
libbz2-dev is already the newest version (1.0.6-8.1ubuntu0.2).
libgd-dev is already the newest version (2.2.5-4ubuntu0.3).
libpam0g-dev is already the newest version (1.1.8-3.6ubuntu2.18.04.1).
libperl-dev is already the newest version (5.26.1-6ubuntu0.3).
libxml2-dev is already the newest version (2.9.4+dfsg1-6.1ubuntu1.2).
perl is already the newest version (5.26.1-6ubuntu0.3).
software-properties-common is already the newest version (0.96.24.32.11).
tar is already the newest version (1.29b-2ubuntu0.1).
gnupg2 is already the newest version (2.2.4-1ubuntu1.2).
libbrotli-dev is already the newest version (1.0.7-2+ppa+stable+1).
libpcre3-dev is already the newest version (2:8.43-1ppa~stable).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
### downloading additionals modules ###
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
From https://github.com/masonicboom/ipscrub
 * branch            master     -> FETCH_HEAD
Already up to date.
### additionals modules downloaded ###
### git pull zlib-cf ###
fatal: not a git repository (or any of the parent directories): .git
### cloning zlib-cf ###
fatal: destination path '/usr/local/src/zlib-cf' already exists and is not an empty directory.
### make distclean ###
rm -f *.o *.lo *~ \
   example minigzip examplesh minigzipsh \
   example64 minigzip64 \
   infcover \
   libz.* foo.gz so_locations \
   _match.s maketree contrib/infback9/*.o
rm -rf objs
rm -f *.gcda *.gcno *.gcov
rm -f contrib/infback9/*.gcda contrib/infback9/*.gcno contrib/infback9/*.gcov
cp -p zconf.h.in zconf.h
rm -f Makefile zlib.pc configure.log
### configure zlib-cf ###
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
Checking for CRC and SSE4.2 support ... Yes
Checking for PCLMUL support ... Yes
--2019-11-01 11:54:43--  https://raw.githubusercontent.com/pagespeed/ngx_pagespeed/master/scripts/build_ngx_pagespeed.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27171 (27K) [text/plain]
Saving to: ‘build_ngx_pagespeed.sh’

     0K .......... .......... ......                          100% 20.6M=0.001s

2019-11-01 11:54:43 (20.6 MB/s) - ‘build_ngx_pagespeed.sh’ saved [27171/27171]

�[32mDetected debian-based distro.
�[0mdpkg-query: no packages found matching uuid-dev
�[32mDetected that we're missing the following depencencies:
�[0m  uuid-dev 
�[32mInstalling them:
�[0mroot is not in the sudoers file.  This incident will be reported.
�[31mError: �[0mFailure running 'sudo apt-get install uuid-dev', exiting.
`
@mxmkmarquette
Copy link
Author

##################################
Compilation summary
##################################

Detected OS : Ubuntu 18.04.3 LTS
Detected Arch : x86_64

  • Nginx release : 1.17.5

  • OPENSSL : 3.0.0-dev

  • Dynamic modules YES

  • Pagespeed : NO

  • Naxsi : NO

  • RTMP : NO

  • Plesk : YES

    Installing dependencies [OK]
    Installing gcc-8 [OK]
    Downloading additionals modules [OK]
    Downloading zlib [OK]
    Downloading brotli [OK]
    Downloading openssl [FAIL] [..]

    Please look at /tmp/nginx-ee.log

`
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11).
automake is already the newest version (1:1.15.1-3ubuntu2).
autotools-dev is already the newest version (20180224.1).
build-essential is already the newest version (12.4ubuntu1).
libbsd-dev is already the newest version (0.8.7-1).
libgeoip-dev is already the newest version (1.6.12-1).
libgmp-dev is already the newest version (2:6.1.2+dfsg-2).
libgoogle-perftools-dev is already the newest version (2.5-2.2ubuntu3).
libreadline-dev is already the newest version (7.0-3).
libtool is already the newest version (2.4.6-2).
libbz2-ocaml is already the newest version (0.6.0-7build2).
libbz2-ocaml-dev is already the newest version (0.6.0-7build2).
libjemalloc-dev is already the newest version (3.6.0-11).
dpkg-dev is already the newest version (1.19.0.5ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.4).
gnupg is already the newest version (2.2.4-1ubuntu1.2).
libbz2-1.0 is already the newest version (1.0.6-8.1ubuntu0.2).
libbz2-dev is already the newest version (1.0.6-8.1ubuntu0.2).
libgd-dev is already the newest version (2.2.5-4ubuntu0.3).
libpam0g-dev is already the newest version (1.1.8-3.6ubuntu2.18.04.1).
libperl-dev is already the newest version (5.26.1-6ubuntu0.3).
libxml2-dev is already the newest version (2.9.4+dfsg1-6.1ubuntu1.2).
perl is already the newest version (5.26.1-6ubuntu0.3).
software-properties-common is already the newest version (0.96.24.32.11).
tar is already the newest version (1.29b-2ubuntu0.1).
gnupg2 is already the newest version (2.2.4-1ubuntu1.2).
libbrotli-dev is already the newest version (1.0.7-2+ppa+stable+1).
libpcre3-dev is already the newest version (2:8.43-1ppa~stable).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

downloading additionals modules

Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
Already up to date.
From https://github.com/masonicboom/ipscrub

  • branch master -> FETCH_HEAD
    Already up to date.

additionals modules downloaded

git pull zlib-cf

fatal: not a git repository (or any of the parent directories): .git

cloning zlib-cf

fatal: destination path '/usr/local/src/zlib-cf' already exists and is not an empty directory.

make distclean

rm -f .o .lo *~
example minigzip examplesh minigzipsh
example64 minigzip64
infcover
libz.
foo.gz so_locations
_match.s maketree contrib/infback9/
.o
rm -rf objs
rm -f .gcda .gcno .gcov
rm -f contrib/infback9/
.gcda contrib/infback9/
.gcno contrib/infback9/
.gcov
cp -p zconf.h.in zconf.h
rm -f Makefile zlib.pc configure.log

configure zlib-cf

Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.8 with gcc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for strerror... Yes.
Checking for unistd.h... Yes.
Checking for stdarg.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for attribute(visibility) support... Yes.
Checking for CRC and SSE4.2 support ... Yes
Checking for PCLMUL support ... Yes

reset openssl to master and clean patches

Fetching origin
HEAD is now at 6624e1f7 Fix potential memory leak in dh_ameth.c
Removing crypto/err/openssl.txt.orig
Removing include/openssl/sslerr.h.orig
Removing ssl/s3_lib.c.orig
Removing ssl/ssl_ciph.c.orig
Removing ssl/ssl_ciph.c.rej
Removing ssl/ssl_err.c.orig
Removing ssl/ssl_lib.c.orig
Removing ssl/statem/statem_srvr.c.orig
fatal: reference is not a tree: 3bbec1afed1c65b6f7f645b27808b070e6e7a509
From https://github.com/VirtuBox/openssl-patch

  • branch master -> FETCH_HEAD
    Already up to date.

openssl ciphers patch

patching file crypto/err/openssl.txt
Hunk #1 succeeded at 3023 (offset 80 lines).
Hunk #2 succeeded at 3131 (offset 80 lines).
can't find file to patch at input line 28
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/doc/man1/ciphers.pod b/doc/man1/ciphers.pod
|index e29c5d7ced..7d795c390e 100644
|--- a/doc/man1/ciphers.pod
|+++ b/doc/man1/ciphers.pod

File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
patching file include/openssl/sslerr.h
Hunk #1 succeeded at 609 (offset 8 lines).
Hunk #2 succeeded at 741 (offset 8 lines).
patching file ssl/s3_lib.c
Hunk #9 succeeded at 4117 (offset 1 line).
Hunk #10 succeeded at 4137 (offset 1 line).
Hunk #11 succeeded at 4181 (offset 1 line).
Hunk #12 succeeded at 4218 (offset 1 line).
Hunk #13 succeeded at 4249 (offset 1 line).
Hunk #14 succeeded at 4268 (offset 1 line).
Hunk #15 succeeded at 4283 (offset 1 line).
Hunk #16 succeeded at 4295 (offset 1 line).
patching file ssl/ssl_ciph.c
Hunk #16 FAILED at 1441.
Hunk #17 FAILED at 1454.
Hunk #18 succeeded at 1464 (offset 1 line).
Hunk #19 succeeded at 1526 (offset 1 line).
Hunk #20 succeeded at 1544 (offset 1 line).
Hunk #21 succeeded at 1558 (offset 1 line).
Hunk #22 succeeded at 1583 (offset 1 line).
Hunk #23 succeeded at 1599 (offset 1 line).
Hunk #24 succeeded at 1624 (offset 1 line).
Hunk #25 succeeded at 1650 (offset 1 line).
Hunk #26 succeeded at 1674 (offset 1 line).
2 out of 26 hunks FAILED -- saving rejects to file ssl/ssl_ciph.c.rej
patching file ssl/ssl_err.c
Hunk #1 succeeded at 255 (offset -712 lines).
Hunk #2 succeeded at 492 (offset -712 lines).
patching file ssl/ssl_lib.c
Hunk #1 succeeded at 1127 (offset 5 lines).
Hunk #2 succeeded at 1236 (offset 5 lines).
Hunk #3 succeeded at 2632 (offset 3 lines).
Hunk #4 succeeded at 2708 (offset 3 lines).
Hunk #5 succeeded at 3157 (offset 3 lines).
Hunk #6 succeeded at 3333 (offset 3 lines).
Hunk #7 succeeded at 4009 (offset 3 lines).
can't find file to patch at input line 1018
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
|index a61987f327..e03be541e1 100644
|--- a/ssl/ssl_locl.h
|+++ b/ssl/ssl_locl.h

File to patch:
Skip this patch? [y]
Skipping patch.
5 out of 5 hunks ignored
patching file ssl/statem/statem_srvr.c
Hunk #4 succeeded at 2255 (offset -2 lines).
`

@VirtuBox
Copy link
Owner

VirtuBox commented Nov 1, 2019

Compilation with OpenSSL-3.0.0-dev isn't up-to-date.

But compilation with pagespeed beta, openssl and libressl is working properly on my side.

asciicast

And it's also working with Github Actions CI : https://github.com/VirtuBox/nginx-ee/runs/285477331

There is an issue on your server, because user root should be in sudoers by default.

@mxmkmarquette
Copy link
Author

on debian it do not work with openssl3.0.0 that i can tel

there this error in the process

can't find file to patch at input line 28
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

i can give you access to my server with have plesk install on it and not wordops and else

@VirtuBox
Copy link
Owner

VirtuBox commented Nov 5, 2019

OpenSSL_3.0.0-dev patch isn't up-to-date, I will update the script in the next few days.
But it should work with other options.

@TaktlosDE
Copy link

I think this error is only with plesk obsidian.

Getting following error on debian 9 with plesk obisian:

`
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
autoconf ist schon die neueste Version (2.69-10).
automake ist schon die neueste Version (1:1.15-6).
autotools-dev ist schon die neueste Version (20161112.1).
build-essential ist schon die neueste Version (12.3).
libbz2-1.0 ist schon die neueste Version (1.0.6-8.1).
libbz2-dev ist schon die neueste Version (1.0.6-8.1).
libbz2-ocaml ist schon die neueste Version (0.6.0-7).
libbz2-ocaml-dev ist schon die neueste Version (0.6.0-7).
dpkg-dev ist schon die neueste Version (1.18.25).
libgeoip-dev ist schon die neueste Version (1.6.9-4).
git ist schon die neueste Version (1:2.11.0-3+deb9u4).
libgmp-dev ist schon die neueste Version (2:6.1.2+dfsg-1).
gnupg ist schon die neueste Version (2.1.18-8deb9u4).
gnupg2 ist schon die neueste Version (2.1.18-8
deb9u4).
libgoogle-perftools-dev ist schon die neueste Version (2.5-2.2).
libjemalloc-dev ist schon die neueste Version (3.6.0-9.1).
libbsd-dev ist schon die neueste Version (0.8.3-1).
libgd-dev ist schon die neueste Version (2.2.4-2+deb9u5).
libtool ist schon die neueste Version (2.4.6-2).
libxml2-dev ist schon die neueste Version (2.9.4+dfsg1-2.2+deb9u2).
libpam0g-dev ist schon die neueste Version (1.1.8-3.6).
libperl-dev ist schon die neueste Version (5.24.1-3+deb9u5).
perl ist schon die neueste Version (5.24.1-3+deb9u5).
libreadline-dev ist schon die neueste Version (7.0-3).
software-properties-common ist schon die neueste Version (0.96.20.2-1).
tar ist schon die neueste Version (1.29b-1.1).
libbrotli-dev ist schon die neueste Version (1.0.7-2+ppa+stable+1).
libpcre3-dev ist schon die neueste Version (2:8.43-1ppa~stable).
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
libssl-dev : Hängt ab von: libssl1.1 (= 1.1.1d-1ppastable) aber 1.1.0l-1deb9u1 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
`

@mxmkmarquette
Copy link
Author

got the same thing

@VirtuBox
Copy link
Owner

I'm investigating on this issue

@VirtuBox
Copy link
Owner

Issue has been fixed with the last release (v3.6.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants