Intermittent connection is dropped using MS Graph API for Sharepoint

Since 06.02.2020 our interface with a Sharepoint client (using the MSGraph API) has experienced intermittent connection crashes when trying to download a file using @ microsoft.graph.downloadUrl.

Our application makes an HTTP GET request (using MSXML2.ServerXMLHTTP.6.0) to the url provided. Then, after a certain amount of time, an error occurs with the description "The connection to the server was interrupted abnormally." No status code, no response content.

This also happens using any browser (copying the url in the address bar and pressing enter). Chrome, with a file download (let's say the url points to a .jpg file), will say "Error – Network error".

The error can be replicated (IF it is a global problem) using curl with this batch script.

@echo off

FOR /L %%A IN (1,1,%1) DO (
    echo.
    echo Attempt: %%A%

    rem Writing output into a file, extension is not really important.
    curl --output "output.jpg" %2
)

What can be called as test.bat "<@microsoft.graph.downloadUrl>". A record was added here, attempts 13, 15 and 18 get the error.

I am not really sure what could be happening here. I investigated the error message and basically what happens is that the socket drops unexpectedly. I was thinking that maybe there is a quota that we are reaching with our requests, but in these cases MSGraph returns an appropriate error message.

Any idea what might be wrong or where I could seek help?

Server to server: secure connection from separate domains

I have a box with Windows Datacenter 2019 in a domain, and I have Windows Datacenter 2019 in a completely different domain: I am looking for the best way to connect the two and maintain data security. I would like to establish the connection so that they can share files and access the directories with each other. This may be an elementary question, but I am looking for the best way to configure this. At this time, I would consider using Windows Firewall with Advanced Security to create an end-to-end connection, but I still don't know what it takes to establish it as a secure connection.

SSH connection problem of the Google cloud instance (storage?)

I've spent a whole day trying to fix it. An unexpected error 500 appeared on the site, then restarted and I could never connect the SSH again. I changed the size of the disk to a significant size (i.e. 500 GB), while I know the actual size of the file only around 5 GB. Can anyone help solve the problem? Any help is really appreciated!

Below is the error message that I captured from the "serial console".
There is this error.


Feb 18 06:41:14 primary-server google-accounts: ERROR Exception calling the response handler. (Errno 2) No usable temporary directory found in ('/tmp', '/var/tmp', '/usr/tmp', '/').#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.6/tempfile.py", line 681, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.6/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.6/tempfile.py", line 437, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.6/tempfile.py", line 372, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: (Errno 2) No usable temporary directory found in ('/tmp', '/var/tmp', '/usr/tmp', '/')
Ubuntu 18.04.2 LTS primary-server ttyS0

primary-server login: Feb 18 06:41:22 primary-server snapd(1512): stateengine.go:102: state ensure error: Get https://api.snapcraft.io/api/v1/snaps/sections: dial tcp: lookup api.snapcraft.io on (::1):53: read udp (::1):58853->(::1):53: read: connection refused

Change disk size to 500 GB.


Feb 18 06:41:34 primary-server snapd(1512): daemon.go:611: gracefully waiting for running hooks
Feb 18 06:41:34 primary-server snapd(1512): daemon.go:613: done waiting for running hooks
Feb 18 06:41:34 primary-server snapd(1512): daemon stop requested to wait for socket activation

The Mysql service stopped and started again and again, then


Feb 18 06:42:33 primary-server sshd(3744): /etc/ssh/sshd_config line 31: Deprecated option RSAAuthentication
Feb 18 06:42:33 primary-server sshd(3744): /etc/ssh/sshd_config line 38: Deprecated option RhostsRSAAuthentication
Feb 18 06:42:33 primary-server sshd(3755): /etc/ssh/sshd_config line 16: Deprecated option UsePrivilegeSeparation
Feb 18 06:42:33 primary-server sshd(3755): /etc/ssh/sshd_config line 19: Deprecated option KeyRegenerationInterval
Feb 18 06:42:33 primary-server sshd(3755): /etc/ssh/sshd_config line 20: Deprecated option ServerKeyBits
Feb 18 06:42:33 primary-server sshd(3755): /etc/ssh/sshd_config line 31: Deprecated option RSAAuthentication
Feb 18 06:42:33 primary-server sshd(3755): /etc/ssh/sshd_config line 38: Deprecated option RhostsRSAAuthentication

The error indicated that there is not enough space. I changed the disk size to 500 GB and memory too, but it's still the same error.

Feb 18 06:42:33 primary-server systemd(1): Started OpenBSD Secure Shell server.
Feb 18 06:42:33 primary-server google-accounts: INFO Removing user jameswalker11.
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): userdel: /etc/passwd.3759: No space left on device
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): userdel: cannot lock /etc/passwd; try again later.
Feb 18 06:42:34 primary-server google-accounts: WARNING Could not remove user jameswalker11. Command '('userdel', '-r', 'jameswalker11')' returned non-zero exit status 1..
Feb 18 06:42:34 primary-server google-accounts: INFO Removing user jameswalker11 from the Google sudoers group.
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): Removing user jameswalker11 from group google-sudoers
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): gpasswd: /etc/group.3760: No space left on device
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): gpasswd: cannot lock /etc/group; try again later.
Feb 18 06:42:34 primary-server google-accounts: WARNING Could not update user jameswalker11. Command '('gpasswd', '-d', 'jameswalker11', 'google-sudoers')' returned non-zero exit status 1..
Feb 18 06:42:34 primary-server google-accounts: INFO Removing user logic.
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): userdel: /etc/passwd.3761: No space left on device
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): userdel: cannot lock /etc/passwd; try again later.
Feb 18 06:42:34 primary-server google-accounts: WARNING Could not remove user logic. Command '('userdel', '-r', 'logic')' returned non-zero exit status 1..
Feb 18 06:42:34 primary-server google-accounts: INFO Removing user logic from the Google sudoers group.
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): Removing user logic from group google-sudoers
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): gpasswd: /etc/group.3764: No space left on device
Feb 18 06:42:34 primary-server google_accounts_daemon(2207): gpasswd: cannot lock /etc/group; try again later.
Feb 18 06:42:34 primary-server google-accounts: WARNING Could not update user logic. Command '('gpasswd', '-d', 'logic', 'google-sudoers')' returned non-zero exit status 1..
Feb 18 06:42:34 primary-server google-accounts: ERROR Exception calling the response handler. (Errno 2) No usable temporary directory found in ('/tmp', '/var/tmp', '/usr/tmp', '/').#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/google_compute_engine/metadata_watcher.py", line 200, in WatchMetadata#012    handler(response)#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_daemon.py", line 285, in HandleAccounts#012    self.utils.SetConfiguredUsers(desired_users.keys())#012  File "/usr/lib/python3/dist-packages/google_compute_engine/accounts/accounts_utils.py", line 318, in SetConfiguredUsers#012    mode='w', prefix=prefix, delete=True) as updated_users:#012  File "/usr/lib/python3.6/tempfile.py", line 681, in NamedTemporaryFile#012    prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)#012  File "/usr/lib/python3.6/tempfile.py", line 269, in _sanitize_params#012    dir = gettempdir()#012  File "/usr/lib/python3.6/tempfile.py", line 437, in gettempdir#012    tempdir = _get_default_tempdir()#012  File "/usr/lib/python3.6/tempfile.py", line 372, in _get_default_tempdir#012    dirlist)#012FileNotFoundError: (Errno 2) No usable temporary directory found in ('/tmp', '/var/tmp', '/usr/tmp', '/')

