How to fix 'Failure in `windows_configure_web_node.py FileNotFoundError` - python

I'm trying to configure Microsoft Machine Learning Server (9.4) to work on my local computer.
I'm getting stuck at following this instruction:
https://learn.microsoft.com/en-us/machine-learning-server/operationalize/configure-machine-learning-server-one-box
at
# With elevated privileges, run the following commands.
# Set up both nodes on one machine
az mlserver admin node setup --onebox --admin-password <Password> --confirm-password <Password>
I have tried to reinstall the machine learning server (not including R), same results.
This is the error message that is shown when trying to configure the machine learning server:
C:\WINDOWS\system32>az mlserver admin bootstrap
Admin password:
Confirm admin password:
fail The web node failed to be configured.
Failure in `windows_configure_web_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
fail The compute node failed to be configured.
Failure in `windows_configure_compute_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
The web node failed to be configured.
Failure in `windows_configure_web_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
The compute node failed to be configured.
Failure in `windows_configure_compute_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
Has someone else already encountered/solved that issue?
Thank you very much!

I was able to find the solution for my problems.
My system could not find powershell.exe, as it was not added to the PATH environment variable.
By adding a reference to
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
I could get the server up and running.

Related

ERROR:cache_util_win.cc(20)] Unable to move the cache: Access denied (0x5)

When I try to run the python command to connect the carla server to the client, I am getting "unable to move the cache error". Posting the full error code below:
[13908:1117/115305.393:ERROR:cache_util_win.cc(20)] Unable to move the cache: Zugriff verweigert (0x5)
[13908:1117/115305.394:ERROR:cache_util.cc(145)] Unable to move cache folder C:\Users\xxxxxxx\AppData\Roaming\Code\Cache\Cache_Data to C:\Users\xxxxxxx\AppData\Roaming\Code\Cache\old_Cache_Data_000
[13908:1117/115305.394:ERROR:disk_cache.cc(196)] Unable to create cache
Anyone have any idea why this is happening ?

"[Errono 11003] getaddrinfo failed" occurs only when running the pyinstaller .exec file on the company's internal network PC

All of the following cases were performed normally.
home PC + python code
home PC + pyinstaller .exe
company's internal network PC + python code
"[Errono 11003] getaddrinfo failed" occurs only when running the pyinstaller .exec file on the company's internal network PC.
The same error occurs even when running the pyinstaller .exe file created on the home PC on the company's internal network PC.
the code is very simple
import socket
socket.getaddrinfo( 'localhost', 3306 )
The error message is as below.
socket.gaierror: [Errono 11003] getaddrinfo failed
[37152] Failed to execute script 'test00' due to unhandled exception!
The execution environment is the same both at home and at work.
OS : Windows10
Python : 3.8
Please tell me what is the cause.

Tabpy: function Deployment fails on Docker running Tabpy

I am trying to deploy function to tabpy server , but I am getting following error while executing :
client.deploy('add',add,'adding x and y')
I am getting following error :
Overwriting existing file "/usr/local/lib/python3.9/site-packages/tabpy/tabpy_server/staging/endpoints/name/1" when saving query object
Error with server response. code=500; text={"message": "error adding endpoint", "info": "FileNotFoundError : [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/tabpy/tabpy_server/staging/endpoints/name/1'"}
I am able to deploy if I run tabpy on my local machine , but running in docker is not working.
You can only deploy functions directly from Tabpy server. remote deployment is not possible.

Jupyterhub: PermissionError: [Errno 13] Permission denied: 'jupyterhub-proxy.pid'

I'm trying to install Jupyterhub on Linux server.
So I have sudo rights but I'm not a root.
I already configured JupyterHub and it's config, so I can run it in single-user mode (from different folders too).
But I have this error when trying to start multi-user as described here:
official documentation link.
I faced the same problem before with configurable-http-proxy and jupyterhub.sqlite - the problem was multi-user script try to save this files in system directory (/lib/systemd/system/jupyterhub.service or /etc/systemd/system/jupyterhub.service).
I changes such parameters in jupyter_config.py:
## url for the database. e.g. `sqlite:///jupyterhub.sqlite`
c.JupyterHub.db_url = 'sqlite:////data/jupyterhub/jupyterhub.sqlite'
## DEPRECATED since version 0.8. Use ConfigurableHTTPProxy.command
#c.JupyterHub.proxy_cmd = []
c.ConfigurableHTTPProxy.command = '/data/anaconda3/envs/fraud/bin/configurable-http-proxy'
So I tried the same way for jupyterhub-proxy.pid:
## File to write PID Useful for daemonizing JupyterHub.
c.JupyterHub.pid_file = '/data/jupyterhub/jupyterhub-proxy.pid'
But looks like JupyterHub ignores it and still trying to save it to system directory!
I add print to jupyterhub/proxy.py at _write_pid_file(self) function:
self.log.info("Writing log: %s", self.pid_file)
self.log.info("Writing log: %s", os.path.abspath(os.curdir))
Output:
[I 2019-12-19 20:23:50.289 JupyterHub proxy:562] Writing proxy pid file: jupyterhub-proxy.pid
[I 2019-12-19 20:23:50.290 JupyterHub proxy:564] Writing log: /
My idea - maybe there is another one config parameter I need to change, but I can't find anythig relevant.
It worked for me setting the c.ConfigurableHTTPProxy.pid_file parameter in the jupyterhub configuration file.

run_web.sh not found even though it's there in dir?

I just installed Docker, after setting up few things like Python, Django, etc., I got an error before my web server gets running.
To get web server running I have written a script named run_web.sh. It's also configured in docker-compose.yml that to run web server, run a command exec run_web.sh. When executing that command, it throws an error as below:
Starting portalapi_web_1 ... error
ERROR: for portalapi_web_1 Cannot start service web: oci runtime error: container_linux.go:265: starting container process caused "exec: \"./run_web.sh\": stat ./run_web.sh: no such file or directory"
ERROR: for web Cannot start service web: oci runtime error: container_linux.go:265: starting container process caused "exec: \"./run_web.sh\": stat ./run_web.sh: no such file or directory"
ERROR: Encountered errors while bringing up the project.
Where run_web.sh file is in my root dir of the project same as docker-compose.yml, it is not able to find it. Don't know what is the issue.
Even when I run exec run_web.sh from my root dir, still gets error : Not Found
If your ENTRYPOINT is the default one ( /bin/sh -c), which you can check with a docker image inspect <yourImage>, then try simply as a CMD:
/full/path/of/run_web.sh
That way, you reference directly what you want to launch.

Categories