|
POST
|
You should only need to update the urls string with your FeatureServer endpoint, then add the code to the right spot in a cloned editor widget in ExB Dev Edition. That's why I did anyway. If you're using a different app or different version then it will be a slightly different process.
... View more
04-13-2023
10:27 PM
|
0
|
0
|
2724
|
|
POST
|
I'm wondering if someone can help me solve the puzzle of getting the default values for fields to populate in the edit widget when creating a new feature. I have 4 fields setup in a feature service (AGS 10.9.1, data in enterprise geodatabase) with a domain and default value: and I have added that layer to a webmap, then to ExB Dev Edition 1.11 Edit widget. When I create a new point, it only applies the default value for one of the 4 fields: I can't see a reason why that one is set and the others aren't. Any ideas?
... View more
03-29-2023
10:00 PM
|
1
|
3
|
1464
|
|
POST
|
I ended up getting around it with an interceptor, but was hoping not to have to make a custom widget to get around it long term. esriConfig.request.interceptors.splice(0, 0, {
urls: "https://<FeatureServer URL>",
before: function(params) {
if (params.requestOptions.query.returnServiceEditsOption && params.requestOptions.query.returnServiceEditsOption === "originalAndCurrentFeatures") {
params.requestOptions.query.rollbackOnFailure = true;
}
}
});
... View more
03-29-2023
06:56 PM
|
3
|
3
|
2828
|
|
POST
|
I'm wondering if I'm getting this error because of something I've miss configured or it's a bug. I've installed the Dev Edition 1.11 and am testing out the Editor Widget. I've setup my layers and in testing a first edit I get this error: 0: "Error: Combination of parameters rollbackOnFailure = false & returnServiceEditsOption = originalAndCurrentFeatures for applyEdits operation is not supported." extendedCode: -2147467259 message: "Unable to complete operation." Looking at the body of the request: and the documentation of applyEdits, the originalAndCurrentFeatures option is only valid when rollBackOnFailure is true. As rollBackOnFailure isn't being set in the request, I'm guessing it's defaulting to false, which is causing my error. Is there a way I can get the Editor Widget to send the rollBackOnFailure parameter as true without customizing? My edit layer is an ArcGIS Server 10.9.1 Feature Service with the data in an Enterprise Geodatabase.
... View more
03-27-2023
07:33 PM
|
3
|
13
|
4005
|
|
IDEA
|
I am also getting this behavior around New Zealand, and doesn't present in the Classic Map Viewer.
... View more
02-12-2023
06:47 PM
|
0
|
0
|
674
|
|
BLOG
|
@Jianxia, are there any plans to support text formatting in the list widget with Arcade or simple HTML tags? If so will that be listed on the roadmap or will it get added without showing up on the roadmap?
... View more
01-19-2022
09:38 PM
|
4
|
0
|
15084
|
|
POST
|
Wow, what an unbelievably comprehensive answer. requests.utils.getproxies() did the trick. Thanks for the workaround, I'm putting on a hat just so I can take it off...
... View more
01-16-2022
08:26 PM
|
0
|
0
|
3908
|
|
POST
|
I am also unable to set the right proxy settings to be able to connect to portal through the python api. I need to be able to send the https request to a http proxy address and it seems that the python api doesn't support this. What's frustrating is that if I do the same request outside of the python api, using Requests or urllib, I am able to connect. The following request is successful: proxy = {'http': 'http://<ipaddress>:8080', 'https': 'http://<ipaddress>:8080'} import requests x = requests.get('<portaladdress>/portal/sharing/rest/info?f=json', proxies=proxy) But if I try and use the same proxy setting for the python api I get a getaddrinfo error: >>> from arcgis.gis import GIS >>> GIS('https://<portaladdress>/portal', username="Leon", password="xxx", verify_cert=False, proxy=proxy) Traceback (most recent call last): File "...\python-env\lib\site-packages\urllib3\connection.py", line 170, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "...\python-env\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "...\python-env\lib\socket.py", line 752, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11001] getaddrinfo failed During handling of the above exception, another exception occurred: Traceback (most recent call last): File "...\python-env\lib\site-packages\urllib3\connectionpool.py", line 706, in urlopen chunked=chunked, File "...\python-env\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "...\python-env\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn conn.connect() File "...\python-env\lib\site-packages\urllib3\connection.py", line 353, in connect conn = self._new_conn() File "...\python-env\lib\site-packages\urllib3\connection.py", line 182, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x00000280CA721108>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed During handling of the above exception, another exception occurred: Traceback (most recent call last): File "...\python-env\lib\site-packages\requests\adapters.py", line 449, in send timeout=timeout File "...\python-env\lib\site-packages\urllib3\connectionpool.py", line 756, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "...\python-env\lib\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<portal_address>', port=443): Max retries exceeded with url: /portal/sharing/rest/info?f=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000280CA721108>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 402, in get verify=self._verify_cert) File "...\python-env\lib\site-packages\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "...\python-env\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "...\python-env\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "...\python-env\lib\site-packages\requests\adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='<portal_address>', port=443): Max retries exceeded with url: /portal/sharing/rest/info?f=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000280CA721108>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "...\python-env\lib\site-packages\arcgis\gis\__init__.py", line 359, in __init__ raise e File "...\python-env\lib\site-packages\arcgis\gis\__init__.py", line 343, in __init__ trust_env=kwargs.get("trust_env", None)) File "...\python-env\lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 171, in __init__ trust_env=trust_env) File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 199, in __init__ self._product = self._check_product() File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1421, in _check_product res = self.get(baseurl + '/info', params={'f' : 'json'}, add_token=False) File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 412, in get "A connection error has occurred: %s" % errCE) requests.exceptions.ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='<portal_address>', port=443): Max retries exceeded with url: /portal/sharing/rest/info?f=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000280CA721108>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) This is the same error if I don't use the proxy keyword at all so I don't think the proxy settings are being taken into account. I also don't think using the proxy_host and proxy_port options let you send the https traffic to a http proxy so that isn't an option, but when I try to use them I get this error: >>> GIS('https://e4.cop.ema.np.cp1.homeaffairs.gov.au/portal', username="Leon", password="xxx", verify_cert=False, proxy_host='<ipaddress>', proxy_port=8080) Traceback (most recent call last): File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 402, in get verify=self._verify_cert) File "...\python-env\lib\site-packages\requests\sessions.py", line 555, in get return self.request('GET', url, **kwargs) File "...\python-env\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "...\python-env\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "...\python-env\lib\site-packages\requests\adapters.py", line 449, in send timeout=timeout File "...\python-env\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "...\python-env\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "...\python-env\lib\site-packages\urllib3\connection.py", line 359, in connect conn = self._connect_tls_proxy(hostname, conn) File "...\python-env\lib\site-packages\urllib3\connection.py", line 506, in _connect_tls_proxy ssl_context=ssl_context, File "...\python-env\lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls) File "...\python-env\lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "...\python-env\lib\ssl.py", line 423, in wrap_socket session=session File "...\python-env\lib\ssl.py", line 827, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "...\python-env\lib\site-packages\arcgis\gis\__init__.py", line 359, in __init__ raise e File "...\python-env\lib\site-packages\arcgis\gis\__init__.py", line 343, in __init__ trust_env=kwargs.get("trust_env", None)) File "...\python-env\lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 171, in __init__ trust_env=trust_env) File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 199, in __init__ self._product = self._check_product() File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1421, in _check_product res = self.get(baseurl + '/info', params={'f' : 'json'}, add_token=False) File "...\python-env\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 426, in get raise Exception('A general error occurred: %s' % e) Exception: A general error occurred: check_hostname requires server_hostname
... View more
01-10-2022
04:25 PM
|
0
|
3
|
3928
|
|
POST
|
That is what I'm asking about. I didn't think it would be, but if it was possible, it would be good if it was ported back to 10.8.1. Upgrading versions in a site that has multiple environments, with a change board, with many teams coordinating testing, etc, is quite an overhead so was hoping to get the release version of map viewer with 10.8.1.
... View more
11-24-2021
06:22 PM
|
0
|
0
|
920
|
|
POST
|
Will the Map Viewer add on for ArcGIS Enterprise 10.8.1 be updated with the version that comes with ArcGIS Enterprise 10.9.1?
... View more
11-22-2021
01:53 PM
|
1
|
3
|
983
|
|
POST
|
I think we're going to work around it by creating a new geodatabase and importing the old database into it. It will take longer than shifting the existing one (once working) but should be quicker than raising a support call to troubleshoot the shifting.
... View more
10-21-2021
02:37 PM
|
0
|
1
|
2303
|
|
POST
|
Hi, I am trying to migrate an on-prem 10.1 enterprise geodatabase from SQL Server to a 10.8.1 geodatabase in Azure SQL Database. Using this technical article as a guide, we have upgraded the on-prem 10.1 geodatabase to 10.8.1 using the upgrade geodatabase tool (worked ok after giving the sde user the right permissions). Then migrated the geodatabase into an Azure SQL Database using the Azure Data Migration Assistant , then ran the 10.8.1 upgrade geodatabase tool a second time (to update the stored procedures) but in doing so got the following error: Could not update server tables and stored procedures. (sde_branches : Error (-37) DBMS error code: 2627 [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Violation of UNIQUE KEY constraint 'registry_uk2'. Cannot insert duplicate key in object 'sde.SDE_table_registry'. The duplicate key value is (SDE_BRANCHES, SDE, [database name]). There is no further information in the log files referenced in the error. The geodatabase isn't versioned, though I did try a compress but that had no effect. Is this a bug with the upgrade geodatabase tool using an Azure SQL Database or is there a permission or step that I am missing?
... View more
10-05-2021
10:38 PM
|
0
|
6
|
2731
|
|
POST
|
Simon, thanks for following up on this. I am back on the project that I ran into this problem with and I can confirm with 10.8.1 I am able to create a new file geodatabase through a crontab job. Unfortunately there are a few ArcGIS objects that my script needs to create and I had hoped that the fix for the geodatabase would have fixed all creating commands but I'm unable to create a raster mosaic inside the gdb, or create a cloud storage connection file. Looks like I'll be going back to handing off those tasks to a geoprocessing service.
... View more
03-25-2021
04:49 PM
|
0
|
0
|
2419
|
|
POST
|
Hi, I’m hoping someone can shed some light on a problem I’ve been wrestling with. I have been unable get the Python 3 runtime for ArcGIS Server 10.7.1 on Linux running through a crontab job and wanted to see if anyone else has achieved what I am trying. I have a bash shell script (cron_test.sh) running on Ubuntu 18.04.2 that runs the following commands: export ARCGISHOME=/arcgis/server . /home/arcgis/anaconda3/etc/profile.d/conda.sh conda activate python36b python /home/arcgis/arcgis-imagery/Geoplex/cron_test.py and the cron_test.py script is only creating a file GDB: import sys import os import arcpy import datetime import tempfile import logging TEMPDIR = tempfile.mkdtemp() fgdb_name = "test.gdb" fgdb_path = os.path.join(TEMPDIR, fgdb_name) logging_level = logging.INFO log_dir = '/tmp/logs' now = datetime.datetime.strftime(datetime.datetime.now(), "%Y_%m_%d_%H_%M_%S") logfile_name = "test" + '_' + now + '.log' logging.basicConfig(filename=os.path.join(log_dir, logfile_name), level=logging_level) for a in os.environ: logging.info('Var: ' + str(a) + ' Value: ' + str(os.getenv(a))) logging.info(f"\tCreating file geodatabase in {TEMPDIR}, called {fgdb_name}") arcpy.CreateFileGDB_management(TEMPDIR, fgdb_name) logging.info(f"\tCreated file geodatabase in {TEMPDIR}, called {fgdb_name}") When I sudo into the arcgis user interactively and then run the shell script with the command: Bash /path/to/cron_test.sh The script runs and creates the file GDB fine: INFO:root:Var: CONDA_SHLVL Value: 2 INFO:root:Var: LD_LIBRARY_PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/lib:/arcgis/server/bin/wine/lib64:/arcgis/server/bin/wine/lib64/wine:/arcgis/server/bin/wine/lib64/wine/supp:/arcgis/server/framework/runtime/tomcat/bin:/arcgis/server/lib: INFO:root:Var: LIBGL_DRIVERS_PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/lib/dri INFO:root:Var: LS_COLORS Value: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: INFO:root:Var: CONDA_EXE Value: /home/arcgis/anaconda3/bin/conda INFO:root:Var: FONTCONFIG_PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/etc/fonts INFO:root:Var: XVFBPATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb INFO:root:Var: LESSCLOSE Value: /usr/bin/lesspipe %s %s INFO:root:Var: SDEHOME Value: /arcgis/server INFO:root:Var: LANG Value: C.UTF-8 INFO:root:Var: AGS_ORIG_PATH Value: /arcgis/server/bin:/home/arcgis/anaconda3/envs/python36b/bin:/home/arcgis/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games INFO:root:Var: SUDO_GID Value: 1000 INFO:root:Var: OLDPWD Value: /home/arcgis INFO:root:Var: WINEPATH Value: /arcgis/server/bin/wine INFO:root:Var: AGSSERVER Value: /arcgis/server/ INFO:root:Var: USERNAME Value: root INFO:root:Var: CONDA_PREFIX Value: /home/arcgis/anaconda3/envs/python36b INFO:root:Var: SUDO_COMMAND Value: /bin/su arcgis INFO:root:Var: _CE_M Value: INFO:root:Var: CLASSPATH Value: /arcgis/server/framework/lib/arcobjects.jar: INFO:root:Var: USER Value: arcgis INFO:root:Var: CONDA_PREFIX_1 Value: /home/arcgis/anaconda3 INFO:root:Var: arcgis_cloud_platform Value: aws INFO:root:Var: PWD Value: /tmp/logs INFO:root:Var: HOME Value: /home/arcgis INFO:root:Var: CONDA_PYTHON_EXE Value: /home/arcgis/anaconda3/bin/python INFO:root:Var: SUDO_USER Value: ubuntu INFO:root:Var: ARCGISHOME Value: /arcgis/server INFO:root:Var: _CE_CONDA Value: INFO:root:Var: WINEDEBUG Value: -all INFO:root:Var: TOMCATBIN Value: /arcgis/server/framework/runtime/tomcat/bin INFO:root:Var: CONDA_PROMPT_MODIFIER Value: (python36b) INFO:root:Var: SUDO_UID Value: 1000 INFO:root:Var: MAIL Value: /var/mail/arcgis INFO:root:Var: ARCGIS_JAVA_HOME Value: /arcgis/server//framework/runtime/jre/ INFO:root:Var: TERM Value: xterm INFO:root:Var: SHELL Value: /bin/bash INFO:root:Var: FONTCONFIG_FILE Value: /arcgis/server/framework/runtime/xvfb/Xvfb/etc/fonts/fonts.conf INFO:root:Var: SHLVL Value: 2 INFO:root:Var: AGS_ORIG_LD_LIBRARY_PATH Value: /arcgis/server/lib: INFO:root:Var: LOGNAME Value: arcgis INFO:root:Var: DOTWINE Value: /arcgis/server/framework/runtime/.wine INFO:root:Var: PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/bin:/arcgis/server/bin/wine/bin:/arcgis/server//framework/runtime/jre//bin:/arcgis/server/framework/runtime/ArcGIS/Resources/ArcToolBox/Scripts:/arcgis/server/framework/runtime/ArcGIS/bin:/arcgis/server/bin:/home/arcgis/anaconda3/envs/python36b/bin:/home/arcgis/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games INFO:root:Var: CONDA_DEFAULT_ENV Value: python36b INFO:root:Var: HOMEPATH Value: /home/arcgis INFO:root:Var: ENGINEJAVA94 Value: /arcgis/server/ INFO:root:Var: WINEPREFIX Value: /arcgis/server/framework/runtime/.wine INFO:root:Var: LESSOPEN Value: | /usr/bin/lesspipe %s INFO:root:Var: _ Value: /home/arcgis/anaconda3/envs/python36b/bin/python INFO:root: Creating file geodatabase in /tmp/tmp8dp6qygo, called test.gdb INFO:root: Created file geodatabase in /tmp/tmp8dp6qygo, called test.gdb The geodatabase is created fine and can be viewed. The environment variables are logged for the purpose of the next step. I need to run an arcpy script periodically, so I have tried to call the bash script by adding it to crontab. This is where the problem starts. I add the bash command to the arcgis user crontab file: * * * * * bash /path/to/cron_test.sh When the script runs it can import the arcpy library but when it gets to the CreateFileGDB command the script hangs and it doesn’t create the file GDB, no errors reported either. INFO:root:Var: CONDA_SHLVL Value: 1 INFO:root:Var: LD_LIBRARY_PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/lib:/arcgis/server/bin/wine/lib64:/arcgis/server/bin/wine/lib64/wine:/arcgis/server/bin/wine/lib64/wine/supp:/arcgis/server/framework/runtime/tomcat/bin:/arcgis/server/lib: INFO:root:Var: LIBGL_DRIVERS_PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/lib/dri INFO:root:Var: CONDA_EXE Value: /home/arcgis/anaconda3/bin/conda INFO:root:Var: FONTCONFIG_PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/etc/fonts INFO:root:Var: XVFBPATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb INFO:root:Var: SDEHOME Value: /arcgis/server INFO:root:Var: LANG Value: C.UTF-8 INFO:root:Var: AGS_ORIG_PATH Value: /arcgis/server/bin:/home/arcgis/anaconda3/envs/python36b/bin:/home/arcgis/anaconda3/condabin:/usr/bin:/bin INFO:root:Var: WINEPATH Value: /arcgis/server/bin/wine INFO:root:Var: AGSSERVER Value: /arcgis/server/ INFO:root:Var: CONDA_PREFIX Value: /home/arcgis/anaconda3/envs/python36b INFO:root:Var: _CE_M Value: INFO:root:Var: CLASSPATH Value: /arcgis/server/framework/lib/arcobjects.jar: INFO:root:Var: arcgis_cloud_platform Value: aws INFO:root:Var: PWD Value: /home/arcgis INFO:root:Var: HOME Value: /home/arcgis INFO:root:Var: CONDA_PYTHON_EXE Value: /home/arcgis/anaconda3/bin/python INFO:root:Var: ARCGISHOME Value: /arcgis/server INFO:root:Var: _CE_CONDA Value: INFO:root:Var: WINEDEBUG Value: -all INFO:root:Var: TOMCATBIN Value: /arcgis/server/framework/runtime/tomcat/bin INFO:root:Var: CONDA_PROMPT_MODIFIER Value: (python36b) INFO:root:Var: ARCGIS_JAVA_HOME Value: /arcgis/server//framework/runtime/jre/ INFO:root:Var: SHELL Value: /bin/sh INFO:root:Var: FONTCONFIG_FILE Value: /arcgis/server/framework/runtime/xvfb/Xvfb/etc/fonts/fonts.conf INFO:root:Var: SHLVL Value: 1 INFO:root:Var: AGS_ORIG_LD_LIBRARY_PATH Value: /arcgis/server/lib: INFO:root:Var: LOGNAME Value: arcgis INFO:root:Var: DOTWINE Value: /arcgis/server/framework/runtime/.wine INFO:root:Var: PATH Value: /arcgis/server/framework/runtime/xvfb/Xvfb/bin:/arcgis/server/bin/wine/bin:/arcgis/server//framework/runtime/jre//bin:/arcgis/server/framework/runtime/ArcGIS/Resources/ArcToolBox/Scripts:/arcgis/server/framework/runtime/ArcGIS/bin:/arcgis/server/bin:/home/arcgis/anaconda3/envs/python36b/bin:/home/arcgis/anaconda3/condabin:/usr/bin:/bin INFO:root:Var: CONDA_DEFAULT_ENV Value: python36b INFO:root:Var: HOMEPATH Value: /home/arcgis INFO:root:Var: ENGINEJAVA94 Value: /arcgis/server/ INFO:root:Var: WINEPREFIX Value: /arcgis/server/framework/runtime/.wine INFO:root:Var: _ Value: /home/arcgis/anaconda3/envs/python36b/bin/python INFO:root: Creating file geodatabase in /tmp/tmpu2gxq8jy, called test.gdb When crontab runs the command there are less variables coming through to the python script, but I have tried manually set them in the bash shell script with export commands so they are identical to the manual run and I still get the same result. This suggests the is more than setting environment variables that is preventing the arcpy commands from running. Other things I have tried is running the shell commands directly in crontab job like: SHELL=/bin/bash BASH_ENV=/home/arcgis/anaconda3/etc/profile.d/conda.sh * * * * * export ARCGISHOME=/arcgis/server; conda activate python36b; python /home/arcgis/arcgis-imagery/Geoplex/cron_test.py I’ve tried loading the profile and bashrc files into the bash script: . /home/arcgis/.profile . /home/arcgis/.bashrc I’ve taken out everything except the import arcpy and createFileGDB command in the python script, and also I’ve tried using the fish shell in place of bash, all to no avail. With the behavior I’m getting can someone point me to how to troubleshoot this further? It would be greatly appreciated! Anaconda version Anaconda3-2020.02-Linux-x86_64 Thanks, Leon.
... View more
06-24-2020
11:26 PM
|
0
|
7
|
2751
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-07-2023 01:34 PM | |
| 1 | 07-25-2023 10:41 PM | |
| 4 | 07-18-2023 08:01 PM | |
| 1 | 07-13-2023 10:22 PM | |
| 1 | 03-29-2023 10:00 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-28-2024
10:43 PM
|