Local: Kubuntu 21.10, VSCodium 1.65.2, PCManFM-qt 0.17.0
Server: Windows Server 2016, FileZilla FTP Server
I use VSCodium (the MS telemetry free version of Visual Studio Code) as my editor, PCManFM-qt as my FTP client. It's a great combination because PCManFM doesn't prompt me to upload and overwrite remote files. Watching my FTP server in real time, the logs are as expected when I open PCManFM. It's fine when I open VSCodium with no open files. However, if I open a file from my server using PCManFM in VSCodium, one of those two programs starts bombarding my server with CWD and SIZE requests:
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/webcontent/Admin/printMapping/node_modules
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/webcontent/Admin/printMapping/node_modules": directory not found.
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/webcontent/Admin/tsconfig.json
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/webcontent/Admin/tsconfig.json": directory not found.
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/webcontent/Admin/printMapping/node_modules
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/webcontent/Admin/tsconfig.json
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
(000005)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/webcontent/Admin/jsconfig.json
(000007)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/webcontent/Admin/printMapping/bower_components
(000005)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/webcontent/Admin/jsconfig.json": directory not found.
(000007)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/webcontent/Admin/printMapping/bower_components": directory not found.
(000005)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/webcontent/Admin/jsconfig.json
(000007)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/webcontent/Admin/printMapping/bower_components
(000005)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
(000007)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
(000008)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/webcontent/tsconfig.json
(000008)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/webcontent/tsconfig.json": directory not found.
(000008)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/webcontent/tsconfig.json
(000008)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/webcontent/jsconfig.json
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/webcontent/jsconfig.json": directory not found.
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/webcontent/jsconfig.json
(000006)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> CWD /inet-folder/tsconfig.json
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 CWD failed. "/inet-folder/tsconfig.json": directory not found.
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> SIZE /inet-folder/tsconfig.json
(000004)4/14/2022 22:25:14 PM - ftpuser (11.222.333.444)> 550 File not found
What sticks out to me are "bower_components" and "node_modules." Up to seventy per second. That's okay for a while, but then it starts to interfere with saving files and I get codium and PCManFM both as processes I can't kill.
I don't use github, subversion, bitbucket.
node is installed, but I've never used it that I know of, and I can't figure out how to remove it, or even if I should.
bower is not installed.
I've disabled all VSCodium extensions.
I've tried every combination of Dolphin, PCManFM, VSCodium, Kate, and Visual Studio Code.
ADDITIONAL INFO: this only happens with .js files. Once a .js file is opened, the server starts getting hit. Closing the .js file doesn't stop the behavior. Only closing VSCode stops it - if I do it before it locks up.
This behavior doesn't happen with Dolphin. It doesn't happen with Kate or Visual Studio Code, with .html/.css/.asp/.json files. Only the combination of VSCodium and PCManFM-QT and javascript files. I don't even know how to begin tracking down this issue.
The end goal is to stop the server bombardment and retain the use of VSCodium and PCManFM-QT if possible. Help!
SOLVED: I renamed the node_modules folder in /usr/share/codium/resources/app/extensions to somethingelse and the problem went away. Codium still appears to be operating normally.
Related
I'm trying to deploy a Unity WebGL app to Azure to run as a Web App. But I cannot get the app to deploy. I am using the latest version of Unity (2022.1.3f1).
I have built the app, and here are the contents of my `Build`` directory:
# Build> ll
-rw-r--r-- 1 DKS0510862 staff 3664517 Jun 9 11:12 DSG Westy Unity PoC.data.gz
-rw-r--r-- 1 DKS0510862 staff 78822 Jun 9 11:14 DSG Westy Unity PoC.framework.js.gz
-rw-r--r--# 1 DKS0510862 staff 20484 Jun 9 11:09 DSG Westy Unity PoC.loader.js
-rw-r--r-- 1 DKS0510862 staff 7390463 Jun 9 11:14 DSG Westy Unity PoC.wasm.gz
In VS Code, I am navigating to the Build directory, right-clicking on the directory, and then selecting Deploy to Web App. I am logged in to Azure, and I am prompted to select the App Service that I created in Azure, so my connection is okay.
The deployment seems to have run successfully.
4:02:14 PM innovation-unity-poc-dev: Starting deployment...
4:02:18 PM innovation-unity-poc-dev: Creating zip package...
4:02:22 PM innovation-unity-poc-dev: Zip package size: 10.9 MB
4:02:24 PM innovation-unity-poc-dev: Updating submodules.
4:02:24 PM innovation-unity-poc-dev: Preparing deployment for commit id '38620705e7'.
4:02:24 PM innovation-unity-poc-dev: Generating deployment script.
4:02:24 PM innovation-unity-poc-dev: Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "C:\local\Temp\zipdeploy\extracted" -o "C:\home\site\deployments\tools" --basic --sitePath "C:\local\Temp\zipdeploy\extracted"'.
4:02:26 PM innovation-unity-poc-dev: Generating deployment script for Web Site
4:02:27 PM innovation-unity-poc-dev: Generated deployment script files
4:02:27 PM innovation-unity-poc-dev: Running deployment command...
4:02:27 PM innovation-unity-poc-dev: Command: "C:\home\site\deployments\tools\deploy.cmd"
4:02:30 PM innovation-unity-poc-dev: Handling Basic Web Site deployment.
4:02:30 PM innovation-unity-poc-dev: Creating app_offline.htm
4:02:30 PM innovation-unity-poc-dev: KuduSync.NET from: 'C:\local\Temp\zipdeploy\extracted' to: 'C:\home\site\wwwroot'
4:02:30 PM innovation-unity-poc-dev: Deleting file: 'hostingstart.html'
4:02:30 PM innovation-unity-poc-dev: Copying file: 'DSG Westy Unity PoC.data.gz'
4:02:30 PM innovation-unity-poc-dev: Copying file: 'DSG Westy Unity PoC.framework.js.gz'
4:02:30 PM innovation-unity-poc-dev: Copying file: 'DSG Westy Unity PoC.loader.js'
4:02:30 PM innovation-unity-poc-dev: Copying file: 'DSG Westy Unity PoC.wasm.gz'
4:02:30 PM innovation-unity-poc-dev: Deleting app_offline.htm
4:02:30 PM innovation-unity-poc-dev: Finished successfully.
4:02:30 PM innovation-unity-poc-dev: Running post deployment command(s)...
4:02:30 PM innovation-unity-poc-dev: Triggering recycle (preview mode disabled).
4:02:30 PM innovation-unity-poc-dev: Deployment successful.
4:03:18 PM: Deployment to "innovation-unity-poc-dev" completed.
However, when I try to connect to the app, in the browser I am seeing the error message "You do not have permission to view this directory or page".
I see the following in the Web Server logs, but these don't appear to be error messages.
022-06-09 20:08:09 ~1INNOVATION-UNITY-POC-DEV GET /api/logstream/http X-ARR-LOG-ID=bba7b8a4-5d1e-4616-8f43-5237acd8a969 443 - 199.30.194.254 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/102.0.5005.61+Safari/537.36 - - innovation-unity-poc-dev.scm.azurewebsites.net 200 0 64 2729 1541 180037
2022-06-09 20:08:20 INNOVATION-UNITY-POC-DEV GET / X-ARR-LOG-ID=628fa657-ed76-4252-a55d-c15b3f4150cf 443 - 199.30.194.254 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/102.0.5005.61+Safari/537.36 ARRAffinity=22a7daa836b64a8ce56c907737553d08297ff2e76cd06a1f52c29956b9a85c17;+ARRAffinitySameSite=22a7daa836b64a8ce56c907737553d08297ff2e76cd06a1f52c29956b9a85c17 - innovation-unity-poc-dev.azurewebsites.net 403 14 0 422 1626 62
The only entry I am seeing in the Application Logs is a request to the logstream API.
I have no idea where to look to do any more troubleshooting. Is there some way I can see what the filesystem looks like for the app, to see if my files were deployed correctly?
Flutter(1.22.5) packages are not recognized in Android Studio(Windows-10(64bit)),eventhough they are available in the "C:\src\flutter\packages\flutter\lib" directory.
How to resolve this?
Flutter path - C:\src\flutter
DartSdk path - C:\src\flutter\bin\cache\dart-sdk
Packages -
C:\src\flutter>cd "C:\src\flutter\packages\flutter\lib"
C:\src\flutter\packages\flutter\lib>dir
Volume in drive C has no label.
Volume Serial Number is 2EAF-73E1
Directory of C:\src\flutter\packages\flutter\lib
16-Dec-20 04:43 PM <DIR> .
16-Dec-20 04:43 PM <DIR> ..
16-Dec-20 04:43 PM 3,076 analysis_options_user.yaml
16-Dec-20 04:43 PM 9,707 animation.dart
16-Dec-20 04:43 PM 2,024 cupertino.dart
16-Dec-20 04:43 PM 1,777 foundation.dart
16-Dec-20 04:43 PM 1,216 gestures.dart
16-Dec-20 04:43 PM 6,018 material.dart
16-Dec-20 04:43 PM 2,464 painting.dart
16-Dec-20 04:43 PM 677 physics.dart
16-Dec-20 04:43 PM 3,170 rendering.dart
16-Dec-20 04:43 PM 694 scheduler.dart
16-Dec-20 04:43 PM 707 semantics.dart
16-Dec-20 04:43 PM 1,664 services.dart
16-Dec-20 04:43 PM <DIR> src
16-Dec-20 04:43 PM 5,308 widgets.dart
13 File(s) 38,502 bytes
3 Dir(s) 27,227,918,336 bytes free
main.dart -
import 'package:flutter/material.dart';
import 'C:\src\flutter\packages\flutter\lib\material.dart';
ERROR -
Error: Could not resolve the package 'flutter' in 'package:flutter/material.dart'.
^
lib/main.dart:6:8: Error: Not found: 'package:flutter/material.dart'
import 'package:flutter/material.dart';
^
lib/main.dart:7:8: Error: Error when reading 'c:src%0Clutterpackages%0Clutterlibmaterial.dart': StandardFileSystem only supports file:* and data:* URIs
import 'C:\src\flutter\packages\flutter\lib\material.dart';
The original project was created by downloading Flutter via Git ,maybe the latest Flutter version has some bugs.
Downloading Flutter stable version from the official website solved the issue.
I am running mod_pagespeed (Apache) on my server and it is functioning great, apart from many "info level" messages in the admin console log. The site is currently scoring 94/89 on GTMetrix and I'm at the point of trying to squeeze that last bit of juice from this wonderful module.
These messages refer to unrecognised scripts that mod_pagespeed was attempting to process. In most cases they contain json or text/html, i.e.:
[Wed, 29 Jan 2020 13:17:10 GMT] [Info] [16645] [https://www.example.com/comment/:271] Unrecognized script:'<script type='application/ld+json'></script> 271...295'
[Wed, 29 Jan 2020 13:17:10 GMT] [Info] [16645] [https://www.example.com/comment/:88] Unrecognized script:'<script type='application/ld+json' class='yoast-schema-graph yoast-schema-graph--main'></script> 88...88'
[Wed, 29 Jan 2020 13:13:01 GMT] [Info] [14352] [https://www.example.com/comment/:47] Unrecognized script:'<script type="text/html" id="wpb-modifications"></script> 47...47'
[Wed, 29 Jan 2020 13:13:01 GMT] [Info] [14352] [https://www.example.com/comment/:11] Unrecognized script:'<script type='application/ld+json'></script> 11...33'
[Wed, 29 Jan 2020 13:13:01 GMT] [Info] [14352] [https://www.example.com//:11] Unrecognized script:'<script type='application/ld+json' class='yoast-schema-graph yoast-schema-graph--main'></script> 11...11'
Does anyone here know of any way to configure Pagespeed to be able to recognise this format?
I've already fixed some issues with unrecognised image links within some tags:
ModPagespeedUrlValuedAttribute img data-lazy-src image
ModPagespeedUrlValuedAttribute a data-tolb-src image
And those assets are now being rewritten/compressed.
My main problem is that I don't know how to get Pagespeed to recognise these script tags.
Is there a way? (Is it even necessary for these type of script tags?)
Many thanks in advance.
I tried yesterday to make a virtual host.
i did few steps to make it:
i removed the hash (#) in /opt/lampp/etc/extra/ not its:
(hash)Virtual hosts
Include etc/extra/httpd-vhosts.conf
i edited the /opt/lampp/etc/extra/httpd-vhosts.conf to this:
i created directory for pic.localhost i 3 commands via root:
mkdir /opt/lampp/pictures/
chown daemon:daemon 770 -R /opt/lampp/pictures/
chmod 770 -R /opt/lampp/pictures/
i added this following lined to /etc/hosts/ file:
127.0.0.1 pic.localhost
i restarted the xampp(version 5.6.8) and its not working. what i did wrong?
log file picture-access_log shows:
5.29.203.187 - - [01/Jul/2015:18:04:07 +0300] "GET / HTTP/1.1" 403 1036
log file picture-error_log shows:
[Wed Jul 01 18:04:07.173810 2015] [authz_core:error] [pid 24261]
[client 5.29.203.187:57710] AH01630: client denied by server
configuration: /opt/lampp/pictures/
I have run into a problem on CentOS 7 when attempting to map a volume to the host in a tomcat container. This happens with the public tomcat images as well as an image I have created (based on centos instead of debian).
instantiating a container as follows will succeed:
docker run -it -d tomcat:8
instantiating a container as follows will succeed, but with errors in the log and logs are not written to the host:
docker run -it -d -v /usr/local/tomcat:/usr/local/tomcat tomcat:8
[wpackard#eagle2 tomcat]$ dkr run -it -d -v
/usr/local/tomcat:/usr/local/tomcat tomcat:8
34075701b1436f83a24212170b4d2113ae698df244c449203b1c9af9814485c9
[wpackard#eagle2 tomcat]$ dkr ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34075701b143 tomcat:8 "catalina.sh run" 5 seconds ago Up 4 seconds 8080/tcp sharp_einstein
[wpackard#eagle2 tomcat]$ dkr logs sharp_einstein
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: /usr/local/tomcat/logs/catalina.2015-03-31.log (Permission denied)
...
31-Mar-2015 15:32:04.088 SEVERE [Catalina-startStop-1] org.apache.catalina.startup.HostConfig.start Unable to create directory for deployment: /usr/local/tomcat/conf/Catalina/localhost
31-Mar-2015 15:32:04.097 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/ROOT
31-Mar-2015 15:32:04.468 WARNING [localhost-startStop-1] org.apache.catalina.core.StandardContext.postWorkDirectory Failed to create work directory [/usr/local/tomcat/work/Catalina/localhost/ROOT] for context []
31-Mar-2015 15:32:05.966 SEVERE [localhost-startStop-1] org.apache.jasper.EmbeddedServletOptions.<init> The scratchDir you specified: /usr/local/tomcat/work/Catalina/localhost/ROOT is unusable.
31-Mar-2015 15:32:06.042 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/ROOT has finished in 1,929 ms
31-Mar-2015 15:32:06.043 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/docs
31-Mar-2015 15:32:06.093 WARNING [localhost-startStop-1] org.apache.catalina.core.StandardContext.postWorkDirectory Failed to create work directory [/usr/local/tomcat/work/Catalina/localhost/docs] for context [/docs]
31-Mar-2015 15:32:06.216 SEVERE [localhost-startStop-1] org.apache.jasper.EmbeddedServletOptions.<init> The scratchDir you specified: /usr/local/tomcat/work/Catalina/localhost/docs is unusable.
31-Mar-2015 15:32:06.219 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/docs has finished in 176 ms
31-Mar-2015 15:32:06.220 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/examples
31-Mar-2015 15:32:06.272 WARNING [localhost-startStop-1] org.apache.catalina.core.StandardContext.postWorkDirectory Failed to create work directory [/usr/local/tomcat/work/Catalina/localhost/examples] for context [/examples]
31-Mar-2015 15:32:07.952 SEVERE [localhost-startStop-1] org.apache.jasper.EmbeddedServletOptions.<init> The scratchDir you specified: /usr/local/tomcat/work/Catalina/localhost/examples is unusable.
[wpackard#eagle2 tomcat]$
Exec'ing to the container and attempting to write also fails.
[wpackard#eagle2 tomcat]$ dkr ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34075701b143 tomcat:8 "catalina.sh run" 5 minutes ago Up 5 minutes 8080/tcp sharp_einstein
[wpackard#eagle2 tomcat]$ dkr exec -it sharp_einstein /bin/bash
root#34075701b143:/usr/local/tomcat# ls -l
total 96
-rw-rw-r--. 1 root root 56977 Jan 23 11:59 LICENSE
-rw-rw-r--. 1 root root 1397 Jan 23 11:59 NOTICE
-rw-rw-r--. 1 root root 6779 Jan 23 11:59 RELEASE-NOTES
-rw-rw-r--. 1 root root 16204 Jan 23 11:59 RUNNING.txt
drwxrwxr-x. 2 root root 4096 Mar 31 12:14 bin
drwxrwxr-x. 2 root root 4096 Jan 23 11:59 conf
drwxrwxr-x. 2 root root 4096 Mar 31 12:14 lib
drwxrwxr-x. 2 root root 6 Jan 23 11:56 logs
drwxrwxr-x. 2 root root 29 Mar 31 12:14 temp
drwxrwxr-x. 7 root root 76 Jan 23 11:57 webapps
drwxrwxr-x. 2 root root 6 Jan 23 11:56 work
root#34075701b143:/usr/local/tomcat# cd logs
root#34075701b143:/usr/local/tomcat/logs# echo "test" > test.log
bash: test.log: Permission denied
I have created an instance of the postgresql container on centos and that successfully maps and uses the volume, verified by creating a db, stopping the instance and then re-running the container.
[wpackard#eagle2 ~]$ uname --all
Linux eagle2 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[wpackard#eagle2 ~]$
dkr is an alias to docker, I have created a docker group and added myself to the group to eliminate the need for sudo.
The volume mapping seems to work correctly on ubuntu. On CentOS I have tried both the package version (as below), and also updating it to 1.5.
[wpackard#eagle2 ~]$ dkr --version
Docker version 1.3.2, build 39fa2fa/1.3.2
[wpackard#eagle2 ~]$
How do I make volumes work on CentOS?
I think your volumes are working :-) You have a permission problem. I run into this fairly often with the mapping of user id between the host and the container. On your host, if you look at /usr/local/tomcat (ls -ld), you will see a owner, group and the permissions. You probably have something like 0755 (read/write/exec by owner, read/exec by group, read/exec by world. You can test this theory easily, simple remember the current settings for /usr/local/tomcat/logs, then do:
chmod 777 /usr/local/tomcat/logs
from the docker host (not the container). Then run your test on the container, the Permission denied should evaporate.
This is NOT a good fix, though. I don't know what the community says about user id mapping for docker. One thing you could do is figure out the user and group in your host for that directory. Then, when you create your image (or at run time) create a user with the same id and a group with the same id in the container. Then run your tomcat service using that user in the container.
This is due to SELinux.
You must attach correct type to host directory:
host$ chcon -Rt svirt_sandbox_file_t /usr/local/tomcat