Email – Exim .forward fails unexpectedly

I am trying to enable synchronous processing of incoming email on a host running exim. In the absence of a .forward file, the mail is added to the expected / var / spool / mail / $ USER

I added a very simple .forward file to test the functionality:

| cat - >>/home/mailfiter/mailin

and created a file in the home directory with permissions 0666. However, when I send a message, it does not reach the expected location. The exim records report:

2019-08-07 14:48:36 1hvMIt-0005GY-Pl ** | cat - >>/home/mailfiter/mailin
  R=userforward T=address_pipe: Child process of 
 address_pipe transport returned 1 from command: /bin/cat

Here, 1 suggests a permissions problem but:

  • / home is drwxr-xr-x,
  • / home / mailfilter is drwxrwxr-x and is owned by mailfilter: mail,
  • / home / mailfilter / mailin en -rw-rw-rw-

Changing the .forward to create a new file in / tmp resulted in the same error.

This is a Centos 7 box with SELinux disabled.

javascript: the field value of the loaded list item unexpectedly returns "NaN"

I am trying to query the last item in the current list where status = New, so I can automatically fill in one of the fields based on the value of the previous item. Executing "alert (collListItem);" it shows "(object) (Object)", and the onQuerySucceeded function is actually being activated, however, the value you enter is "NaN" when it should be the value of the field of the previous number +1 (the previous value is 1) .

var collListItem;
function QueryLastNewItem() {
    var clientContext = new SP.ClientContext();
    var List = clientContext.get_web().get_lists().getByTitle('Tracker');
    var query = new SP.CamlQuery();
    query.set_viewXml("1New");
    collListItem = List.getItems(query);
    clientContext.load(collListItem);
    alert(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, 
this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));         
}

function onQuerySucceeded(sender, args) { 
    //Once the list item is loaded, populate number field with the previous number field plus 1
    if ($("select(id^='Is_x0020_this_x0020_item_x002')").val() == "New") 
        {
        $("input(id^='Number')").val(collListItem.get_item("Number")+1);
        }
} 

function onQueryFailed(sender, args) {
    alert('Request failed. nError: ' + args.get_message() + 'nStackTrace: ' + args.get_stackTrace());
}

Since the query seems to be successful, I am confused as to why the value is not assigned properly. I thought it could be because "collListItem" could be considered a collection of objects, but I have set the row limit to 1 in the CAML query, so it should only contain 1 element.

Any help or suggestion is greatly appreciated.

Python 3.x – The Uvicorn server shuts down unexpectedly

I am working with the FastAPI framework, served by the Uvicorn server.
My application should execute some numerical calculation that consumes a lot of time in a final point (/ execute). For this I am using & # 39; background_task & # 39; of fastAPI (which is basically & # 39; background_task & # 39; from Starlette).

When executing the application, after some moments of nominal behavior, the server shuts down for some reason.

The application records look like this:

