Categories
Mastering Development

Debugger not stepping over/into async/wait

I’m testing some code in isolation and it works runs just fine – the debugger steps through every line and returns the intended result. Here is some of the code that I’m testing in isolation: static async Task<List<string>> GetExclusionDataAsync(Uri blobUri) { var listOfExclusions = new List<string>(); var blobDownloadInfo = await StreamBlobData(blobUri); using (StreamReader reader = […]

Categories
Linux Mastering Development

Where do I place environment variables so that they can be picked up by Apache?

I’m using Ubuntu 18.04. I have defined a series of environment variables in my /etc/profile file. When I login as my user, I can see them using $ echo $DB_NAME directory_data I have Apache 2.4 also running on my machine under a www-data user (who has no home directory). I have set up my Apache […]

Categories
Mastering Development System & Network

Return 404 after configure the https on Apache 2.4

I am trying to deploy a new Angular app with apache 2.4 + ubuntu 16. Angular app is the frontend app, it would call the api from backend servers. I can visit the home page, but failed with error "The requested URL was not found on this server." when I try to visit the next […]

Categories
Linux Mastering Development

RHEL 8.2 on AWS EC2 crashed and is unreachable after error on ‘dnf update’

I executed: dnf update -v dnf clean all && dnf update and it seemed to have killed my instance. See detailed output below. On the AWS console, ‘reboot’ didn’t have an effect. So I stopped the instance and started it again. Now it hangs with ‘Instance state: running’. After a long time with ‘Status checks: […]

Categories
User Help Web Pro

Jenkins or Apache changes the URL when using reverse proxy

I have a VPS that I use to run a personal Gerrit and Jenkins server. After a year of neglect I finally decided to get it working again. Previously I have used gerrit.server.com and jenkins.server.com, but this caused a lot of issues with https certification, so I decided to just go over to subdirectory(?), e.g […]

Categories
Apple User Help

How can I fix my offlineimap Certificate error on a homebrew install

OfflineIMAP 7.3.3 Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception) imaplib2 v2.101 (bundled), Python v2.7.17, OpenSSL 1.1.1g 21 Apr 2020 *** Processing account charles Establishing connection to secure.emailsrvr.com:993 (charles-Remote) ERROR: Unknown SSL protocol connecting to host ‘secure.emailsrvr.com’ for repository ‘charles-Remote’. OpenSSL responded: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) *** […]

Categories
Mastering Development System & Network

Apache Configuration

I have installed Apache on Ubuntu 20.04. when i run the command: sudo apache2 –version After password the output is: [Thu May 07 08:30:12.442696 2020] [core:warn] [pid 24808] AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot I […]

Categories
Mastering Development

ModuleNotFoundError in custom module on azure webapps

I’m trying to run an app.py made with python3.7(flask) in azure webapps. I deployed app.py and sleep_model.py that app.py uses from github. (app.py imports sleep_model.py, and sleep_model.py imports numpy.) Then I got this error on azure log stream: ”’ 2020-04-28T10:55:13.536802053Z File “/home/site/wwwroot/app.py”, line 15, in <module> 2020-04-28T10:55:13.536806954Z   import sleep_model 2020-04-28T10:55:13.536811454Z File “/home/site/wwwroot/sleep_model.py”, line 1, […]

Categories
User Help

Apache 2.4.43 – You don’t have permission to access this resource, config failure

Now once I start my apache2 Server using #service apache2 start I am not able to access the .exe file on /var/www/html/file/laZagne.exe path. it gives me this when i try to access above .exe file from another windows machine. I am Second user “Kunal” added to root group in the machine, and running apache2 server. […]

Categories
Mastering Development

Apache configuration for serving Django app is not working

I have installed my Django Project on the server, and it is running locally with no problem. I can make migrations and runserver works with no error. I am following this tutorial in order to use Apache to serve the project on Ubuntu, but I am having problems. The first one is where you start […]