I'm configuring a custom language server for JupyterLab using the jupyterlab-lsp extension, and I'm running into some permissions issues.
For context, I have JupyterLab installed in a Conda environment, where I also have the aforementioned extension installed. For some reason, though, whenever my language server starts the initialization process (in a local JupyterLab notebook instance), I get the following error in my terminal:
PermissionError: [Errno 13] Permission denied: '/Users/garrettc/src/my-lsp/vscode-extension-samples/my-lsp/server'
I checked the permissions of this folder, and all users have Read, Write and Execute access, so I'm very confused. I also checked the permissions within the Conda environment, and they are identical. Please let me know if there are any relevant files that I should include, as I have no idea why I'm seeing this.
Result of ls .../vscode-extension-examples/my-lsp/:
README.md client server
Untitled.ipynb node_modules tsconfig.json
Untitled1.ipynb package-lock.json untitled.txt
Untitled2.ipynb package.json untitled1.txt
Untitled3.ipynb scripts yarn.lock
Related
When inputting 'mkdir Thinkful' to the command-line, I get the following message:
mkdir: cannot create directory ‘Thinkful’: Permission denied
I recently downloaded git version 2.37.3.windows.1 and I am using Windows 10. I have Developer Mode 'ON' in my settings, as well as, all of the default options chosen for Git Bash upon install. I have looked through other similar problems on stackoverflow, but have not found a solution to my problem.
Help is greatly appreciated.
Your user need to have write permission on the current directory.
You can find more on linux administration here for example:
https://www.youtube.com/c/tutoriaLinux?app=desktop
I have downloaded the plv8 installation package from xTuple using this link.
I have run the installation batch file in that package.
I've checked the relevant files are now in bin, lib and share/extension.
I have given my user superuser permissions with:
ALTER USER administrator WITH superuser
When I try to create the extension, I receive a Permission Denied error:
CREATE EXTENSION IF NOT EXISTS plv8
> ERROR: could not open extension control file "C:/Program Files/PostgreSQL/12/share/extension/plv8.control": Permission denied
I can't work out what's wrong.
First of all, thank you for providing the link to the packaged extension.
I installed the PLV8 extension using the .bat file, and then I had to restart the PostgreSQL service on my Windows machine.
After that, running the create extension plv8; command in pgAdmin worked without a problem.
I verified that the extension is installed by trying to execute the same command again and getting an "ERROR: extension "plv8" already exists" message.
I think you have have forgotten to restart the PostgreSQL service after installation of the extension package.
I installed phing via apt-get on my Ubuntu machine. Then I set up phing as external program in Eclipse but now I am facing a permission problem.
Giving phing.php a different owner did not help. I still get:
Exception occurred executing command line.
Cannot run program "/usr/share/php/phing.php"
(in directory "/var/www/html/fullerweb"): error=13, Permission denied
What permissions are needed?
Try to use /usr/bin/phing instead.
I have set up Jupyterhub, and installed anaconda and created a jupyterhub kernel on my user's home directory, in :
~/.local/share/jupyter/kernels/
How can I share this kernel accross all the users in my organisation ?
Of what I understand, jupyterhub spawn a new ipython notebook for each user, each notebook being on the user's home directory.
Should I really copy-paste the kernels into each of my team member in their home directory ?
Or can we have a central point of declaration for the kernels. If so, how to do it ?
PS : We have an ldap server for login.
In the installation of Jupyterhub, it creates a global directory that all users look at. It's typically /usr/local/share/jupyter, but to double check that you can run the command jupyter --paths and it will print all of the paths it uses. You'll want the data one.
There's should be a 'kernels' dir. If there's not then make one. I can't remember off the top of my head, but jupyter kernelspec install /path/to/kernel/source might create the directory for you. Regardless, in the kernels directory of your global jupyter directory, there should be a directory for each kernel you want to install, and within that, the .json file of the kernel. Hope this helps!
I'd like to install a PHP extension on a bluehost shared site; specifically the MongoDB driver. Since pecl is unable to write to the primary server directory that has all the installed extensions, I'd like to install the mongo.so file to a directory I specify under my home. The closest article I found on the web was:
http://www.site5.com/blog/programming/php/how-to-setup-your-own-php-pear-environment/20090624/
However, after following the steps when I use the "pecl install mongo" command, it still keeps trying to install to bluehost's central directory on the server.
According to my web host's technical support team, utilising the pecl installer attempts to install the extension server-wide rather than under your account only. My web host doesn't allow server-wide installations in their shared environment for security reasons and because they want to keep their fleet universally the same across the board. I suspect your host is the same.
However, they did suggest I download, configure and install the pecl package (pecl_http) in my account only (rather than server-wide) via the following manual process:
$ cd ~/
$ wget http://pecl.php.net/get/pecl_http
$ tar -zxvf pecl_http.tar.gz
$ cd pecl_http
$ phpize
$ ./configure --prefix=~/bin
$ make
$ make test
$ make install
A successful install will have created extname.so and put it into the
PHP extensions directory. You'll need to edit php.ini (in my case,
this was a copy of the standard php.ini file that I placed in the same
folder as the script using the extension) and add an
extension=extname.so line (in my case, extension=http.so) before you can use the extension.
http://www.php.net/manual/en/install.pecl.phpize.php
Note that the tilde character (~) in the above code refers to the home directory of the current user (e.g. /home/username on my host's server).
Issues you may run into
When using the tar command, a "cannot open: not a directory" error
appeared as pecl_http had been downloaded without a file extension.
This was easily corrected:
mv pecl_http pecl_http.tar.gz
When using the make install command, a "cp: cannot create regular
file...: Permission denied" errror appeared. I resolved this issue
by changing the ext_dir for pecl...
pecl config-set ext_dir /home/username/bin/extensions
...and re-running make install. I also had to copy the http.so extension to /home/username/bin/extensions and then reference that location in my php.ini file:
extension_dir = "/home/username/bin/extensions"
this sounds like you don't have root access to your server. if your need to compile anything you must be have root access permission to server, or maybe you must be one of the sudoers.