By using AWS re:Post, you agree to the Terms of Use
/AWS Cloud9/

Questions tagged with AWS Cloud9

Sort by most recent
  • 1
  • 90 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Running a sample application with ROS Melodic and Gazebo 9

I am following this [tutorial](https://docs.aws.amazon.com/robomaker/latest/dg/run-hello-world-ros.html) in the RoboMaker Developer Guide. After building the base image, the robot image and the simulation one, I have runned the robot application with the following command: > $ docker run -it -e DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix/ \ -u robomaker -e ROBOMAKER_GAZEBO_MASTER_URI=http://localhost:5555 \ -e ROBOMAKER_ROS_MASTER_URI=http://localhost:11311 \ helloworldsampleapprosmelodicgazebo9robotapp:latest and the simulation application with this other: > $ export DISPLAY=:0 > $ xhost + > $docker run -it -e DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix/ \ -u robomaker -e ROBOMAKER_GAZEBO_MASTER_URI=http://localhost:5555 \ -e ROBOMAKER_ROS_MASTER_URI=http://localhost:11311 \ helloworldsampleapprosmelodicgazebo9simapp:latest In order to visualize the simulation application in Gazebo9 I have entered into the simapp image and run the gazebo client with the following commands: > $ docker exec -it bold_babbage bash > $ cd /home/robomaker/workspace/aws-robomaker-sample-application-helloworld-ros1/simulation_ws > $ source /opt/ros/melodic/setup.bash > $ source /usr/share/gazebo-9/setup.sh > $ source ./install/setup.sh > $ rosrun gazebo_ros gzclient The Gazebo GUI opens inside the Virtual Desktop but the robot stands still instead rotating around the z axis with angular velocity 0.1 rad/s. I obtain the following messagge: > [[ INFO]] [[1654096062.809673647]]: Finished loading Gazebo ROS API Plugin. > [[ INFO]] [[1654096062.821667855]]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... Do you know what could be the cause of this problem?
0
answers
0
votes
17
views
asked a month ago

Cloud9 - EXTREMELY High CPU Usage

Lately Cloud9 has been using an insane amount of CPU, to the point nothing will load. The node process (vfs-worker) will randomly start using 100-200% CPU and not stop until I killall node or reboot. This is on a Fresh Ubuntu install with a fresh Cloud9 install. I've switched servers 3 times, started fresh every time and still having the issue. Currently I'm on a 6 core VPS with 16gb of RAM and NVMe drives with nothing else running - the machine has no speed issues until I pull up Cloud9 and then this happens. top output currently (this is typical of the issue): ``` top - 05:25:53 up 8 min, 0 users, load average: 1.58, 1.50, 0.75 Tasks: 140 total, 3 running, 137 sleeping, 0 stopped, 0 zombie %Cpu(s): 3.6 us, 6.8 sy, 0.0 ni, 68.5 id, 0.0 wa, 0.0 hi, 0.1 si, 21.1 st MiB Mem : 16008.7 total, 14915.5 free, 949.0 used, 144.2 buff/cache MiB Swap: 0.0 total, 0.0 free, 0.0 used. 14816.9 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 591 root 20 0 1682708 839164 31552 R 178.0 5.1 8:07.95 node 1111 root 20 0 690472 53432 31496 S 7.7 0.3 0:09.81 node 548 root 20 0 13808 9044 7476 S 6.7 0.1 0:09.18 sshd 1147 root 20 0 11848 3756 3256 R 0.7 0.0 0:00.88 top 11 root 20 0 0 0 0 R 0.3 0.0 0:10.31 rcu_sched 112 root 20 0 0 0 0 I 0.3 0.0 0:01.13 kworker/u12:1-events_power_efficient 1 root 20 0 166912 10904 8388 S 0.0 0.1 0:04.07 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.15 kthreadd 3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-events_highpri 7 root 20 0 0 0 0 I 0.0 0.0 0:00.03 kworker/0:1-events 8 root 20 0 0 0 0 I 0.0 0.0 0:00.99 kworker/u12:0-events_unbound 9 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq 10 root 20 0 0 0 0 S 0.0 0.0 0:00.07 ksoftirqd/0 12 root rt 0 0 0 0 S 0.0 0.0 0:00.15 migration/0 13 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0 ``` This is the command hogging CPU: ``` root 591 120 3.4 1443908 567652 ? Rl 05:17 15:42 vfs-worker {"pingInterval":5000,"nodePath":"/root/.c9/node_modules","tmuxBin":"/root/.c9/bin/tmux","root":"/","debug":false,"connectionTimeout":60000,"metapath":"/.c9/metadata","envmetapath":"/.c9/metadata/environment","projectDir":"/","defaultEnv":{"HGUSER":"root","EDITOR":"","PORT":"8080","C9_PORT":"8080","IP":"127.0.0.1","C9_HOSTNAME":"154.12.230.222","C9_USER":"root","C9_PROJECT":"Box","C9_PID":"bfcfdc59308b461990aeb16d918ce011"},"useVfsLoaderCache":false,"environmentId":"bfcfdc59308b461990aeb16d918ce011","bytesPerSecond":3145728,"extendApi":{"collab":{"file":"c9.ide.collab/server/collab-server.js","user":{"userId":"301735008956","name":"root"},"project":{"workspaceId":"bfcfdc59308b461990aeb16d918ce011","name":"Box","type":"ssh"},"environment":{"id":"bfcfdc59308b461990aeb16d918ce011","name":"Box","type":"ssh","ideTemplateName":"Cloud9 Amazon Linux"},"readonly":false,"session":{},"nodePath":"/root/.c9/node_modules"},"ping":{"file":"c9.vfs.client/ping-service.js"},"store":{"file":"c9.vfs.client/store-service.js"}}} ```
0
answers
0
votes
11
views
asked 2 months ago

Trouble in node.js sending data from html form to the server.

I have a question about AWS Cloud9 and nodejs. I am using this nodejs tutorial to teach myself how to communicate between client side and server side: https://dev.to/gbudjeakp/how-to-connect-your-client-side-to-your-server-side-using-node-and-express-2i71 I followed the tutorial and set it up on my laptop and everything worked fine. I even was able to figure out how to write the data sent from the client to a file using writeFileSync. The problem is in trying to get it to work while on the Amazon Web Service Cloud9 integrated development environment. When I run the index.js file by itself on Cloud9, I get the message stating that the server is running on port 8080, as expected. However, I cannot get the HTML file to interface with the index.js file. The HTML file contains a form that is supposed to send the form content to index.js. I believe the problem is in the address contained in the HTML form. I have researched and tried several different configurations, but none of them work. Currently, the form looks like this: <form action="https://localhost:8080/login" method="POST"> <input type="text" name="username" placeholder="username"> <input type="text" name="password" placeholder="password"> <button type="submit">Login</button> </form> Using localhost:8080 results in an error message of "localhost refused to connect." When I have used variations of my username and AWS project name, I receive an error stating that the server IP address could not be found. Any help would be appreciated.
1
answers
0
votes
9
views
asked 2 months ago

Cloud 9 IDE Vue.js unable to preview browser on 8080

Environment: Using t3.small with resized EBS to 20GB; Connecting from: Mac OS (Safari or Chrome - current versions) Repro: ``` nvm install stable npm install -g @aws-amplify/cli # optional (unless testing `amplify run`) npm install vue npm install -g @vue/cli vue create testsite # use babel, router, lint; vue3 cd testsite npm run serve ``` At this point server is running normally with following message: App running at: - Local: http://localhost:8080/ - Network: http://xxx.xxx.xxx.xxx:8080/ However Cloud9 reports following error: Cloud9 Help You may be using the wrong PORT & IP for your server application. Try passing port 8080 to properly launch your application. We can continue installing Amplify to show it also fails with amplify run: ``` amplify configure # create or use existing amplify user passing appropriate key/secret ids amplify init # use defaults npm install aws-amplify @aws-amplify/ui-components amplify add auth # optional - I was trying to test drive Cognito; some code changes required, but not relevant for this test amplify push amplify run ``` Same result as with npm run serve. Reviewed following references, but did not find any working solutions: * https://docs.aws.amazon.com/cloud9/latest/user-guide/app-preview.html#app-preview-run-app * https://docs.aws.amazon.com/cloud9/latest/user-guide/troubleshooting.html#troubleshooting-app-preview * https://repost.aws/questions/QUyfyfFI92TO6lN6s6Ti-7Ig/can-no-longer-preview-running-applications-vfs-connection-does-not-exist * Note: In Chrome this seems to now be "SameParty cookies to be first-party" and in Safari disabling prevent cross-site tracking and block all cookies - neither worked for me When I had first started while following the initial Cloud 9 guide I was able to get the preview application to work while using the default t3.micro instance on Safari. After upgrading to t3.small it did not work any longer, though the t3.micro instance was failing in numerous other ways due to low memory, so this was not a viable setup. Following through the Cloud 9 instructions to create new environment instances I was unable to get any working Preview scenarios in any of the environments following various variations on the setup and sequencing of the vue3 and vue/cli installation. Any additional suggestions are appreciated.
0
answers
0
votes
10
views
asked 3 months ago

mongodb-org-4.0.repo : No such file or directory al instalar el mongo shell en mi AWS Cloud9

I try to connect to my cluster DocumentDB on AWS from AWS C9 with [this tutorial][1]. But every time I try to connect I get connection failed after 6 attempts: (scr_env) me:~/environment/sephora $ mongo --ssl --host xxxxxxxxxxxxx:xxxxx --sslCAFile rds-combined-ca-bundle.pem --username username --password mypassword MongoDB shell version v3.6.3 connecting to: mongodb://xxxxxxxxxxxxx:xxxxx/ 2022-03-22T23:12:38.725+0000 W NETWORK [thread1] Failed to connect to xxx.xx.xx.xxx:xxxxx after 5000ms milliseconds, giving up. 2022-03-22T23:12:38.726+0000 E QUERY [thread1] Error: couldn't connect to server xxxxxxxxxxxxx:xxxxx, connection attempt failed : connect@src/mongo/shell/mongo.js:251:13 @(connect):1:6 exception: connect failed Indeed it seems to be missing the VPC configuration. So I tried to do with [this documentation][2]. But I do not know how to install the mongo shell on my AWS Cloud9. Indeed, it seems that I cannot create the repository file with the `echo -e "[mongodb-org-4.0] \name=MongoDB repository baseurl=...`. returns: `mongodb-org-4.0.repo: No such file or directory`. Also, when I tried to install the mongo shell with `sudo yum install -y mongodb-org-shell` which I did not have, and which I installed, it returns `repolist 0`. [1]: https://www.youtube.com/watch?v=Ild9ay9U_vY [2]: https://stackoverflow.com/a/17793856/4764604
2
answers
0
votes
22
views
asked 3 months ago

"Connect failed" when trying to connect to the DocumentDB cluster from AWS C9

In order to insert data to a cluster with a python script, I try to connect to my cluster DocumentDB on AWS from AWS C9 with [this tutorial][1]. But every time I try to connect I get connection failed after 6 attempts: ``` (scr_env) me:~/environment/sephora $ mongo --ssl --host xxxxxxxxxxxxx:xxxxx --sslCAFile rds-combined-ca-bundle.pem --username username --password mypassword MongoDB shell version v3.6.3 connecting to: mongodb://xxxxxxxxxxxxx:xxxxx/ 2022-03-22T23:12:38.725+0000 W NETWORK [thread1] Failed to connect to xxx.xx.xx.xxx:xxxxx after 5000ms milliseconds, giving up. 2022-03-22T23:12:38.726+0000 E QUERY [thread1] Error: couldn't connect to server xxxxxxxxxxxxx:xxxxx, connection attempt failed : connect@src/mongo/shell/mongo.js:251:13 @(connect):1:6 exception: connect failed ``` I tried to remove the lock file to repair the instance as they do in [this answer][2]: ``` (scr_env) me:~/environment/sephora $ sudo rm /var/lib/mongodb/mongod.lock rm: cannot remove '/var/lib/mongodb/mongod.lock': No such file or directory ``` I know that the "fail to connect" error can be caused by a lot of reasons, but usually they are: - the service (mongo) might not be *running* on the destination server; - the service (mongo) might be *listening* on a different port number; - the service (mongo) might be *protected* by a firewall somewhere on the destination. So how can I ensure that: - mongo is *running* on the destination host? - mongo is *listening* on the defined port? - I've *allowed* to connect to the destination host on the defined port from the IP address or network range you're running the command to connect? [1]: https://www.youtube.com/watch?v=Ild9ay9U_vY [2]: https://stackoverflow.com/a/17793856/4764604
1
answers
0
votes
88
views
asked 3 months ago

Unable to resolve "Learn Python on AWS Workshop Python" error involving looping over JSON

I haven't been able to resolve the the following error that keeps showing up at the end of the [Looping over JSON](https://catalog.us-east-1.prod.workshops.aws/workshops/3d705026-9edc-40e8-b353-bdabb116c89c/en-US/loops/lab-6/step-2#looping-over-dictionaries-and-json) portion of Lab 6 in the "Learn Python on AWS Workshop" module: ``` error: the following arguments are required_ --file ``` Following the directions throughout the lab, I created the JSON file called `translate_input.json` and copied the list of dictionaries contained within. Then I created a new python file called `lab_6_step_2_loops.py` , typed in the text as directed, and ran the program with the command in the terminal python `lab_6_step_2_loops.py --file translate_input.json` after which the above error appears. I reached out to some coworkers who were also working on this but none of them have gotten back to me yet. Additionally, I've gone over all of the previous labs of this Python workshop to see what/if I missed anything, read numerous explanations, and watched several tutorials on YouTube regarding argparse and json. All of this was helpful but danced around the general issue without actually helping me resolve it but leads me to think the issue is related to the first section of the [code](https://catalog.us-east-1.prod.workshops.aws/workshops/3d705026-9edc-40e8-b353-bdabb116c89c/en-US/loops/lab-6/step-2#looping-over-dictionaries-and-json). ``` parser = argparse.ArgumentParser(description="Provides translation between one source language and another of the same set of languages.") parser.add_argument( '--file', dest='filename', help="The path to the input file. The file should be valid json", required=True) ``` Leaving this code as is, inputting the file name, file path, destination, or some combination keeps bringing up the same error as above. When I follow the directions in the link and literally just copy and paste- no typing- the text, I still come up with this error. Any thoughts?
1
answers
0
votes
9
views
asked 4 months ago

Cloud9 Permission error when trying to Flask application created by template

Using the Code Star Wizard, I created a Flask-ELB application. When attempting to run the application (using the big green Run button) I first get an error that flask is not found. I install flask, now I get a permission denied error: Creating a virtual environment and running "application.py" directly gives me a similar error. ``` * Serving Flask app "application" (lazy loading) * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off Traceback (most recent call last): File "/home/ec2-user/environment/stevej-newrelic/helloworld/application.py", line 37, in <module> port=int(options.port) File "/home/ec2-user/.local/lib/python3.6/site-packages/flask/app.py", line 990, in run run_simple(host, port, self, **options) File "/home/ec2-user/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 1017, in run_simple inner() File "/home/ec2-user/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 966, in inner fd=fd, File "/home/ec2-user/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 790, in make_server host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd super().__init__(server_address, handler) # type: ignore File "/usr/lib64/python3.6/socketserver.py", line 456, in __init__ self.server_bind() File "/usr/lib64/python3.6/http/server.py", line 136, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/lib64/python3.6/socketserver.py", line 470, in server_bind self.socket.bind(self.server_address) PermissionError: [Errno 13] Permission denied ```
0
answers
0
votes
4
views
asked 4 months ago

CDK with typescript - error on cloud9

Hello Everyone, I tried https://github.com/fortejas/example-serverless-python-api on a cloud9 environment but I got the following error Commands that I used to setup: ``` mkdir sample-api cd sample-api/ cdk init app --language typescript . cd ~ git clone https://github.com/kasukur/example-serverless-python-api.git ls -lrt example-serverless-python-api/ cp -rf example-serverless-python-api/lambda-api/ ~/environment/sample-api/. cd ~/environment/sample-api/ Delete node_modules folder Delete package-lock.json npm i @aws-cdk/aws-lambda-python-alpha --force -g 
ec2-user:~/environment/sample-api $ cdk deploy ``` the error is ``` ec2-user:~/environment/sample-api $ cdk synth npm WARN exec The following package was not found and will be installed: ts-node /home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:750 return new TSError(diagnosticText, diagnosticCodes); ^ TSError: ⨯ Unable to compile TypeScript: bin/sample-api.ts:4:10 - error TS2305: Module '"../lib/sample-api-stack"' has no exported member 'SampleApiStack'. 4 import { SampleApiStack } from '../lib/sample-api-stack'; ~~~~~~~~~~~~~~ at createTSError (/home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:750:12) at reportTSError (/home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:754:19) at getOutput (/home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:941:36) at Object.compile (/home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1243:30) at Module.m._compile (/home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1370:30) at Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Object.require.extensions.<computed> [as .ts] (/home/ec2-user/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1374:12) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { diagnosticText: `\x1B[96mbin/sample-api.ts\x1B[0m:\x1B[93m4\x1B[0m:\x1B[93m10\x1B[0m - \x1B[91merror\x1B[0m\x1B[90m TS2305: \x1B[0mModule '"../lib/sample-api-stack"' has no exported member 'SampleApiStack'.\n` + '\n' + "\x1B[7m4\x1B[0m import { SampleApiStack } from '../lib/sample-api-stack';\n" + '\x1B[7m \x1B[0m \x1B[91m ~~~~~~~~~~~~~~\x1B[0m\n', diagnosticCodes: [ 2305 ] } Subprocess exited with error 1 ``` Could someone please help with this Thank you
1
answers
0
votes
125
views
asked 6 months ago

Enter passphrase for key '/home/ec2-user/.ssh/lab-3-key - Cloud9, pcluster, FDS

I am attempting to run FDS (CFD code for fire simulation) on Cloud9 pcluster using the following tutorial: https://fds-smv-on-pcluster.workshop.aws/oyo/setup/pcluster.html A few of the input commands in the tutorial are out of date, but* I have gotten to the point where you connect to the PCluster with your created ssh lab key to download and install FDS software:* ``` pcluster ssh --cluster-name pc-fsx -i ~/.ssh/lab-3-key ``` And *I get asked for a passphrase:* **Enter passphrase for key '/home/ec2-user/.ssh/lab-3-key': ** I do not know what this passphrase is. Is it created when I create my lab key? Is it from my AWS account or Cloud9 environment? I am relatively new to AWS and Python and command line. FYI, the key is created as follows: ``` IFACE=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/) SUBNET_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${IFACE}/subnet-id) VPC_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${IFACE}/vpc-id) REGION=$(curl --silent http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/[a-z]$//') AWS_REGION=$(curl --silent http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/[a-z]$//') ``` ``` # generate a new key-pair aws ec2 create-key-pair --key-name lab-3-your-key --query KeyMaterial --output text --region=${AWS_REGION} > ~/.ssh/lab-3-key chmod 600 ~/.ssh/lab-3-key ``` I believe I did everything as the tutorial asked, as far as I could tell. Any help?
1
answers
0
votes
12
views
asked 6 months ago

Linux terminal and python scripts stopped working

During normal work in the Cloud 9 IDE the terminal stopped working and Python scripts fail to launch. The terminal does not give an error but launching scripts with the "Play" button I get: Command failed: /home/ec2-user/.c9/bin/tmux -C -u2 -L cloud92.2 new -s output16162 bash -l -c 'trap '\''printf "\e\[01;30m\n\nProcess exited with code: $?\e\[0m\n"'\'' EXIT debug="false";project_path="/home/ec2-user/environment/";file="/home/ec2-user/environment/script.py"; export PYTHONPATH='\''/usr/local/lib/python3.4/dist-packages:/usr/local/lib/python3.5/dist-packages'\''; if \[ "$debug" == true ]; then python3 -m ikp3db -ik_p=15471 -ik_cwd=$project_path "$file" else python3 "$file" fi checkExitCode() { if \[ "$1" ] && \[ "$debug" == true ]; then python3 -m ikp3db 2>&1 | grep -q '\''No module'\'' && echo '\'' To use python debugger install ikpdb by running: sudo yum update; sudo yum install python36-devel; sudo pip-3.6 install ikp3db; '\'' fi return $1 } checkExitCode $?' ; set -q -g status off ; set -q destroy-unattached off ; set -q mouse-select-pane on ; set -q set-titles on ; set -q quiet on ; set -q -g prefix C-b ; set -q -g default-terminal xterm-256color ; setw -q -g xterm-keys on ; set -q remain-on-exit on ; setw -q -g aggressive-resize on ; list-panes -F c9-pid#{pane_pid}- ; detach can't create socket: Permission denied Any idea what might be going on? I have rebooted the instance and reinstalled Cloud9 with no effect (I have access to it via ssh). tmux folder /tmp/tmux-1000 has write permission. Edited by: mannie72 on Oct 31, 2021 4:32 PM Edited by: mannie72 on Oct 31, 2021 6:09 PM
1
answers
0
votes
19
views
asked 8 months ago

Permission Error when bundling the sample code

Hello, I've been trying to turn the sample HelloWorld application from the cloud9 IDE. I have followed the steps listed on the developer guide but get stuck on step 4 bundling <https://docs.aws.amazon.com/robomaker/latest/dg/gs-simulation.html>. This is the output I get when I attempt to bundle the HelloWorld Robot: \[367.691s] DEBUG:colcon.colcon_bundle.verb:Start: workspace.tar.gz \[367.696s] ERROR:colcon:colcon bundle: \[Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/assets/v2_workspace_setup.bash' Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/colcon_core/command.py", line 528, in verb_main rc = context.args.main(context=context) File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/bundle.py", line 143, in main dependencies_changed) File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/_archive_generators.py", line 104, in generate_archive_v2 workspace_tar_gz_path) File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/_overlay_utilities.py", line 32, in create_workspace_overlay _CONTEXT_VAR_BASH File "/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/_overlay_utilities.py", line 160, in _generate_template with open(script_location, 'w') as file: PermissionError: \[Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/colcon_bundle/verb/assets/v2_workspace_setup.bash' I'm not really sure how to fix this or how to give permission. I have tried reinstalling colcon and updating colcon, but all have seemed to fail for me. Can someone please give me the steps to bundle and not run into this permissions error? Edited by: akp271 on Feb 9, 2021 12:53 PM
2
answers
0
votes
26
views
asked a year ago

Set up the pg gem - postgresql in development

I'm using Cloud9 on AWS in development and EB for deployment. Found a lot of old stuff, but having problem to install **pg gem**. 1. started with codestar, using ruby on rails app 2. for now with elastic beanstalk 3. using IDE Cloud9 4. added RDS Postgresql for the EB 5. installed all gems needed, except the pg gem - postgresql set in database config for dev and production - postgresql93-devel added in the packages.conf - tried to add libpq-dev - NOT WORKING (?) ``` sudo yum install libpq-dev ``` - this worked (not sure if this is correct) ``` sudo yum install postgresql-libs ``` **Still error when installing the gem:** ------- _Building native extensions. This could take a while..._ _ERROR: Error installing pg:_ _ERROR: Failed to build gem native extension._ _current directory: /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/gems/2.4.0/gems/pg-0.21.0/ext_ _/usr/local/rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20171207-7455-1v09v4h.rb extconf.rb_ _checking for pg_config... no_ _No pg_config... trying anyway. If building fails, please try again with_ _--with-pg-config=/path/to/pg_config_ _checking for libpq-fe.h... no_ _Can't find the 'libpq-fe.h header_ _*** extconf.rb failed ***_ _Could not create Makefile due to some reason, probably lack of necessary_ _libraries and/or headers. Check the mkmf.log file for more details. You may_ _need configuration options._ **Any new ideas how to setup Postgresql with Cloud9 on AWS?** Edited by: mikesk on Dec 7, 2017 2:50 AM
4
answers
0
votes
256
views
asked 5 years ago
  • 1
  • 90 / page