"Warning: filemtime(): stat failed for" errors of Responsive File Manager - responsive-filemanager

I have used v 9.14.0 and got this error. Please help me. Thank you so much.
Warning: filemtime(): stat failed for ../upload/.DS_Store in /usr/share/nginx/html/admin/filemanager/dialog.php on line 674
Warning: filesize(): stat failed for ../upload/.DS_Store in /usr/share/nginx/html/admin/filemanager/dialog.php on line 675
Warning: filemtime(): stat failed for ../upload/BỆNH HẠI - COPPRION in /usr/share/nginx/html/admin/filemanager/dialog.php on line 674
Warning: filesize(): stat failed for ../upload/BỆNH HẠI - COPPRION in /usr/share/nginx/html/admin/filemanager/dialog.php on line 675
Warning: filemtime(): stat failed for ../upload/adm in /usr/share/nginx/html/admin/filemanager/dialog.php on line 674
Warning: filesize(): stat failed for ../upload/adm in /usr/share/nginx/html/admin/filemanager/dialog.php on line 675
Warning: filemtime(): stat failed for ../upload/admin in /usr/share/nginx/html/admin/filemanager/dialog.php on line 674
Warning: filesize(): stat failed for ../upload/admin in /usr/share/nginx/html/admin/filemanager/dialog.php on line 675
Warning: filemtime(): stat failed for ../upload/admin1 in /usr/share/nginx/html/admin/filemanager/dialog.php on line 674
Warning: filesize(): stat failed for ../upload/admin1 in /usr/share/nginx/html/admin/filemanager/dialog.php on line 675
Warning: filemtime(): stat failed for ../upload/admin4 in /usr/share/nginx/html/admin/filemanager/dialog.php on line

Related

Cloud Run Python3.7 Fatal Python error: Segmentation fault

