kubernetes – ingress nginx upstream sent no valid HTTP/1.0 header while reading response header from upstream

I’m trying to setup an nginx ingress controller for services in my namespace.
One of the backend services accept HTTP traffic on port 80, the other accepts only HTTPS traffic on port 443. See the description of those both services

$ kubectl describe svc service-1 -n monit
Name:              service-1
Namespace:         monit
Labels:            app=service-1
Annotations:       <none>
Selector:          app=service-1
Type:              ClusterIP
Port:              https  443/TCP
TargetPort:        8443/TCP
Session Affinity:  None
Events:            <none>

$ kubectl describe svc service-2 -n monit
Name:              service-2
Namespace:         monit
Labels:            app=service-2
Annotations:       <none>
Selector:          app=service-2
Type:              ClusterIP
Port:              service  80/TCP
TargetPort:        3000/TCP
Session Affinity:  None
Events:            <none>

Here is my ingress configuration

apiVersion: extensions/v1beta1
kind: Ingress
  name: ingress-monit
  - host: service-2.localhost
      - path: /
          serviceName: service-2
          servicePort: 80
  - host: service-1.localhost
      - path: /
          serviceName: service-1
          servicePort: 443

When I look into the Nginx configuration things look OK

$ kubectl describe ingress ingress-monit -n monit                  
Name:             ingress-monit
Namespace:        monit
Address:          localhost
Default backend:  default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
  Host                            Path  Backends
  ----                            ----  --------
                                  /   service-2:80 (
                                  /   service-1:443 (
Annotations:                      Events:
  Type                            Reason  Age   From                      Message
  ----                            ------  ----  ----                      -------
  Normal                          CREATE  31m   nginx-ingress-controller  Ingress monit/ingress-monit
  Normal                          UPDATE  30m   nginx-ingress-controller  Ingress monit/ingress-monit

Now the problem is that I can access properly my service-2, with http://service-2.localhost/ but I cannot access service-1. Visiting http://service-1.localhost/ on chrome gives me

This site can’t be reachedThe webpage at https://service-1.localhost/ might be temporarily down or it may have moved permanently to a new web address.

When I look into Nginx logs, I see:

$ kubectl logs -n monit ingress-nginx-controller-bbdc786b4-8crdm -f
NGINX Ingress controller
  Release:       0.32.0
  Build:         git-446845114
  Repository:    https://github.com/kubernetes/ingress-nginx
  nginx version: nginx/1.17.10

. . .
2020/06/02 22:56:47 (error) 2363#2363: *64928 upstream sent no valid HTTP/1.0 header while reading response header from upstream, client:, server: service-1.localhost, request: "GET / HTTP/1.1", upstream: "", host: "service-1.localhost" - - (02/Jun/2020:22:58:13 +0000) "GET / HTTP/1.1" 200 7817 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36" 594 0.005 (monit-service-2-80) () 30520 0.005 200 2baefff713047b14a81643650cb50c4c

The error seems to be related to the service-1 returning bad response upstream sent no valid HTTP/1.0 header while reading response header from upstream. The thing is if I use kubectl proxy I can properly access that service!!

Any ideas how I could figure out what’s the real issue??

database – The provided host name is not valid for this server on OVH Web Server

I’m using an OVH web server, I went to the ftp browser and did add all my files into www.
I was using Drupal 8 in local.

When I want to go to my website, I’ve this error: The provided host name is not valid for this server.

I need to finish it by midnight, every help will be the welcome.
For more information to help me to solve me, I’ll give it to you.


differential equations – Boundary condition NeumannValue is not valid

I have this code, entirely copy-pasted from Heat Transfer Tutorial. It just says the Neumann boundary condition is not valid. Any idea why? I looked around the site, but none of the suggestions I have seen so far helped. It gets up to Out(30), with the output of the Manipulate(…) in the tutorial showing up fine. The problem is then to set up a basic heat transfer model, with a simple rectangle domain. Except this “basic heat transer example” does not work for me.

HeatTransferModel(T_, X_List, k_, (Rho)_, Cp_, Velocity_, Source_) :=
Module({V, Q, a = k}, 
  V = If(Velocity === "NoFlow", 
  0, (Rho)*Cp*Velocity.Inactive(Grad)(T, X));
  Q = If(Source === "NoSource", 0, Source);
  If(FreeQ(a, _?VectorQ), a = a*IdentityMatrix(Length(X)));
    If(VectorQ(a), a = DiagonalMatrix(a));
   (*Note the-sign in the operator*)
  a = PiecewiseExpand(Piecewise({{-a, True}}));
  Inactive(Div)(a.Inactive(Grad)(T, X), X) + V - Q)

 HeatTransferModel(T(x), {x}, k, (Rho), Cp, "NoFlow", "NoSource")

 TimeHeatTransferModel(T_, TimeVar_, X_List, k_, (Rho)_, Cp_, 
   Velocity_, Source_) := (Rho)*Cp*D(T, {TimeVar, 1}) + 
   HeatTransferModel(T, X, k, (Rho), Cp, Velocity, Source)

 TimeHeatTransferModel(T(t, x), t, {x}, k, (Rho), Cp, "NoFlow", "NoSource")

left = 0;
right = 1/5;
tend = 600;
(CapitalOmega) = Line({{left}, {right}});
Subscript((Rho), air) = 
QuantityMagnitude(ThermodynamicData("Air", "Density"));
Subscript(Cp, air) = QuantityMagnitude(ThermodynamicData("Air", "IsobaricHeatCapacity"));
Subscript(k, air) =  QuantityMagnitude(ThermodynamicData("Air", "ThermalConductivity"));
SmoothedStepFunction(fmin_, fmax_, ts_, m_) := 
Function(t, (fmin*Exp(ts*m) + fmax*Exp(m*t))/(Exp(ts*m) + Exp(m*t)))
Show(Plot(SmoothedStepFunction(fmin, fmax, ts, m)(t), {t, 0, tend}, 
Sequence(PlotTheme -> "Detailed", PlotLegends -> None, 
PlotLabel -> Style("Smoothed step function: R(t)", 18), 
FrameLabel -> {"t", ""}, 
Epilog -> {Red, PointSize(Medium), 
  Point({{0, fmin}, {tend, fmax}})}, PlotRange -> {-0.5, 5.5}, 
ImageSize -> Medium)), 
Graphics({{Directive(Dashed, Orange, Thick), 
  Line({{ts, -0.5}, {ts, 5.5}})}, {Directive(Red), 
  Arrowheads(0.03), Arrow({{ts + 50, 0}, {ts, -0.5}})}, 
  Text(Style("!(*SubscriptBox((f), (min)))", 15, Red), {10,fmin + 0.5}), 
  Text(Style("!(*SubscriptBox((f), (max)))", 15, Red), {585,fmax - 0.5}), 
  Text(Style("!(*SubscriptBox((t), (s)))", 15,Red), {ts + 70, 0.2})})), 
  Sequence({{fmin, 0}, -0.5, 0.5}, {{fmax, 5}, 4.5, 5.5}, {{ts, 300}, 
     200, 400}, {{m, 0.025}, 0.015, 0.035}, SaveDefinitions -> True))

(* Here is where it breaks - The above works fine. Also, ignore the 
 ugly formatting in Show(...). I just copy-pasted it, was a bit lazy*)
 (CapitalOmega)2D = Rectangle({0, 0}, {0.02, 0.01});
  parameters = {k -> 3, h -> 50, (Rho) -> 3690,Cp -> 880, 
          (CurlyEpsilon) -> 0.7, Subscript(T, hot)-> 600, Subscript(T, amb) -> 323};
  Subscript((CapitalGamma), temp) = 
  DirichletCondition(T(x, y) == Subscript(T, hot),x == 0 || x == 0.02);
  Subscript((CapitalGamma), convective) = NeumannValue(h*(Subscript(T, amb) - T(x, y)), y == 0.01);
  (Sigma) = First(UnitConvert(Quantity("StefanBoltzmannConstant")));
   Subscript((CapitalGamma), radiation) =   
    NeumannValue((CurlyEpsilon)*(Sigma)*(Subscript(T, amb)^4 - T(x, y)^4), y == 0.01);
   pde = {HeatTransferModel(T(x, y), {x, y}, k, (Rho), Cp, "NoFlow", 
  "NoSource") == 
  Subscript((CapitalGamma), convective) + 
  Subscript((CapitalGamma), radiation), 
   Subscript((CapitalGamma), temp)} /. parameters;
  Tfun = NDSolveValue(pde, T, {x, y} (Element) (CapitalOmega)2D)
  Legended(ContourPlot(Tfun(x, y), {x, y} (Element) (CapitalOmega)2D, 
       Sequence(PlotRange -> MinMax(Tfun("ValuesOnGrid")), 
       ColorFunction -> 
       ColorData({"TemperatureMap", MinMax(Tfun("ValuesOnGrid"))}), 
       ContourStyle -> Opacity(0.1), ColorFunctionScaling -> False, 
       Contours -> 30, PlotPoints -> 41, FrameLabel -> {"x", "y"}, 
       PlotLabel -> Style("Temperature Field: T(x,y)", 18), 
       AspectRatio -> Automatic, ImageSize -> 500)), 
       BarLegend({"TemperatureMap", MinMax(Tfun("ValuesOnGrid"))}, 50, 
       LegendLabel -> Style("(K)", Opacity(0.6))))

I do not know enough Mma to even try to attempt to fix this. Thanks

python – How do I make a loop along with try and except to prompt user until the valid file name is given?

So the desired file name is data.txt. I need to use a loop that continues to prompt the user for file names until the valid file name (data.txt) is entered. My try-except has to be inside the loop.

I must test my program with the loop and a try-except to handle an incorrect name of a file name and continue to prompt the user until a valid file is entered.

For ex, if i enter ‘data’, the program should output:

Enter name of file:
File data not found.
Enter new file name:
File to be processed is: data.txt
Average weight = 164.88
Average height = 69.38

This is my code so far:

if __name__ == '__main__':

    # Complete main section of code
    # Prompt the user for the name of a file
    user_input = input('Enter name of file:n')
    # You should complete the following loop; it will contain the try-except code
    found = False
    while not found:
        # Put your try-except code here
            my_file = open(user_input)
            lines = my_file.read()

            print('File {} not found'.format(user_input))
            file_name = input('Enter new file name:')

    # Print the name of the valid file
    print("File to be processed is: ",file_name)

    # Complete the remaining main section of code to loop through the file, compute the average weight and height, etc.
    average_height = 0
    average_weight = 0

    with open('data.txt') as f:
        for line in f:

            sl = line.split(',')

            average_height += int(str(sl(0)))
            average_weight += int(str(sl(1)))

    print("Average weight = {:.2f}".format(average_height / 8))
    print("Average height = {:.2f}".format(average_weight / 8))

We are asked to make use of the

found = False
while not found: 

as well as putting our try-except code in there.

my code so far only outputs:

Enter name of file:
File data not found.
Enter new file name:

And the calculations below print(“File to be processed is: “,file_name) should be correct.

So I must ask, how do I make use of a loop with try-except in order to prompt the user until a valid file (data.txt) is entered?

bitcoin core – Can an unsynchronized node create a valid transaction?

Node A is holding a chain which is not in sync with the rest of the
nodes and node A decides to post a transaction.

If node A created transaction from valid unspent UTXO (which is valid on longest chain), the transaction will be valid. You don’t have to be even a node to send this valid, signed transaction, you can mail it to the node C which will include it into mempool.

The miners will pick up this transaction and add them to a block in
their own chain which is different than Node A’s chain.

As long as your node has communication with these miners, yes (there are different scenarios of “unsyncing”, I assume hardforks as well, but I guessed you meant orphan blocks mostly, or lack of recent blocks?).

So now when Node A looks at the network, will it just ignore its own
inconsistent chain and pick the miners chain?

No. If you are looking at top of chain A which isn’t in sync with the longest chain, where miners should add the transaction, your node won’t see it. The rest of the network on the longest chain will observe it though.

Will the transaction made by node A even show up in the blockchain?

Yes, in the longest chain.

bitcoin core – Can an unsynchornized node create a valid transaction?

I’m trying to understand how bitcoin transactions work. From what I understand, in the Bitcoin network nodes hold different versions of the Blockchain and after some time the different chains start converging to form the main chain(longest sequence is preferred).

Here’s a scenario. Node A is holding a chain which is not in sync with the rest of the nodes and node A decides to post a transaction. The miners will pick up this transaction and add them to a block in their own chain which is different than Node A’s chain.

So now when Node A looks at the network, will it just ignore its own inconsistent chain and pick the miners chain? Will the transaction made by node A even show up in the blockchain?

How to find the valid update rates of the Unreal client monitor

The documents indicate that you can use the FScreenResolutionRHI data structures retrieved from RHIGetAvailablrResolutions, each of which indicates an update rate.

On this wiki page there is a code example that looks useful:

static FORCEINLINE void GetDisplayAdapterScreenResolutions(FScreenResolutionArray& Resolutions) { 
    if (RHIGetAvailableResolutions(Resolutions, false)) { 
        for (const FScreenResolutionRHI& EachResolution : Resolutions) { 
            UE_LOG(YourLog, Warning, TEXT("DefaultAdapter - %4d x %4d @ %d"), EachResolution.Width, EachResolution.Height, EachResolution.RefreshRate);
    } else { 
        UE_LOG(YourLog, Error, TEXT("Screen Resolutions could not be obtained")); 

Ark Valid Steel – arkvalidsteel.com – HYIPs

Start 2020-05-11. PerfectMoney, 0 trust score (s) Nitherlands (NL.GIF "data-src =" https://perfectmoney.com/img/geoip/NL.GIF "src =" https://topgoldforum.com/applications/core/interface/js/spacer.png "/> ), Payer, Bitcoin, Ethereum, Litecoin 
<p>Languages: EN
<img class=

arkvalidsteel.com was created by professional traders with many years of experience, hardworking, systematized and precisely implementing goals and is an active participant in crypto trading. At the moment we are in the phase of rapid development and expansion and regularly add to the list of cryptocurrencies in circulation: Bitcoin, Litecoin, Ethereum, Bitcoin Cash, Dash. Trade the world's most expensive and popular cryptocurrencies using strategies, technical resources, and experience accumulated over several years. arkvalidsteel.com is an innovative and practical investment program. We trade online with digital funds that welcome members around the world. Our goal is not to be the biggest, but the best. Our vision is to meet the financial needs of our investors and help them succeed. We are different from any other investment you have ever seen before. arkvalidsteel.com was developed with sustainability and longevity in mind. We offer slightly faster than the usual returns seen elsewhere. The reason for this is that we are not a normal HYIP, but a real payment investment company that can guarantee your funds and that is really sustainable over an infinite period of time. There is no better time than now to take the next step towards financial freedom.

Investment plans:

103.5% – 112% after 1 day

Ark 1 $ 5.00 – $ 100.00 103.50

Ark 2 $ 101.00 – $ 1000.00 112.00

300% – 500% after 5 days

Ark 1 $ 5.00 – $ 100.00 300.00

Ark 2 $ 101.00 – $ 1000.00 500.00

600% – 700% after 7 days

Ark 1 $ 5.00 – $ 100.00 600.00

Ark 2 $ 101.00 – $ 5000.00 700.00

1000% – 1100% after 10 days

Ark 1 $ 5.00 – $ 100.00 1000.00

Ark 2 $ 101.00 – $ 5000.00 1100.00

1200% – 1300% after 13 days

Ark 1 $ 5.00 – $ 100.00 1200.00

Ark 2 $ 101.00 – $ 10000.00 1300.00

Our deposit:

05/11/20 07:29 Bank transfer sent Payment: $ 60.00 to account U23911358 from U1294xxx. Batch: 314268728. Note: Payment in the shopping cart. Deposit at arkvalidsteel.com user allhyips.


Minimum deposit: $ 5
Maximum deposit: $ 10,000
Transfer commission: 6-10%
Payments: Manual
Features: SSL, DDOS

Who is:

Updated on: 2020-05-10T06: 57: 39Z
Creation Date: 2020-05-08T11: 37: 53Z
Registration expiration date: 2021-05-08T11: 37: 53Z

Registrar: NameCheap, Inc.



node.js – How to maintain a valid order book in octopus exchange with node, js

How's it going?
I received the sample order book code in Python (https://support.kraken.com/hc/en-us/articles/360027677512-Example-order-book-code-Python-) and translated it into Javascript to use in Run nodes. But the book is wrong, it doesn't remove all old price levels. I send my code below. I want help solving this problem.

const websocket = require('ws');
const ws = new websocket('wss://ws.kraken.com');
const api_book = {'bid':(), 'ask':()};
const api_depth = 10;

const api_output_book = () => {
    bid = api_book('bid').sort((x, y) => parseFloat(y(0))-parseFloat(x(0)));
    ask = api_book('ask').sort((x, y) => parseFloat(x(0))-parseFloat(y(0)));
    console.log ('BidtttttAsk');

    for (let x=0;x {
    data.forEach((e) => {
        let index = api_book(side).findIndex(o => o(0) == e(0));
        if (parseFloat(e(1)) > 0){
            if(index < 0){
            } else {
                api_book(side)(index) = (e(0),e(1));
        } else {

        api_book('bid').sort((x, y) => parseFloat(y(0))-parseFloat(x(0)));
    } else if(side=='ask'){
        api_book('ask').sort((x, y) => parseFloat(x(0))-parseFloat(y(0)));


ws.on('open', open = () => {
    ws.send('{"event":"subscribe", "subscription":{"name":"book", "depth":'+api_depth+'}, "pair":("XBT/USD")}');
    console.log('Kraken websocket connected!');

ws.on('message', incoming = (data) => {
    try {
        data = JSON.parse(data.toString('utf8'));

        if (data(1)) {
            if (data(1)('as')) {
                api_update_book('ask', data(1)('as'))
                api_update_book('bid', data(1)('bs'))
            } else if (data(1)('a') || data(1)('b')) {
                if (data(1)('a')) {
                    api_update_book('ask', data(1)('a'));
                if (data(1)('b')) {
                    api_update_book('bid', data(1)('b'));


    } catch (error) {