Failed to save 'file.ipynb ': Cannot read properties of undefined (reading 'logger') - amazon-ec2

So usually i open my terminal and paste a ssh target link like the one below and then open localhost:1234 on some browser like chrome.I use this server to run heavy jupyter notebooks that could potentially fry my laptop. But i wanted to use vscode instead of using my browser.
ssh -N -L localhost:1234:localhost:1234 ubuntu#ec2-13-234-456.server-example.compute.amazonaws.com
So i connected my vs code to a remote ssh server. Everything was fine, until i wrote a bunch of code and tried saving it. When i tried to save the notebook it started giving me this error
Failed to save 'file.ipynb ': Cannot read properties of undefined (reading 'logger')
frankly i'm clueless as to why this is happening.

Is your file name file.ipynb?
I had this same problem, which quickly fixed itself when I renamed my file from 'file name.ipynb' to 'filename.ipynb'

I had the same problem. I copied the .ipynb file for backup and then discarded the error message. The original file didn't change after discarding the error message. I could save changes to the original file again.

Related

When I try to save I get enospc Error VSCODE

when I try to save one of the file of my workspace it gave me this error:
"Failed to save 'style.css': The content of the file is newer. Please compare your version with the file contents or overwrite the content of the file with your changes."
I'm a WINDOWS 10 user, and a newbie so I don't really know what to do about it, of course I have a lot of free space on my pc
I tried to restart the software first and than the computer.

AWS Beanstalk Laravel post deploy hooks no such file or directory

I'm trying to deploy laravel app to aws beanstalk, OS is Amazon Linux 2 AMI.
I've setup following files:
.ebextensions/01-deploy-script-permission.config
It contains below code:
container_commands:
01-storage-link:
command: 'sudo chmod +x .platform/hooks/postdeploy/post-deploy.sh'
And
.platform\hooks\postdeploy/01-post-deploy.sh
It contains below code:
php artisan optimize:clear
Upon deploying it fails with following entry in eb-engine.log file
[ERROR] An error occurred during execution of command [app-deploy] -
[RunAppDeployPostDeployHooks]. Stop running the command. Error:
Command .platform/hooks/postdeploy/post-deploy.sh failed with error
fork/exec .platform/hooks/postdeploy/post-deploy.sh: no such file or
directory
This answer is for users who are using Windows to deploy their files to elastic beanstalk.
I found this information after spending 6 precious hours. Probably not documented anywhere in official documentations
As per this link "https://forums.aws.amazon.com/thread.jspa?threadID=321653"
psss: most important that the file is saved with LF line separator.
CRLF makes "no file or directory found"
So I used Visual Studio Code to convert CRLF to LF for files in .platform/hooks/postdeploy
At the bottom right of the screen in VS Code there is a little button
that says “LF” or “CRLF”: Click that button and change it to your
preference.
I don't know for sure but I think you are running the command before the files are even created hence getting the following error.
A while ago I faced the same kind of problem where I wrote migration commands in .ebextension and it used to give me an error because my env file wasn't even created yet hence no DB connection is made so I was getting the error. Hope this will give you a direction.
By the way, I resolved the problem by creating env then pushing these commands through the pipeline.

TortoiseGit - launch repobrowser command produces "no working directory found"

From the command line I am attempting to open the repobrowser by using the following command:
TortoiseGitProc.exe /command:repobrowser
Once the command is executed a dialog displaying "No working directory found." is displayed. I have even tried pointing to where I think the repo is by the following:
TortoiseGitProc.exe /command:repobrowser /path:"http://domain.here.com/" /notempfile
This produces the same error. I have done something similar using TortoiseSVN which brings up a URL dialog box.
I have looked in the settings to see if a path may be set for temporary files, but I didn't find any. Why is this error happening and how do I correct it?
Thanks.
With (Tortoise)Git it is not possible view a remote repository in the repository browser w/o cloning it first.
TortoiseGitProc.exe /command:repobrowser w/o the /path: parameter only works if the current directory is a working tree or (bare) local repository.

WKHTMLTOPDF and "Error: Unable to create temporery file"

I've written a piece of code in PHP to generate PDF using WKHTMLTOPDF binary file. It was working fine till I had to recompile my Apache. Now it fails with error Error: Unable to create temporery file (this is the exact wording).
The situation in which the error is reproducible is a little complicated. I managed to narrow down the error and now I'm pretty sure that the error happens because of the user that Apache runs as. It seems to me that when WKTHMLTOPDF is running as a user with no home folder, it's unable to access a temporary folder within the user's home folder.
Surely I can change the Apache's user but I would rather resolve this problem once and for all. To this end it would be great if I could somehow set the temp folder for WKHTMLTOPDF or at least print its current value to make it valid! Does anyone know how to do any of these two?
BTW, I'm using WKHTMLTOPDF 0.11.0 rc1.
I saw the same error today in Rails4 + pdfkit gem(0.8.2) + wkhtmltopdf(0.12.2.1) under CentOS 6.7.
This error came from wkhtmltopdf and the reason was it couldn't create temporary file. wkhtmltopdf depends on some temporary filename creation API (I'm not sure), but probably following shows some hints:
$ man tempfile
$ man tempnam
In my case, my TMPDIR environment variable showed wrong path (I had accidentaly deleted the directory!) so that wkhtmltopdf couldn't create work file.
When I unset TMPDIR, then it worked! Of course, setting correct existence directory to TMPDIR should be OK too.

Joomla administrator login error

I have a Joomla 3.1 installation on a ubuntu server and it was working fine.
Today, I have downloaded a template and placed the zip file on templates folder, unziped by ubuntu terminal and that's all. Since then, when I try to login on Administrator side, it gives this error:
An error has occurred.
0 SQL=SHOW FULL COLUMNS FROM `<prefix>_users`
I have deleted the zip files considering it was the only change I've made, but nothing happens. I noticed that if I login incorrectly, it gives another error:
An error has occurred.
0 Cannot open file for writing log
Like it has some problem to write the log file, but hours ago it could. Anyway, knowing this, I changed all folders/files permissions to 777.
Thanks in advance.

Resources