Operation not permitted – Failed to mount “proc”
lxd打开容器出现问题,看下log信息:
1 2 3 4 5 6 7 8 9 10 11 |
Log: lxc gabor 20210929082420.295 ERROR utils - utils.c:safe_mount:1179 - Operation not permitted - Failed to mount "proc" onto "/usr/lib/x86_64-linux-gnu/lxc/proc" lxc gabor 20210929082420.295 ERROR conf - conf.c:lxc_mount_auto_mounts:724 - Operation not permitted - Failed to mount "proc" on "/usr/lib/x86_64-linux-gnu/lxc/proc" with flags 14 lxc gabor 20210929082420.295 ERROR conf - conf.c:lxc_setup:3539 - Failed to setup first automatic mounts lxc gabor 20210929082420.295 ERROR start - start.c:do_start:1263 - Failed to setup container "gabor" lxc gabor 20210929082420.295 ERROR sync - sync.c:__sync_wait:62 - An error occurred in another process (expected sequence number 5) lxc gabor 20210929082420.296 WARN network - network.c:lxc_delete_network_priv:2589 - Operation not permitted - Failed to remove interface "eth1" with index 11 lxc gabor 20210929082420.296 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:842 - Received container state "ABORTING" instead of "RUNNING" lxc gabor 20210929082420.296 ERROR start - start.c:__lxc_start:1939 - Failed to spawn container "gabor" lxc 20210929082420.300 WARN commands - commands.c:lxc_cmd_rsp_recv:132 - Connection reset by peer - Failed to receive response for command "get_state" |
主要原因是proc目录的挂载问题,按以下操作解决: mkdir /mnt/proc mount -t proc proc /mnt/ […]
CentOS关闭防火墙
安装宝塔之后会自动开启防火墙,这里就说下如何关闭。 查看状态: systemctl status firewalld firewall-cmd –state 关闭防火墙: service firewalld stop 想重新开启的话: # […]
Centos配置NFS实现本地文件夹映射到本地
标签:bt mount NFS rpcbind sipl 安装: 首先查看是否已安装:rpm -qa|grep nfs 如果没有安装的话,执行下面命令进行安装: yum -y install nfs-utils rpcbind 配置: s […]
文件权限中的@什么意思?
比如这样: 这其实是文件的扩展属性,包含了一些额外的信息,比如这个文件是不是从网上下下来的。 可以使用命令:xattr -l name来查看这些额外的属性,比如这个:
1 2 |
xattr -l 1584759074404374.mp4 com.apple.quarantine: 0082;5e758125;WeChat; |
从上面 […]
The Matroska muxer does not yet support muxing cook
在使用FFmpeg进行视频合并的时候报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers built with Apple clang version 12.0.0 (clang-1200.0.32.29) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4_2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 [rm @ 0x7f8b03018000] Invalid stream index 2 for index at pos 83519036 Input #0, concat, from '1.txt': Duration: N/A, start: 0.000000, bitrate: 225 kb/s Stream #0:0: Video: rv40 (RV40 / 0x30345652), yuv420p, 352x288, 180 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 44 kb/s [matroska @ 0x7f8b02847c00] The Matroska muxer does not yet support muxing cook Could not write header for output file #0 (incorrect codec parameters ?): Not yet implemented in FFmpeg, patches welcome Error initializing output stream 0:1 -- Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Last message repeated 1 times |
解决方法: 两种,一种是将mkv改为rm 第二种是-c改为-c:v 推荐第二种 本文最后更新于2021年9月20日,已超过 1 年 […]
如何使用FFmpeg拼接视频?
或者说如何使用FFmpeg合并视频? 首先,建立txt文件,把要合并的视频列表放进去,格式如下:
1 2 3 |
file 1.flv file 2.flv file 3.flv |
然后在当前目录打开终端,然后输入: ffmpeg -f concat -i […]
Can’t write packet with unknown timestamp
FFmpeg报错:
1 2 3 |
[matroska @ 0x7f9206809800] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [matroska @ 0x7f9206809800] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument |
这个问题出在avi格式的视频上,解决: 在ffmpeg后面加上:-fflags +genpts 本文最后更新于2021年9月20日,已超过 […]
lxd如何释放快照占用的容器空间
容器用的久了,可能会发现即使文件删了,空间仍然没有释放。。。这是因为快照在作怪,如果删除的文件有快照在引用的话 ,删除文件是不会释放空间的,那么如何删除快照呢? 查看快照: zfs list -t snapshot -r m-zfs/con […]
Linux下如何快速打包大量文件
平时压缩文件的时候都是用zip命令,不过这个命令对多线程不友好,另外,速度也太慢。 有时候我们只是想单纯的打包一下文件,便于移动和传输,这时就可以直接使用打包命令,不进行压缩。 这里推荐pigz命令,它支持多线程,基本上是秒杀其他。 安装: […]
files list file for package ‘libapt-pkg5.0:amd64’ is missing final newline
使用apt-get安装包的时候出错:
1 2 3 4 5 |
Fetched 12.2 MB in 1s (8,002 kB/s) Extracting templates from packages: 100% Selecting previously unselected package fonts-dejavu-core. dpkg: unrecoverable fatal error, aborting: files list file for package 'libapt-pkg5.0:amd64' is missing final newline |
解决: 新建一个py文件,然后输入:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/usr/bin/python # 8th November, 2009 # update manager failed, giving me the error: # 'files list file for package 'xxx' is missing final newline' for every package. # some Googling revealed that this problem was due to corrupt files(s) in /var/lib/dpkg/info/ # looping though those files revealed that some did not have a final new line # this script will resolve that problem by appending a newline to all files that are missing it # NOTE: you will need to run this script as root, e.g. sudo python newline_fixer.py import os dpkg_path = '/var/lib/dpkg/info/' paths = os.listdir(dpkg_path) for path in paths: path = dpkg_path + path f = open(path, 'a+') data = f.read() if len(data) > 1 and data[-1:] != '\n': f.write('\n') print 'added newline character to:', path f.close() |
然后终端运行即可:python […]