Getting this error if I call an API which publishes message to pub sub in background.
Application have same pub sub code somewhere else in another script as well and that works fine. This addition is breaking.
2022-11-01 22:37:01.168 MDT
Current thread 0x00003ecdf3e00700 (most recent call first):
2022-11-01 22:37:01.169 MDT
File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 933 in _blocking
2022-11-01 22:37:01.169 MDT
File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 945 in __call__
2022-11-01 22:37:01.169 MDT
File "/usr/local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 72 in error_remapped_callable
2022-11-01 22:37:01.169 MDT
File "/usr/local/lib/python3.7/site-packages/google/api_core/timeout.py", line 99 in func_with_timeout
2022-11-01 22:37:01.170 MDT
File "/usr/local/lib/python3.7/site-packages/google/api_core/retry.py", line 190 in retry_target
2022-11-01 22:37:01.170 MDT
File "/usr/local/lib/python3.7/site-packages/google/api_core/retry.py", line 288 in retry_wrapped_func
2022-11-01 22:37:01.170 MDT
File "/usr/local/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py", line 154 in __call__
2022-11-01 22:37:01.170 MDT
File "/usr/local/lib/python3.7/site-packages/google/pubsub_v1/services/publisher/client.py", line 785 in publish
2022-11-01 22:37:01.171 MDT
File "/usr/local/lib/python3.7/site-packages/google/cloud/pubsub_v1/publisher/client.py", line 272 in _gapic_publish
2022-11-01 22:37:01.171 MDT
File "/usr/local/lib/python3.7/site-packages/google/cloud/pubsub_v1/publisher/_batch/thread.py", line 278 in _commit
2022-11-01 22:37:01.171 MDT
File "/usr/local/lib/python3.7/threading.py", line 870 in run
2022-11-01 22:37:01.171 MDT
File "/usr/local/lib/python3.7/threading.py", line 926 in _bootstrap_inner
2022-11-01 22:37:01.172 MDT
File "/usr/local/lib/python3.7/threading.py", line 890 in _bootstrap
2022-11-01 22:37:01.172 MDT
Thread 0x00003ecec975e740 (most recent call first):
2022-11-01 22:37:01.172 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 36 in wait
2022-11-01 22:37:01.172 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 84 in run_for_one
2022-11-01 22:37:01.172 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 125 in run
2022-11-01 22:37:01.172 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/workers/base.py", line 142 in init_process
2022-11-01 22:37:01.173 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 589 in spawn_worker
2022-11-01 22:37:01.173 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 622 in spawn_workers
2022-11-01 22:37:01.173 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 551 in manage_workers
2022-11-01 22:37:01.173 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/arbiter.py", line 202 in run
2022-11-01 22:37:01.173 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 72 in run
2022-11-01 22:37:01.174 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/base.py", line 231 in run
2022-11-01 22:37:01.174 MDT
File "/usr/local/lib/python3.7/site-packages/gunicorn/app/wsgiapp.py", line 67 in run
2022-11-01 22:37:01.174 MDT
File "/usr/local/bin/gunicorn", line 8 in <module>
2022-11-01 22:37:01.174 MDT
Uncaught signal: 11, pid=42, tid=54, fault_addr=42.
2022-11-01 22:37:01.184 MDT
[2022-11-02 04:37:01 +0000] [2] [WARNING] Worker with pid 42 was terminated due to signal 11```

How to solve "Operation not permitted: '/var/lib/pgadmin'" error in laradock at Windows Subsystem for Linux?

I am using the Laradock in my Laravel project for dockerizing with Nginx, Postgres, and Pgadmin. All the containers are running well but the Pgadmin is unable to do so. Here is my error log,
pgadmin_1 | WARNING: Failed to set ACL on the directory containing the configuration database: [Errno 1] Operation not permitted: '/var/lib/pgadmin'
pgadmin_1 | Traceback (most recent call last):
pgadmin_1 | File "run_pgadmin.py", line 4, in <module>
pgadmin_1 | from pgAdmin4 import app
pgadmin_1 | File "/pgadmin4/pgAdmin4.py", line 92, in <module>
pgadmin_1 | app = create_app()
pgadmin_1 | File "/pgadmin4/pgadmin/__init__.py", line 241, in create_app
pgadmin_1 | create_app_data_directory(config)
pgadmin_1 | File "/pgadmin4/pgadmin/setup/data_directory.py", line 40, in create_app_data_directory
pgadmin_1 | _create_directory_if_not_exists(config.SESSION_DB_PATH)
pgadmin_1 | File "/pgadmin4/pgadmin/setup/data_directory.py", line 16, in _create_directory_if_not_exists
pgadmin_1 | os.mkdir(_path)
pgadmin_1 | PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin/sessions'
pgadmin_1 | sudo: setrlimit(RLIMIT_CORE): Operation not permitted
pgadmin_1 | [2020-06-07 11:48:43 +0000] [1] [INFO] Starting gunicorn 19.9.0
pgadmin_1 | [2020-06-07 11:48:43 +0000] [1] [INFO] Listening at: http://[::]:80 (1)
pgadmin_1 | [2020-06-07 11:48:43 +0000] [1] [INFO] Using worker: threads
pgadmin_1 | /usr/local/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
pgadmin_1 | return io.open(fd, *args, **kwargs)
pgadmin_1 | [2020-06-07 11:48:43 +0000] [83] [INFO] Booting worker with pid: 83
pgadmin_1 | [2020-06-07 11:48:44 +0000] [83] [ERROR] Exception in worker process
pgadmin_1 | Traceback (most recent call last):
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
pgadmin_1 | worker.init_process()
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 104, in init_process
pgadmin_1 | super(ThreadWorker, self).init_process()
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 129, in init_process
pgadmin_1 | self.load_wsgi()
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
pgadmin_1 | self.wsgi = self.app.wsgi()
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 67, in wsgi
pgadmin_1 | self.callable = self.load()
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
pgadmin_1 | return self.load_wsgiapp()
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
pgadmin_1 | return util.import_app(self.app_uri)
pgadmin_1 | File "/usr/local/lib/python3.8/site-packages/gunicorn/util.py", line 350, in import_app
pgadmin_1 | __import__(module)
pgadmin_1 | File "/pgadmin4/run_pgadmin.py", line 4, in <module>
pgadmin_1 | from pgAdmin4 import app
pgadmin_1 | File "/pgadmin4/pgAdmin4.py", line 92, in <module>
pgadmin_1 | app = create_app()
pgadmin_1 | File "/pgadmin4/pgadmin/__init__.py", line 241, in create_app
pgadmin_1 | create_app_data_directory(config)
pgadmin_1 | File "/pgadmin4/pgadmin/setup/data_directory.py", line 40, in create_app_data_directory
pgadmin_1 | _create_directory_if_not_exists(config.SESSION_DB_PATH)
pgadmin_1 | File "/pgadmin4/pgadmin/setup/data_directory.py", line 16, in _create_directory_if_not_exists
pgadmin_1 | os.mkdir(_path)
pgadmin_1 | PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin/sessions'
pgadmin_1 | [2020-06-07 11:48:44 +0000] [83] [INFO] Worker exiting (pid: 83)
pgadmin_1 | WARNING: Failed to set ACL on the directory containing the configuration database: [Errno 1] Operation not permitted: '/var/lib/pgadmin'
pgadmin_1 | /usr/local/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
pgadmin_1 | return io.open(fd, *args, **kwargs)
pgadmin_1 | [2020-06-07 11:48:44 +0000] [1] [INFO] Shutting down: Master
pgadmin_1 | [2020-06-07 11:48:44 +0000] [1] [INFO] Reason: Worker failed to boot.
I have tried many ways to solve this problem. Such as,
OSError: [Errno 13] Permission denied: '/var/lib/pgadmin'
https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
and some other github issues and their solutions. I also run the sudo chmod -R 777 ~/.laradock/data/pgadmin and sudo chmod -R 777 /var/lib/pgadmin command to get the permission but still the same error log. Can you guys help me on this? I think some others are also getting this error on their local machine.
Thanks 🙂
You may try this:
sudo chown -R 5050:5050 ~/.laradock/data/pgadmin
Then restart the container. Cause in the container with:
uid=5050(pgadmin) gid=5050(pgadmin)
and
drwx------ 4 pgadmin pgadmin 56 Jan 27 08:25 pgadmin
As others have noted above, I found that Permission denied: '/var/lib/pgadmin/sessions' in Docker speaks to the challenge on the persistent local folder not having the correct user permissions.
After running sudo chown -R 5050:5050 ~/.laradock/data/pgadmin and restarting the container, the below error is no longer in my log
PermissionError: [Errno 13] Permission denied:
A similar error happens when using Kubernetes and the pgadmin4 helm chart from https://github.com/rowanruseler/helm-charts.
The solution is to set:
VolumePermissions:
enabled: true
even when persistence is not enabled. In this way also the /var/lib/pgadmin folder in the container gets assigned of the correct permissions and the pgadmin4.db database can be created correctly.
Assuming you have folder with pgadmin4.db already defined on your git repo with an other user than pgadmin, you can do so:
postgres_interface:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=user#domain.com
- PGADMIN_DEFAULT_PASSWORD=postgres
ports:
- "5050:80"
user: root
volumes:
- ./env/local/pgadmin/pgadmin4.db:/pgadmin4.db
entrypoint: /bin/sh -c "cp /pgadmin4.db /var/lib/pgadmin/pgadmin4.db && cd /pgadmin4 && /entrypoint.sh"
The only solution I can provide is to log in to the container with
docker-compose exec --user root pgadmin sh
and then
chmod 0777 /var/lib/pgadmin -R
probably it may be better to create your own dockerfile from dpage/pgadmin4 and run these commands in advance.

Unable to make for buildroot (checking for suffix of object files... configure: error)

I am trying to make buildroot toolchain for cross compilation on Raspberry Pi. ( using buildroot-2016.11)
When I run make, I receive the following error:
checking for suffix of object files... configure: error: in `/usr/RPi/buildroot-2016.11/output/build/host-binutils-2.26.1':
configure: error: cannot compute suffix of object files: cannot compile
buildroot-2016.11/output/build/host-binutils-2.26.1'
The config.log from the error window is as below:
ccache: error: Failed to create temporary file for /auto/ccache/tmp/tmp.cpp_stderr: Permission denied
112 configure:4591: $? = 1
113 configure: failed program was:
114 | /* confdefs.h */
122 |
123 | int
124 | main ()
125 | {
126 |
127 | ;
128 | return 0;
129 | }
130 configure:4605: error: in `/usr/RPi/buildroot-2016.11/output/build/host-binutils-2.26.1':
131 configure:4608: error: cannot compute suffix of object files: cannot compile
It's because you don't have write permission in the /auto/ccache/ directory. You can use sudo chown -R YOURUSERNAME:YOURUSERNAME /auto/ccache/ to set proper access permissions.
You set the ccache directory BR2_CCACHE_DIR (either in the environment or in the config file) to /auto/ccache. You need to make sure that you have write permission to that directory.

Build mono for fedora 20 no xbuild

I'm currently trying to update my mono, gtk-sharp and monodevelop environment, since I need to build with gstreamer-sharp 0.99.x which needs the new bindings.
So no problem I thought. Downloaded mono, unpacked it and started the normal toolchain.
But mono doesn't build xbuild for me. mono is build and has the correct version, but I couldn't test it, since I would say, something is missing, if xbuild is not build.
How can this happen?
config.log (errors only mentioned):
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
conftest.c:58:24: fatal error: sys/sockio.h: No such file or directory
#include <sys/sockio.h>
conftest.c:27:23: fatal error: sys/utime.h: No such file or directory
#include <sys/utime.h>
conftest.c:64:23: fatal error: sys/mkdev.h: No such file or directory
#include <sys/mkdev.h>
conftest.c:31:23: fatal error: sys/mkdev.h: No such file or directory
#include <sys/mkdev.h>
conftest.c:66:21: fatal error: libproc.h: No such file or directory
#include <libproc.h>
conftest.c:94:20: fatal error: ieeefp.h: No such file or directory
#include <ieeefp.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:96: undefined reference to `_finite'
collect2: error: ld returned 1 exit status
conftest.c:71:4: error: #error "FAILED"
#error "FAILED"
^
conftest.c:101:31: fatal error: nacl/nacl_dyncode.h: No such file or
directory #include <nacl/nacl_dyncode.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:102: undefined reference to `dlopen'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:111: undefined reference to `kqueue'
collect2: error: ld returned 1 exit status
conftest.c:95:13: error: too few arguments to function 'sched_setaffinity'
sched_setaffinity(0, &mask);
/usr/bin/ld: cannot find -lsocket
collect2: error: ld returned 1 exit status
conftest.c:101:15: error: 'SOL_TCP' undeclared (first use in this function)
int level = SOL_TCP;
conftest.c:98:22: fatal error: Ws2ipdef.h: No such file or directory
#include <Ws2ipdef.h>
conftest.c:106:20: error: 'NULL' undeclared (first use in this function)
gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
conftest.c:138:24: fatal error: pthread_np.h: No such file or directory
#include <pthread_np.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:141: undefined reference to `pthread_attr_get_np'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:125: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:127: undefined reference to `sqrtf'
collect2: error: ld returned 1 exit status
conftest.c:156:23: fatal error: sys/event.h: No such file or directory
#include <sys/event.h>
conftest.c:134:8: error: 'struct sockaddr_in' has no member named 'sin_len'
saddr.sin_len = sizeof (saddr);
conftest.c:134:9: error: 'struct sockaddr_in6' has no member named 'sin6_len'
saddr6.sin6_len = sizeof (saddr6);
conftest.c:161:23: fatal error: checklist.h: No such file or directory
#include <checklist.h>
conftest.c:161:22: fatal error: pathconf.h: No such file or directory
#include <pathconf.h>
conftest.c:129:24: fatal error: attr/xattr.h: No such file or directory
#include <attr/xattr.h>
conftest.c:162:25: fatal error: sys/extattr.h: No such file or directory
#include <sys/extattr.h>
conftest.c:165:24: fatal error: sys/vfstab.h: No such file or directory
#include <sys/vfstab.h>
conftest.c:194:24: error: expected expression before ')' token
if (sizeof ((blksize_t)))
conftest.c:253:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
#include <CommonCrypto/CommonDigest.h>
conftest.c:253:20: fatal error: curses.h: No such file or directory
#include <curses.h>
conftest.c:225:18: fatal error: term.h: No such file or directory
#include <term.h>
/usr/bin/ld: cannot find -lsunmath
collect2: error: ld returned 1 exit status
Greeting
Sven