Is a 1 hour connection from MAD, Norwegian to Delta in LAX sufficient?

We will travel from Madrid back to the United States, through customs without checked baggage.

ssas: connection string error, quotation marks in the password

I am trying to connect to a tabular model with OleDbConnection in C # with this connection string:

Provider=MSOLAP;Data Source=asazure://someURL/azuretabular;User ID=user@domain.com;Password=abc123"";Persist Security Info=True;Impersonation Level=Impersonate;SspropInitAppName=my app;ClientProcessID=123456

The problem is the password.

with a password like abc123! works

I can't make it work with a password with quotes.
I tried all this and failed:

password=abc123""
password='abc123""'
password='abc123""""'
password='abc123""'
password='abc123%22%22'
password='abc123""'

getting this error:

Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS50126: Error validating credentials due to invalid username or password.

Any idea how to escape the two quotes?

Thank you

java – Minecraft modified connection errors

I created a Crazy Craft server; and currently I cannot connect from the host machine; every time I try I disconnect; Can anyone check the record and tell me if they know what the cause might be?

(12:58:54) (Netty IO #4/INFO) (FML): Attempting connection with missing mods () at CLIENT
        (12:58:54) (Server thread/INFO) (FML): (Server thread) Server side modded connection established
        (12:58:54) (Server thread/INFO): SloppyPuppy(/192.168.0.13:60136) logged in with entity id 1950 at (-61.867385288412784, 68.0, 215.8430049062121)
        (12:58:54) (Server thread/INFO): SloppyPuppy joined the game
        (12:58:54) (Server thread/INFO) (STDOUT): (io.darkcraft.darkcore.mod.DarkcoreMod:repostWarning:146): RW
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:crystalBlock
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:moltenMetalTE
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:moltenMetalTE
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:moltenMetalTE
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:moltenMetalTE
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:moltenMetalTE
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:crystalBlock
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:crystalBlock
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:crystalBlock
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:crystalBlock
        (12:58:57) (Server thread/WARN): Skipping BlockEntity with id jewelrycraft2:crystalBlock
        (12:59:14) (Netty IO #4/ERROR) (FML): NetworkDispatcher exception
        java.io.IOException: An established connection was aborted by the software in your host machine
                at sun.nio.ch.SocketDispatcher.read0(Native Method) ~(?:1.8.0_241)
                at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~(?:1.8.0_241)
                at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~(?:1.8.0_241)
                at sun.nio.ch.IOUtil.read(Unknown Source) ~(?:1.8.0_241)
                at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~(?:1.8.0_241)
                at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:436) ~(UnpooledUnsafeDirectByteBuf.class:?)
                at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:870) ~(AbstractByteBuf.class:?)
                at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:208) ~(NioSocketChannel.class:?)
                at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:87) (AbstractNioByteChannel$NioByteUnsafe.class:?)
                at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) (NioEventLoop.class:?)
                at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) (NioEventLoop.class:?)
                at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) (NioEventLoop.class:?)
                at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) (SingleThreadEventExecutor$2.class:?)
                at java.lang.Thread.run(Unknown Source) (?:1.8.0_241)
        (12:59:14) (Server thread/INFO): SloppyPuppy lost connection: TranslatableComponent{key='disconnect.genericReason', args=(Internal Exception: java.io.IOException: An established connection was aborted by the software in your host machine), siblings=(), style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
        (12:59:14) (Server thread/INFO): SloppyPuppy left the game

Page speed: slow initial connection

Initial connections to my website are extremely slow (more than 100 seconds). How can I diagnose the problem?

By using the network tab of the Chrome development tool, I see that the problem is the "initial connection" and not things like SSL or Standby / TTFB.

This only happens for the First page visit to the website for a specific device; After the first page loads, everything on the website is very fast. This happens constantly for new devices, on the same device if I don't visit the website for X days, and on the same device if I clear the cache and browsing history.

The website is a Django application hosted using Google Cloud App Engine with 2 flexible instances.

User traffic to the website is low, so I doubt that the problem is load balancing or traffic peaks.

enter the description of the image here

7.0 Nougat: How can I block the USB connection on a rooted Android device?

I have an Android 7.0 phone that is my "experimental phone." I am looking for a way to disable the USB connection function similar to how you can disable the access point here: How do I disable the mobile access point function?

Is there a file that controls the anchor service that can be modified or deleted or another method to disable usb anchoring?

ubuntu – Nginx failure in the docker container: (111: Connection rejected) while connecting to the upstream client

I am running a django application with nginx in a dockable container and everything worked perfectly fine until I rebuilt the container. Suddenly I receive an error 502 (Bad Gateway) and the records say

(111: Connection rejected) while connecting to upstream, client: 216.245.221.82

I have no idea what changed to be honest and I am new with nginx. The django / python code should not have changed. I'm taking the last nginx image, so maybe there was a change that doesn't work well with my settings. But I also tried previous versions and got the same error. Maybe my application crashes since there is no port I am listening to? (see screenshot)

I tried to set ALLOWED_HOSTS to ('*'), setting SSL_NO_VERIFY to True and False, remains the same error. I have no options … I don't know how to debug it better. Locally, the application works fine, so setting debugging to True did not help me.

I just don't know. I am implementing my application in an EC2 instance with nginx in a dockable container.

Here are my settings and my copy file:

server {

    listen 443 ssl;
    server_name mywebsite.de;
    client_max_body_size 0;
    charset utf-8;
    ssl_stapling off;
    ssl_stapling_verify off;

    ssl_certificate            /etc/letsencrypt/live/mywebsite.de/fullchain.pem;
    ssl_certificate_key       /etc/letsencrypt/live/mywebsite.de/privkey.pem;


    set $my_host $http_host;
    if ($http_host = "mywebsite.de") {
          set $my_host "mywebsite.de";
    }


    location / {
        proxy_pass http://django:5000;
        proxy_set_header Host $my_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

}

server {
        listen 80 ;
        server_name mywebsite.de;
        return 301 https://mywebsite.de$request_uri;
}
server {
        listen 80 ;
        server_name www.mywebsite.de;
        return 301 https://mywebsite.de$request_uri;
}
server {
        listen 443 ;
        server_name www.mywebsite.de;
        return 301 https://mywebsite.de$request_uri;
        ssl_stapling off;
        ssl_stapling_verify off;

        ssl_certificate           /etc/letsencrypt/live/mywebsite.de/fullchain.pem;
        ssl_certificate_key       /etc/letsencrypt/live/mywebsite.de/privkey.pem;
}

version: '3'

services:
  django:
    build:
      context: .
      dockerfile: ./compose/production/django/Dockerfile
    image: my_website_production_django
    env_file:
      - ./.envs/.production/.django
      - ./.envs/.production/.postgres
    command: /start

  nginx:
    container_name: 'nginx'
    image: nginx:latest
    ports:
      - "80:80"
      - "443:443"
    volumes: ##The following files are found on AWS EC2 instance.
       - /home/ubuntu/nginx-conf/my.conf:/etc/nginx/conf.d/default.conf
       - /etc/letsencrypt/live/mydomain.de/fullchain.pem:/etc/letsencrypt/live/mydomain.de/fullchain.pem
       - /etc/letsencrypt/live/mydomain.de/privkey.pem:/etc/letsencrypt/live/mydomain.de/privkey.pem
    depends_on:
      - django

  redis:
    image: redis:5.0

Happily providing more information or code if necessary. Really desperate and grateful for the help. Thank you.

networks: connection to a VPN on a remote Linux server (VPS) fails

I have been trying to connect to a VPN through my Ubuntu VPS, but every time I try, the server shuts down.

Maybe the connection blocks ssh and all traffic when I try to connect? I tried to connect with a VPN to a dedicated server with Ubuntu Linux, first 18.04 then 16.04, and to a virtual private server with Ubuntu Linux. Both failed, so at least I know there is no difference.

I simply disconnect and cannot connect to my VPS unless I restart it. Is there a way to configure a VPN in my VPS or is there at least one way to change my internal VPS IP several times?

So I am using the NordVPN .deb application. After installing it successfully, I connect with my password and email, then use & # 39; & # 39;nordvpn connect& # 39; & # 39; (sometimes I specify the server I want to connect to, for example nordvpn connect es/br/us/etc) He says Connecting.. Then the Linux server simply freezes, and in about 10 seconds I disconnect.

But I didn't stop there. I tried to use NordVPN manually through OpenVPN. I installed the packages, and the same thing happened, after connecting, the VPS simply crashed and I had to restart it.

I have no error to show, since it is only connecting, failing, shutting down. It could also be the service I use for VPS, however, I am really desperate to find a service that allows me to use VPN. I really need it for my project and in 2 attempts everyone failed.

Let me know if you need more information in the comments and I will edit the question. I may have missed some things since it is quite late, I tried to solve this all day.