linux – Jupyter notebook kernel error due to file not found / run / user / * / jupyter

I am running a jupyter 4.4.0 notebook service (jupyter notebook – no-browser – port 8889) on a Fedora 27 server, which I can remotely access via a browser. After using the service for a few hours without any problems, I get a "kernel error". Within the first hours, I can start new notebooks without errors. After some time, however, I get the error message. It clearly tells me that the kernel error on missing file & # 39; /run/user/1001/jupyter/kernel-869f88b2-0895-40fb-b759-c518a1686484.json' is due.

In further investigations, I found that the file is missing because the entire Jupyter directory under / run / user / 1001 is missing. The jupyter directory appears to be created the first time the service is started and will be automatically deleted after some time.

Search days have shown that the problem is likely due to inactivity, causing the operating system or the Jupyter service to drop the / run / user / 1001 / jupyter directory.

So far I could not find out exactly what deletes the directory / run / user / 1001 / jupyter or how to prevent it. Do you know how this could be solved?

error message

Traceback (last call last):
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/web.py", line 1469, in _execute
Result = earnings result
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1021, in progress
result = self.gen.throw (* exc_info)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/handlers.py", line 73, in post
type = mtype))
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1021, in progress
result = self.gen.throw (* exc_info)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
kernel_id = return self.start_kernel_for_session (session_id, path, name, type, kernel_name)
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1021, in progress
result = self.gen.throw (* exc_info)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel (path = kernel_path, kernel_name = kernel_name)
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 285, in the wrapper
result = next (result)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/kernels/kernelmanager.py", line 160, in start_kernel
super (MappingKernelManager, itself) .start_kernel (** kwargs)
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
km.start_kernel (** kwargs)
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/manager.py", line 240, in start_kernel
self.write_connection_file ()
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/connect.py", line 472, in write_connection_file
kernel_name = self.kernel_name
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/connect.py", line 137, in write_connection_file
with open (fname, & # 39; w & # 39;) as f:
FileNotFoundError: [Errno 2] No such file or directory: & # 39; /run/user/1001/jupyter/kernel-869f88b2-0895-40fb-b759-c518a1686484.json'

Many Thanks

This error will still be displayed. POP3 RETR (450) failed

In the SER protocols for mask "efface"I can see these errors, I am using 2 catchall from 2 different providers (catchallboxes, seospartans) The login works for both catchalls If I start more threads in SER, I see this error more often.

Is this the problem with e-mail retrieval or retrieval of messages in SER?
I've also written to catchall vendors, let's see what they say.

Always get this error POP3 RETR (450) failed – ERR Message 450 has been deleted in SER 13.44, 13.45, not sure if this was available in previous versions or not, as I did not notice errors before.

POP3 RETR (446) failed – ERR Message 446 has been deleted.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (445) failed – ERR Message 445 has been deleted.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (444) failed – ERR Message 444 has been deleted.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (443) failed – ERR message 443 was deleted.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (442) failed – ERR Message 442 has been deleted.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (441) failed – ERR Message 441 has been deleted.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (440) failed – ERR Too many faulty commands.

[08:52:40] AA inllc 50 Tier 2: [-] POP3 RETR (439) failed – SockError: Connection was reset by peer

Here is a screenshot of the email settings

Error while executing source ~ / .bashrc command

/home/my-pc/.bashrc:16: Command not found: shopt
/home/my-pc/.bashrc:24: Command not found: shopt
/home/my-pc/.bashrc:111: Command not found: shopt
/ usr / share / bash-completion / bash_completion: 51: command not found: shopt
/ usr / share / bash-completion / bash_completion: 57: command not found: complete
/ usr / share / bash-completion / bash_completion: 62: command not found: complete
/ usr / share / bash-completion / bash_completion: 65: command not found: terminated
/ usr / share / bash-completion / bash_completion: 68: command not found: terminated
/ usr / share / bash-completion / bash_completion: 71: Command not found: completed
/ usr / share / bash-completion / bash_completion: 74: Command not found: stopped
/ usr / share / bash-completion / bash_completion: 77: command not found: complete
/ usr / share / bash-completion / bash_completion: 80: Command not found: stopped
/ usr / share / bash-completion / bash_completion: 83: Command not found: terminated
/ usr / share / bash-completion / bash_completion: 86: command not found: complete
/ usr / share / bash-completion / bash_completion: 89: command not found: complete
/ usr / share / bash-completion / bash_completion: 92: Command not found: terminated
/ usr / share / bash-completion / bash_completion: 314: Parsing error near  n
[e]0;  u @  h:  w  a ][33[01;32m] u @  h [33[00m]: [33[01;34m] w [33[00m]$ 

that's the issue

Query – Error creating a MySQL table?

I made a diagram of a database using MySQL WorkBench and let the script generate it. When I run it, the following error occurs:

Run SQL script on the server
ERROR: Error 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MariaDB server version for the correct syntax to be used near & # 39; & # 39 ;.
INDEX `fk_carro_leilao1_idx` (` leilao_idleilao` ASC) VISIBLE,
CONSTRAINT `f & # 39; in line 15

SQL code:

                Eur-lex.europa.eu eur-lex.europa.eu -----
- Table "Cars"
Eur-lex.europa.eu eur-lex.europa.eu -----
CREATE TABLE, IF NOT "carrole".
"idcarro" INT NOT NULL AUTO_INCREMENT,
`template` VARCHAR (45) NOT NULL,
"mark" VARCHAR (45) NOT NULL,
"year" VARCHAR (5) NOT NULL,
"Fuel" VARCHAR (45) NOT NULL,
`precoFIPE` VARCHAR (45) NOT NULL,
"Reference" VARCHAR (45) NOT NULL,
`preco_idpreco` INT NOT NULL,
`leilao_idleilao` INT NOT NULL,
PRIMARY KEY ("idcarro", "preco_idpreco", "leilao_idleilao"),
INDEX `fk_carro_preco_idx` (` preco_idpreco` ASC) VISIBLE,
INDEX `fk_carro_leilao1_idx` (` leilao_idleilao` ASC) VISIBLE,
CONSTRAINT `fk_carro_preco`
Foreign key (`preco_idpreco`)
REFERENCES `carlosleilao`.`preco` (` idpreco`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_carro_leilao1`
Foreign key (`leilao_idleilao`)
REFERENCES `carsleilao`.`leilao` (` idleilao`)
ON DELETE NO ACTION
UPDATE NO ACTION)
ENGINE = InnoDB

I could not identify the problem because the script was generated by the tool itself

Windows – Error installing CPP tools

I tried to install compilers for C ++ by following the instructions [below]: (https://stackoverflow.com/questions/30269449/how-do-i-set-up-visual-studio-to-compile-c-code)

Here is the preview of the article of the article I followed:

Press (Ctrl + P) and enter:

ext install cpptools
Open a folder (Ctrl + K and Ctrl + O) and create a new file inside the folder with the extension .cpp (for example, hello.cpp):

Enter your code and click "Save."

Press (Ctrl + Shift + P) and enter Configure Task Runner. Then select Other at the bottom of the list.

Create a batch file in the same folder named build.bat and paste the following code into the body of the file:

@echo off
Invoke "C: Program Files (x86) Microsoft Visual Studio 14.0 VC vcvarsall.bat" x64
set compiler flags = / Od / Zi / EHsc
set linkerflags = / OUT: hello.exe
cl.exe% compilerflags% hello.cpp / link% linkerflags%
Edit the task.json file as follows and save it:

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation of the format of task.json
"Version": "0.1.0",
"Command": "build.bat",
"isShellCommand": true,
// "args": [“Hello World”],
"showOutput": "always"
}
Press Ctrl + Shift + B to execute the build task, which will create the OBJ and EXE files for the project.

To debug the project, press F5 and select C ++ (Windows).

In the launch.json file, edit the following line and save the file:

"Program": "$ {workspaceRoot} /hello.exe",
Press F5.

Here's the mistake I get:

The system can not find the path specified.
& # 39; # 39 & cl.exe; is not recognized as an internal or external command.
operable program or batch file.

Here are my software details:

Version: 1.32.3 (user setting)
Commit: a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4
Date: 2019-03-14T23: 43: 35.476Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
Operating system: Windows_NT x64 10.0.17763

Any suggestions, what happens?

500 Internal server error after server move

Due to memory issues with the previous host, I switched Magento 2.2.7 to a VPS.
Initially, the migration team configured the store on the new server with PHP 5.6. For this reason, the ssh commands did not work. I changed the PHP version from 5.6 to 7.1. SSH commands worked. The reindex command did not work as expected.

Please see the picture below. Only one index has been re-indexed.

Enter the image description here

Someone suggested that I execute the following commands on ssh.

php -dmemory_limit = 5G bin / magento setup: upgrade
php -dmemory_limit = 5G bin / magento setup: di: compile
php -dmemory_limit = 5G bin / magento setup: static-content: deploy
php -dmemory_limit = 5G bin / magento c: c
php -dmemory_limit = 5G bin / magento c: f

The site is then inactive and shows 500 internal server errors.
Below is the Htaccess code.

        ###########################################
## overrides the deployment configuration mode
## Use the command bin / magento deploy: mode: switch between modes

# SetEnv MAGE_MODE developer

###########################################
Comment out these lines for CGI mode
## Make sure you specify the correct name of the CGI PHP binary
## it could be / cgi-bin / php-cgi

# Action php5-cgi / cgi-bin / php5-cgi
# AddHandler php5-cgi .php

###########################################
## GoDaddy-specific options

# Options -MultiViews

## You may also need to paste this line into php.ini
## cgi.fix_pathinfo = 1
## If it still does not work, rename php.ini to php5.ini

###########################################
## This line is specific to 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

###########################################
## standard index file

DirectoryIndex index.php


###########################################
## Set memory limit

php_value memory_limit 756M
php_value max_execution_time 18000

###########################################
## Deactivate the automatic session start
## before the autoload was initialized

php_flag session.auto_start off

###########################################
## Enable the resulting HTML compression

#php_flag zlib.output_compression

##########################################
## Disable User Agent Verification to prevent uploading multiple images

php_flag suhosin.session.cryptua





###########################################
## Set memory limit

php_value memory_limit 756M
php_value max_execution_time 18000

###########################################
## Deactivate the automatic session start
## before the autoload was initialized

php_flag session.auto_start off

###########################################
## Enable the resulting HTML compression

#php_flag zlib.output_compression

##########################################
## Disable User Agent Verification to prevent uploading multiple images

php_flag suhosin.session.cryptua





##########################################
## Disable POST processing so as not to interrupt the uploading of multiple images

SecFilterEngine Off
SecFilterScanPOST Off










###########################################
## Enable the file compression provided by Apache
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter for all content
### SetOutputFilter DEFLATE
# Insert filter only for selected content types
#AddOutputFilterByType DEFLATE text / html text / plain text / xml text / css text / Javascript application / Javascript application / X Javascript application / Json image / SVG + XML

# Netscape 4.x has some problems ...
#BrowserMatch ^ Mozilla / 4 only gzip-text / html

# Netscape 4.06-4.08 have some problems
#BrowserMatch ^ Mozilla / 4  .0[678] no-gzip

# MSIE masquerades as Netscape but is fine
#BrowserMatch  bMSIE! No-gzip! Gzip-only-text / html

# Do not compress images
#SetEnvIfNoCase Request_URI . (?: Gif | jpe? G | png) $ no-gzip does not vary

# Make sure proxies do not deliver the wrong content
#Header append Vary User-Agent env =!











###########################################
## Make HTTPS environments available for CGI mode

SSLOptions StdEnvVars



###########################################
## Workaround for Apache 2.4.6 CentOS Build when working through ProxyPassMatch with HHVM (or another)
## Please set it to the configuration level of the virtual host

## SetEnvIf permission "(. *)" HTTP_AUTHORIZATION = $ 1
###########################################



###########################################
## Activate rewriting

Options + FollowSymLinks
Turn on the RewriteEngine

###########################################
## You can insert your Magento root folder here
## Path relative to the web root

#RewriteBase / magento /

###########################################
## Workaround for HTTP authorization
## in the CGI environment

RewriteRule. * - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

###########################################
## TRACE and TRACK disable HTTP methods to prevent XSS attacks

RewriteCond% {REQUEST_METHOD} ^ TRAC[EK]
    RewriteRule. * - [L,R=405]

###########################################
## Forwarding for mobile user agents

# RewriteCond% {REQUEST_URI}! ^ / MobileDirectoryhere /.*
# RewriteCond% {HTTP_USER_AGENT} "android | blackberry | ipad | iphone | ipod | iemobile | opera mobile | palmos | webos | googlebot-mobile" [NC]
    #RewriteRule ^ (. *) $ / MobileDirector / [L,R=302]

###########################################
## Never write for existing files, directories and links

RewriteCond% {REQUEST_FILENAME}! -F
RewriteCond% {REQUEST_FILENAME}! -D
RewriteCond% {REQUEST_FILENAME}! -L

###########################################
## Write everything else in index.php

RewriteRule. * Index.php [L]













###########################################
## Prevent character encoding problems with server overrides
## If you are still having problems, use the second line instead

AddDefaultCharset Off
AddDefaultCharset UTF-8
#AddType & # 39; text / html; Character set = UTF-8 .html



###########################################
## Add standard header "Expires"
## http://developer.yahoo.com/performance/rules.html#expires

ExpiresDefault "Access plus 1 year"
ExpiresByType text / html A0
ExpiresByType text / plain A0



##########################################
## Deny access to root files to hide sensitive application information
RedirectMatch 403 /.git

    
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    
    
        
        
        
        <IfVersion < 2.4>
            Allowing order, denying
rejected by all
        
        = 2.4>
Requires all denied
        
    







# For 404s and 403s that are not handled by the application, you will receive a simple 404 response
ErrorDocument 404 /pub/errors/404.php
ErrorDocument 403 /pub/errors/404.php

#################################
## If you're running in a clustered environment, you can comment it out
## http://developer.yahoo.com/performance/rules.html#etags

#FileEvent no

# ############################################# ### ###################
# # INTERNET EXPLORER #
# ############################################# ### ###################

# ----------------------------------------------- - -------------------
# | Document Modes |
# ----------------------------------------------- - -------------------

# Force Internet Explorer 8/9/10 to render pages in highest mode
# Available in different cases, if not.
#
# https://hsivonen.fi/doctype/#ie8
#
# (!) As of Internet Explorer 11, document modes are no longer used.
# If your business still relies on legacy web apps and services
# For older versions of Internet Explorer, you might want to
# Consider activating enterprise mode in your company.
#
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx



    Header X-UA compatible "IE = edge"

# `mod_headers` can not match depending on the content type.
# The & # 39; X-UA-Compatible & # 39; response header should only be sent for
# HTML documents and not for the other resources.

    
        Header is not X-UA compatible
    









# php - BEGIN cPanel generated handler, do not edit
# Set the package "ea-php71" as the default programming language "PHP".

  # AddHandler application / x-httpd-ea-php71.php.php7.phtml

# php - END cPanel generated handler, do not edit

Please suggest a solution.

Many Thanks,
Niraj

firebase – Register a new user with a PIN code that indicates an error

In the folder main.js I read a user PIN code input (he received from a text message), then I call a function in another fileGoogleSMS.js to register him:

Function registerUserWithCode (code)
{
console.log ("1");

confirmResult.confirm ("8765432"). then (function (result) {
// user has successfully logged in.
console.log ("registered");

var user = result.user;
// ...
}). catch (function (error) {
// user could not log in (wrong verification code?)
console.log ("error");
// ...
});
}

I always get the mistake:

confirmResult is undefined

Google SDK works and is mainly imported html File.
Do I have to record something in it? GoogleSMS.js File?

Drupal-7.65 has been installed and the JIT compilation error is displayed

Brand new to Drupal and creating websites in general. Just set up a local server and install Drupal 7.65. Before I do anything, I get a long list of errors as I navigate to a new page. Each one begins with the following:

Warning: preg_match (): JIT compilation failed: out of memory in *

Along with this error:
Your maximum PHP upload size is larger than your maximum post size. It is known that this causes problems with some installations.

Does something seem to fix me? Does anyone know how?

Partitioning – Is this a Firefox error?

PROBLEM:

Firefox can not open files from an ntfs partition
/ media / myhd (neither save nor save / media / myhd / downloads)

INFO:

DISTRO: Xubuntu 18.04

+

fSTAB: UUID = 38FEBFFAFEBFAE8E / media / myhd ntfs umask = 0000, rw, suid, dev, auto, user, async, exec, allow_other, uid =Beginnergid =Beginnerwindows_names
0 0

+

MyHD was successfully assembled and Beginner is the current owner.

I think this problem is because Firefox is currently in / snap / firefox and the Snap partition has a different file system or maybe a Firefox error.