Linux Error during make gobject-introspection-1.32.1

I want to install gobject-introspection-1.32.1 on my embedded Linux.
But during make this error message appear.
Do anybody now what to do?
-bash-3.2# make
[ -d gir ] || /bin/mkdir -p gir ; \
sed \
-e s,%CAIRO_SHARED_LIBRARY%,, \
-e s,%CAIRO_GIR_PACKAGE%,, \
< gir/cairo-1.0.gir.in > gir/cairo-1.0.gir.tmp && mv gir/cairo-1.0.gir.tmp gir/cairo-1.0.gir
make all-recursive
make[1]: Entering directory `/root/gobject-introspection-1.32.1'
Making all in .
make[2]: Entering directory `/root/gobject-introspection-1.32.1'
GEN g-ir-scanner
GEN g-ir-annotation-tool
GISCAN GLib-2.0.gir
Traceback (most recent call last):
File "./g-ir-scanner", line 44, in <module>
from giscanner.scannermain import scanner_main
File "./giscanner/scannermain.py", line 29, in <module>
import tempfile
File "/usr/local/lib/python2.7/tempfile.py", line 34, in <module>
from random import Random as _Random
File "/usr/local/lib/python2.7/random.py", line 881, in <module>
_inst = Random()
File "/usr/local/lib/python2.7/random.py", line 97, in __init__
self.seed(x)
File "/usr/local/lib/python2.7/random.py", line 111, in seed
a = long(_hexlify(_urandom(16)), 16)
RuntimeError: Failed to read %zi bytes from /dev/urandom
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: Leaving directory `/root/gobject-introspection-1.32.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gobject-introspection-1.32.1'
make: *** [all] Error 2

Resources