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

SSL operation failed with code 1 #43

Open
Smiggel opened this issue Dec 1, 2021 · 15 comments
Open

SSL operation failed with code 1 #43

Smiggel opened this issue Dec 1, 2021 · 15 comments

Comments

@Smiggel
Copy link

Smiggel commented Dec 1, 2021

Having trouble connection to Eweka using SSL. I can not retrieve spots and see this output in the terminal:

PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/spotweb/vendor/spotweb/nntp/src/Protocol/Client.php on line 729

@jgeusebroek
Copy link
Owner

That's weird. What hostname are you using? The docker images uses the latest CA root certificates.

@proddy
Copy link

proddy commented Dec 1, 2021

Eweka and SSL works for me

image

@jgeusebroek
Copy link
Owner

And if you disable verify name; does it work?

@proddy
Copy link

proddy commented Dec 1, 2021

And if you disable verify name; does it work?

yes

@jgeusebroek
Copy link
Owner

Thanks it was meant for @Smiggel . I should have been more clear :)

@Smiggel
Copy link
Author

Smiggel commented Dec 2, 2021

Whoops. Sorry for the late reply. I did not get any notifications. :-)

I tried it again today. I run this docker container on OpenMediaVault 6 (beta). I have no issues with other container running.

Removing Spot information which is beyond retention period,, done
Last retrieve at Thu 01 Jan 1970 01:00:00 AM CET
Retrieving new Spots from server news.eweka.nl...
PHP Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/spotweb/vendor/spotweb/nntp/src/Protocol/Client.php on line 729
PHP Warning: stream_socket_client(): Failed to enable crypto in /var/www/spotweb/vendor/spotweb/nntp/src/Protocol/Client.php on line 729
PHP Warning: stream_socket_client(): Unable to connect to ssl://news.eweka.nl:563 (Unknown error) in /var/www/spotweb/vendor/spotweb/nntp/src/Protocol/Client.php on line 729
SpotWeb v0.68.33.34 on PHP v8.0.13 crashed

Fatal error occured while connecting to the newsserver:
(-1) Error while connecting to server (server did not respond) [response: ""] [response: ""]

#0 /var/www/spotweb/lib/services/Nntp/Services_Nntp_Engine.php(143): Services_Nntp_Engine->connect()
#1 /var/www/spotweb/lib/services/Retriever/Services_Retriever_Base.php(118): Services_Nntp_Engine->selectGroup()
#2 /var/www/spotweb/lib/services/Retriever/Services_Retriever_Base.php(298): Services_Retriever_Base->connect()
#3 /var/www/spotweb/retrieve.php(142): Services_Retriever_Base->perform()
#4 {main}

Finished retrieving spots

Schermafbeelding 2021-12-02 om 17 19 19

.

@jgeusebroek
Copy link
Owner

Interesting. Is the date and time on your server set correctly? It probably is, but let's rule it out.

@Smiggel
Copy link
Author

Smiggel commented Dec 2, 2021

Yes, the date and time are correct.

I think perhaps my underlaying OS is perhaps the problem. I run Raspberry Pi OS Bullseye. On top of that I run OpenMediaVault 6.

Just now I removed everything related to spotweb. Did a new install in docker, with a stack. I ran the install.php script. When I verify my usenet connecting, I get a blank screen. When I skip the verification, I can continue. However, when I reach the last step, I get a blank again. dbsettings.inc.php is also not created on my disk. Manually creating the dbsettings.inc.php file works and can connect Spotweb.

@jgeusebroek
Copy link
Owner

The underlying OS "shouldn't" have an impact on the docker container. I unfortunately don't have any ideas left.

@Smiggel
Copy link
Author

Smiggel commented Dec 2, 2021

Thanks anyway for the help. :-)

@Smiggel
Copy link
Author

Smiggel commented Dec 3, 2021

Issue is closed, but I just want to let you know, the issue seems somewhere in your image. I switched to erikdevries/rpi-spotweb docker image and SSL connection works there.

Is perhaps your docker image not ment for a Raspberry Pi?

@jgeusebroek
Copy link
Owner

Thanks for letting me know. @proddy are you using my latest image to connect to Eweka?

@jgeusebroek jgeusebroek reopened this Dec 3, 2021
@proddy
Copy link

proddy commented Dec 3, 2021

yup, for years now

@nomnomnomhb
Copy link

nomnomnomhb commented Aug 26, 2022

I was encountering the same issue today with a fresh deployment on Raspberry Pi OS (Latest updated OS, Docker latest). Fixed by updating all packages inside the spotweb docker container ... This updated a ton of packages but not the OpenSSL package (I tried solely this package first, but remained the same version). Might help someone!

docker exec spotweb apt-get update
docker exec spotweb apt-get upgrade -y

(With "spotweb" in the commands as name of your container)

@Smiggel
Copy link
Author

Smiggel commented Aug 27, 2022

I was encountering the same issue today with a fresh deployment on Raspberry Pi OS (Latest updated OS, Docker latest). Fixed by updating all packages inside the spotweb docker container ... This updated a ton of packages but not the OpenSSL package (I tried solely this package first, but remained the same version). Might help someone!

docker exec spotweb apt-get update docker exec spotweb apt-get upgrade -y

(With "spotweb" in the commands as name of your container)

Yes, that’s it! I just now tried it and ask works again! Thank you!

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

No branches or pull requests

4 participants