I have a SM notebook in Oregon region and I've ran estimator.fit with data in a S3 bucket of the same region several times previously. Today on attempting to rerun this script I'm getting the following error:
INFO:sagemaker:Creating training-job with name: sagemaker-tensorflow-scriptmode-2019-01-31-18-51-07-292
Creating tmp_axa2vmo_algo-1-s8vfu_1 ...
Attaching to tmp_axa2vmo_algo-1-s8vfu_1
algo-1-s8vfu_1 | 2019-01-31 18:51:11,828 sagemaker-containers INFO Imported framework sagemaker_tensorflow_container.training
algo-1-s8vfu_1 | 2019-01-31 18:51:11,940 sagemaker-containers ERROR Reporting training FAILURE
algo-1-s8vfu_1 | 2019-01-31 18:51:11,940 sagemaker-containers ERROR framework error:
algo-1-s8vfu_1 | Traceback (most recent call last):
algo-1-s8vfu_1 | File "/usr/local/lib/python3.6/dist-packages/sagemaker_containers/_trainer.py", line 67, in train
algo-1-s8vfu_1 | entrypoint()
algo-1-s8vfu_1 | File "/usr/local/lib/python3.6/dist-packages/sagemaker_tensorflow_container/training.py", line 167, in main
algo-1-s8vfu_1 | s3_utils.configure(env.hyperparameters.get('model_dir'), os.environ.get('SAGEMAKER_REGION'))
algo-1-s8vfu_1 | File "/usr/local/lib/python3.6/dist-packages/sagemaker_tensorflow_container/s3_utils.py", line 23, in configure
algo-1-s8vfu_1 | os.environ['S3_REGION'] = _s3_region(job_region, model_dir)
algo-1-s8vfu_1 | File "/usr/local/lib/python3.6/dist-packages/sagemaker_tensorflow_container/s3_utils.py", line 39, in _s3_region
algo-1-s8vfu_1 | bucket_location = s3.get_bucket_location(Bucket=bucket_name)['LocationConstraint']
algo-1-s8vfu_1 | File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 357, in _api_call
algo-1-s8vfu_1 | return self._make_api_call(operation_name, kwargs)
algo-1-s8vfu_1 | File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 661, in _make_api_call
algo-1-s8vfu_1 | raise error_class(parsed_response, operation_name)
algo-1-s8vfu_1 | botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GetBucketLocation operation: Access Denied
algo-1-s8vfu_1 |
algo-1-s8vfu_1 | An error occurred (AccessDenied) when calling the GetBucketLocation operation: Access Denied
tmp_axa2vmo_algo-1-s8vfu_1 exited with code 1
Aborting on container exit...
To my knowledge no role permissions or access policies have been updated. Any idea what could be causing this?
Related
I don't want to have to reinstall everything. I have an error on the server where odoo does not run. It is a database (xml) which gives me the error. So I want to restart everything. Is it possible to do it without entering web / database / manager?
I would like to have a clean installation without having to purge everything and install again.
Edit
I have a community odoo installation on a local development server with debian installed.
I have no problem deleting everything and starting over, but I don't want to do the whole installation process all over again.
This is the error I am getting with his command:
odoo -p 8070 -dev=reload,xml -i base
2022-01-06 13:23:42,561 13626 ERROR xml odoo.modules.loading: Database xml not initialized, you can force it with -i base
2022-01-06 13:23:42,575 13626 ERROR ev=reload odoo.modules.loading: Database xml not initialized, you can force it with `-i base`
2022-01-06 13:23:42,582 13626 INFO xml werkzeug: 127.0.0.1 - - [06/Jan/2022 13:23:42] "GET / HTTP/1.1" 500 - 6 0.006 3.747
2022-01-06 13:23:42,588 13626 ERROR xml werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 306, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.9/dist-packages/werkzeug/serving.py", line 294, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 441, in app
return self.app(e, s)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 113, in application
return application_unproxied(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 88, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1306, in __call__
return self.dispatch(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1272, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.9/dist-packages/werkzeug/middleware/shared_data.py", line 220, in __call__
return self.app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1463, in dispatch
ir_http = request.registry['ir.http']
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 176, in __getitem__
return self.models[model_name]
KeyError: 'ir.http' - - -
2022-01-06 13:24:42,606 13626 ERROR xml odoo.sql_db: bad query: SELECT latest_version FROM ir_module_module WHERE name='base'
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^
2022-01-06 13:24:42,607 13626 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database xml.
2022-01-06 13:24:43,639 13626 ERROR xml odoo.sql_db: bad query: SELECT latest_version FROM ir_module_module WHERE name='base'
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
/home/sohail//google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
Traceback (most recent call last):
File "/home/sohail//google-cloud-sdk/bin/bootstrapping/install.py", line 27, in
from googlecloudsdk import gcloud_main
File "/home/sohail//google-cloud-sdk/lib/googlecloudsdk/gcloud_main.py", line 37, in
from googlecloudsdk.command_lib.util.apis import yaml_command_translator
File "/home/sohail//google-cloud-sdk/lib/googlecloudsdk/command_lib/util/apis/yaml_command_translator.py", line 241
if self.spec.async:
^
SyntaxError: invalid syntax
Script execution failed!
Exiting with status 1.
ERROR 2017-11-23 18:39:51 -0800 service The replica worker 2 exited
with a non-zero status of 1. Termination reason: Error.
ERROR 2017-11-23 18:39:51 -0800 service Traceback (most recent call
last):
ERROR 2017-11-23 18:39:51 -0800 service File
"/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
ERROR 2017-11-23 18:39:51 -0800 service "main", fname,
loader, pkg_name)
ERROR 2017-11-23 18:39:51 -0800 service File
"/usr/lib/python2.7/runpy.py", line 72, in _run_code
ERROR 2017-11-23
18:39:51 -0800 service exec code in run_globals
ERROR 2017-11-23
18:39:51 -0800 service File
"/root/.local/lib/python2.7/site-packages/object_detection/train.py",
line 49, in
ERROR 2017-11-23 18:39:51 -0800 service from
object_detection import trainer
ERROR 2017-11-23 18:39:51
-0800 service File "/root/.local/lib/python2.7/site-packages/object_detection/trainer.py",
line 27, in
ERROR 2017-11-23 18:39:51 -0800 service from
object_detection.builders import preprocessor_builder
ERROR 2017-11-23
18:39:51 -0800 service File
"/root/.local/lib/python2.7/site-packages/object_detection/builders/preprocessor_builder.py",
line 21, in
ERROR 2017-11-23 18:39:51 -0800 service from
object_detection.protos import preprocessor_pb2
ERROR 2017-11-23
18:39:51 -0800 service File
"/root/.local/lib/python2.7/site-packages/object_detection/protos/preprocessor_pb2.py",
line 71, in
ERROR 2017-11-23 18:39:51 -0800 service options=None, file=DESCRIPTOR),
ERROR 2017-11-23 18:39:51
-0800 service TypeError: new() got an unexpected keyword argument 'file'
Using protobuf (3.5.0.post1)
But when I run taining local, no error!
The Cloud ML Engine doesn't support the latest versions of TensorFlow or protobuf. You can see the current packages and versions here. Did you add protobuf to the list of required packages in setup.py?
In setup.py, you can request a more current version of TensorFlow with code like the following:
REQUIRED_PACKAGES = ['tensorflow>=1.3']
setup(
...
install_requires=REQUIRED_PACKAGES,
...
)
While starting resource manager from Ambari its not working and services like App Timeline Server, Node Manager and Yarn client have started n status of NodeManagers is
Status n/a
active / n/a
lost / n/a
unhealthy / n/a
rebooted / n/a
decommissioned
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py", line 304, in <module>
Resourcemanager().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 314, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py", line 124, in start
self.wait_for_dfs_directories_created(params.entity_groupfs_store_dir, params.entity_groupfs_active_dir)
File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py", line 261, in wait_for_dfs_directories_created
self.wait_for_dfs_directory_created(dir_path, ignored_dfs_dirs)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/decorator.py", line 55, in wrapper
return function(*args, **kwargs)
File "/var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/resourcemanager.py", line 291, in wait_for_dfs_directory_created
raise Fail("DFS directory '" + dir_path + "' does not exist !")
resource_management.core.exceptions.Fail: DFS directory '/ats/done/' does not exist !
The service start script is looking for hdfs path /ats/done, check if such path exist with proper ownership and permissions as indicated below.
[hdfs#vp-solr2 ~]$ hdfs dfs -ls / | grep ats
drwxr-xr-x - yarn hadoop 0 2017-03-27 15:12 /ats
[hdfs#vp-solr2 ~]$ hdfs dfs -ls /ats | grep done
drwx------ - yarn hadoop 0 2017-06-19 08:33 /ats/done
Every time I run a Kivy app I see OSError (see it in last line of my given example). Even though my app runs successfully. What could be the cause of this error?
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/dist-packages/kivy/input/providers/mtdev.py", line 197, in _thread_run
_device = Device(_fn)
File "/usr/lib/python2.7/dist-packages/kivy/lib/mtdev.py", line 131, in __init__
self._fd = os.open(filename, os.O_NONBLOCK | os.O_RDONLY)
OSError: [Errno 13] Permission denied: '/dev/input/event5'
This error is not important, it just means that kivy checked the possible input providers in your OS and found that this one is forbidden.