INFO: server process started [922]
INFO: Waiting for the start of the application.
DEBUG: None - ASGI [1] Started
DEBUG: None - ASGI [1] Sent {& # 39; type & # 39 ;: & # 39; lifespan.startup & # 39;}
DEBUG: None - ASGI [1] Received {& # 39; type & # 39; lifespan.startup.complete & # 39;}
INFO: Uvicorn runs on http://0.0.0.0:8000 (Press CTRL + C to exit)
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - Connected
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57397) - Connected
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [2] Started
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [2] Received {& # 39 ;: & # 39; http.response.start & # 39 ;, & # 39 ;: & # 39 ;: 200, & # 39; headlines & # 39 ;: & # 39;<...>& # 39;
INFO: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - "GET / run HTTP / 1.1" 200
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [2] Received {& # 39; type & # 39 ;: & # 39; http.response.body & # 39 ;, & # 39; body & # 39 ;: & # 39;<32 bytes>& # 39;
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [3] Started
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [3] Received {& # 39 ;: & # 39; http.response.start & # 39 ;, & # 39 ;: & # 39 ;: 404, & # 39; headlines & # 39 ;: & # 39;<...>& # 39;
INFO: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - "GET /favicon.ico HTTP / 1.1" 404
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [3] Received {& # 39; type & # 39 ;: & # 39; http.response.body & # 39 ;, & # 39; body & # 39 ;: & # 39;<22 bytes>& # 39;
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [3] Finished

...

DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - Offline
... The background task is complete.
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57396) - ASGI [2] Finished
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57397) - Offline
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57405) - Connected

...
The application continues, with requests and background tasks completed.
At some point, during the execution of a task in the background:

INFO: turning off
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57568) - Offline
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57567) - Offline
INFORMATION: Pending completion of tasks in the background. (CTRL + C to force the exit)
DEBUG: (& # 39; 10 .0.2.111 & # 39 ;, 57567) - ASGI [6] Finished
INFO: Waiting for the application to close.
DEBUG: None - ASGI [1] Sent {& # 39; type & # 39 ;: & # 39; lifespan.shutdown & # 39;}
DEBUG: None - ASGI [1] Received {& # 39 ;: & # 39; lifespan.shutdown.complete & # 39;}
DEBUG: None - ASGI [1] Finished
INFO: Process of the finished server [922]

I really do not understand why this happens. I have no idea what to try to fix it.

My code looks like this.

#! / usr / bin / env python3.7
import time
from fastapi import FastAPI, BackgroundTasks
import uvicorn
from starlette.responses import JSONResponse
import my_imports_from_project

analysis_api = FastAPI ()

@ analysis_api.get ("/")
Async def root ():
returns {"message": "root"}


@ analysis_api.get ("/ test")
async def test ():
returns {"message": "test"}

@ analysis_api.get ("/ run")
async def run (name: str, background_task: BackgroundTasks):
try:
some_checks (name)
except RaisedExceptions:
body = {"running": False,
"name name,
"cause": "Not found in the database"}
return JSONResponse (state_code = 400, content = body)
body = {"running": True,
"name name}
background_task.add_task (run_analysis, name)
return JSONResponse (state_code = 200, content = body)


yes __name__ == "__main__":
uvicorn.run ("api: analysis_api", host = "0.0.0.0", log_level = "debug")

accident – Python closes unexpectedly

I am trying to execute a python script (2.7) in Spyder 3.1.4 in Mojave 10.14.5, and python continues to exit unexpectedly with the following error:

                Application-specific information:
crashed on the child's side of the pre-exec fork

Thread 0 Crashed:
0 libdispatch.dylib 0x00007fff5afbf58a dispatch_apply_f + 754
1 cv2.so 0x000000011d22f0de cv :: parallel_for_ (cv :: Range const &, cv :: ParallelLoopBody const &, double) + 622
2 cv2.so 0x000000011d4d1bca cv :: hal :: resize (int, unsigned char const *, unsigned long, int, int, unsigned char *, unsigned long, int, int, double, double, int) + 1930
3 cv2.so 0x000000011d4da731 cv :: resize (cv :: _ InputArray const y, cv :: _ OutputArray const y, cv :: Size_, double, double, int) + 8417
4 cv2.so 0x000000011cf27578 pyopencv_cv_resize (_object *, _object *, _object *) + 952
5 org.python.python 0x000000010b32aef3 PyEval_EvalFrameEx + 30323
6 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
7 org.python.python 0x000000010b32fdb5 fast_function + 117
8 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
9 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
10 org.python.python 0x000000010b2ad9ac function_call + 364
11 org.python.python 0x000000010b2875c3 PyObject_Call + 99
12 org.python.python 0x000000010b32f51d PyEval_CallObjectWithKeywords + 93
13 org.python.python 0x000000010b3208fa builtin_map + 874
14 org.python.python 0x000000010b32b698 PyEval_EvalFrameEx + 32280
15 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
16 org.python.python 0x000000010b2ad9ac function_call + 364
17 org.python.python 0x000000010b2875c3 PyObject_Call + 99
18 org.python.python 0x000000010b32b5c2 PyEval_EvalFrameEx + 32066
19 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
20 org.python.python 0x000000010b2ad9ac function_call + 364
21 org.python.python 0x000000010b2875c3 PyObject_Call + 99
22 org.python.python 0x000000010b32b5c2 PyEval_EvalFrameEx + 32066
23 org.python.python 0x000000010b32fe52 fast_function + 274
24 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
25 org.python.python 0x000000010b32fe52 fast_function + 274
26 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
27 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
28 org.python.python 0x000000010b2ad9ac function_call + 364
29 org.python.python 0x000000010b2875c3 PyObject_Call + 99
30 org.python.python 0x000000010b294986 instancemethod_call + 182
31 org.python.python 0x000000010b2875c3 PyObject_Call + 99
32 org.python.python 0x000000010b2e41bd slot_tp_init + 141
33 org.python.python 0x000000010b2e01b3 type_call + 339
34 org.python.python 0x000000010b2875c3 PyObject_Call + 99
35 org.python.python 0x000000010b32ab50 PyEval_EvalFrameEx + 29392
36 org.python.python 0x000000010b32fe52 fast_function + 274
37 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
38 org.python.python 0x000000010b32fe52 fast_function + 274
39 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
40 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
41 org.python.python 0x000000010b2ad9ac function_call + 364
42 org.python.python 0x000000010b2875c3 PyObject_Call + 99
43 org.python.python 0x000000010b294986 instancemethod_call + 182
44 org.python.python 0x000000010b2875c3 PyObject_Call + 99
45 org.python.python 0x000000010b2e41bd slot_tp_init + 141
46 org.python.python 0x000000010b2e01b3 type_call + 339
47 org.python.python 0x000000010b2875c3 PyObject_Call + 99
48 org.python.python 0x000000010b32ab50 PyEval_EvalFrameEx + 29392
49 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
50 org.python.python 0x000000010b32fdb5 fast_function + 117
51 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
52 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
53 org.python.python 0x000000010b2ad9ac function_call + 364
54 org.python.python 0x000000010b2875c3 PyObject_Call + 99
55 org.python.python 0x000000010b32b5c2 PyEval_EvalFrameEx + 32066
56 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
57 org.python.python 0x000000010b322f66 PyEval_EvalCode + 54
58 org.python.python 0x000000010b351e64 PyRun_FileExFlags + 164
59 org.python.python 0x000000010b31f4ab builtin_execfile + 507
60 org.python.python 0x000000010b32b698 PyEval_EvalFrameEx + 32280
61 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
62 org.python.python 0x000000010b32fdb5 fast_function + 117
63 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
64 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
65 org.python.python 0x000000010b32fdb5 fast_function + 117
66 org.python.python 0x000000010b32aa74 PyEval_EvalFrameEx + 29172
67 org.python.python 0x000000010b323572 PyEval_EvalCodeEx + 1538
68 org.python.python 0x000000010b322f66 PyEval_EvalCode + 54
69 org.python.python 0x000000010b351bdd PyRun_InteractiveOneFlags + 381
70 org.python.python 0x000000010b3516be PyRun_InteractiveLoopFlags + 206
71 org.python.python 0x000000010b351568 PyRun_AnyFileExFlags + 136
72 org.python.python 0x000000010b367668 Py_Main + 3096
73 libdyld.dylib 0x00007fff5affc3d5 start + 1

Thread 0 was blocked with the status of thread X86 (64 bits):
rax: 0x0000001c5b80f480 rbx: 0x0000000000000100 rcx: 0x00000000000000 rdx: 0x00007fff5afbeef8
rdi: 0x0000001c5b80e000 rsi: 0x00007fff9194d7c0 rbp: 0x00007ffee4982f30 rsp: 0x00007ffee4982ea0
r8: 0x0000001c5b80f480 r9: 0x000000000000000b r10: 0x0000001c5b800000 r11: 0x0000000000000003
r12: 0x000000000000000b r13: 0x0000001c5b80f480 r14: 0x00000000100020ff r15: 0x0000001c5bc05d40
rip: 0x00007fff5afbf58a rfl: 0x0000000000010206 cr2: 0x0000000000000110

CPU logic: 6
Error code: 0x00000006

Trap number: 14

Can anyone give some suggestions or at least interpret the message?

networking: the lanmanserver service unexpectedly kills connections in Server 2016 for "DOS Protection"

issue

The Windows Server 2016 DataCenter instance is reporting an EventID2025 error:

Event: ID2025 "The server has detected an attempt to attack the client's denial of service \ SERVERA and has disconnected the connection."

The server to which we are copying files has accepted files through smbclient mput for eons, and it is only failing recently after it has been canceled.

Details

  • The TCP download for large receipts is ENABLED in the NIC, this
    It has never been a problem before, and it is the default for EC2 instances.
  • The quantity and size of the files has not changed.
  • No network congestion is observed.
  • It happens about 85% of the time that we try to execute the copy.
  • Disable DOS protection through HKEY_LOCAL_MACHINE System CurrentControlSet Services LanManServer Parameters resolve the problem, but it seems hacky.
  • Problem server: Windows Server 2016 DataCenter Ed. (With the latest updates as of 11/6/2019)
  • Source server: Docker instance, based outside of ubuntu: trusty-20190122

We could mess with MaxMpxCt, and with the TCP download (according to the TechNet discussion and the Rackspace article), but it seems better to understand WHY the windows suddenly consider this traffic problematic out of the blue, before messing with the configuration of performance.

What should we do / investigate to clarify why this is appearing suddenly?

Virtualbox in Ubuntu 18.04: vm ended unexpectedly

I have to use the virtual machine where Elmer FEM is installed and downloaded from the ElmerCSC website
I installed Virtualbox 6.0 and extracted the vm from the ova file. But when I try to start vm, the following error appears: & # 39; ElmerCSC_LinuxMint18.3_AMD64 & # 39; has ended unexpectedly at startup with exit code 1 (0x1)
The error in the registry files are:

00: 01: 47.771925 ERROR [COM]: aRC = NS_ERROR_UNEXPECTED (0x8000ffff)
aIID = {c0447716-ff5a-4795-b57a-ecd5fffa18a4} aComponent = {SessionWrap}
aText = {The session is not blocked (session status: unlocked)},
preserve = false aResultDetail = 0 00: 17: 01.444507 ERROR [COM]:
aRC = NS_ERROR_UNEXPECTED (0x8000ffff)
aIID = {c0447716-ff5a-4795-b57a-ecd5fffa18a4} aComponent = {SessionWrap}
aText = {The session is not blocked (session status: unlocked)},
preserve = false aResultDetail = 0

Y

00: 00: 00.218181 nspr-2 Compatibility with the driver version: DriverVersion = 0x290001 ClientVersion = 0x290008 rc = VERR_VERSION_MISMATCH

What driver is wrong?
I have reinstalled virtualbox a couple of times without success

Do you have any suggestions on how to solve the problem?
Thank you
Claudio

lion – In Mac OS X 10.7, the Java Control Panel unexpectedly crashes

I wonder if this is a serious problem that I should worry about.

I have the latest version of Java installed (currently Java (TM) SE Runtime Environment (compilation 1.8.0_212-b10) through the command java -version).

I am running Mac OS X 10.7 Lion. When I try to open the Java Control Panel by opening the System Preferences and selecting Java, a spontaneous error appears with the error: "The Java Control Panel was unexpectedly closed".

Shock

There is an error report that shows a lot of detailed information about the accident.

This is a problem? And how can I solve this?

crash: the application shows "The last time you opened _____, it was unexpectedly closed …" error

A while ago, I bought a GOG game titled "Enter the Gungeon". One day, while playing it, the game suddenly crashed. Now, the game had crashed before and I had opened it again without any worries, but this time it was different. Every time I tried to open the game, I always received the same error message:

The last time you opened Enter the Gungeon, it unexpectedly closed when you reopened Windows. Do you want to open your windows again?

No matter which option you choose, the program always crashes. Every time I open the game on any other user, it works. I tried to mess with the .plist file of the game, reboot of my computer, update of my operating system and reinstallation of the game (even with updated versions). I have a MacBook Air (13 inches, 2017), and I am a MacOS Mojave (version 10.14). I have 8 GB of RAM.

What could be done to correct this error?

Shortcuts: keyboard design changed unexpectedly

So initially I put my keyboard in Switzerland (French-Macintosh) that worked almost to the point (some commands did not correspond), but a few days ago, I woke up with a keyboard layout that was completely different (I think the classic used in the system Windows operating, shift + 1 =! shift + 2 = @ etc.), even though the same design is selected and used.

Any ideas on how to solve this problem? I have the latest version of Ubuntu (running in VirtualBox).