Comments (6)
I have the exact same issue.
from unifi-video-controller.
I think it would be helpful to see you config.
from unifi-video-controller.
It works now for me but with issues:
https://github.com/eugeneccnp/unifi-video-controller
The trick was I had to create the tmpfs on the worker node in advance, I still haven't figured out redundancy but for now I got it to work running off one worker node in a bare metal cluster environment with metallb Layer 2 (ARP) setup, I will keep improving upon this repo as I learn.
Now I need to figure out the recording issue:
1603679386.693 2020-10-26 02:29:46.693/UTC: ERROR [uv.recording.svc] [RecordingService] Free disk space has recovered, disabling emergency shutoff in RecordingService-EmergencyShutOffCheck
1603679356.693 2020-10-26 02:29:16.693/UTC: ERROR [uv.recording.svc] [RecordingService] Unable to do emergency shutoff check, shutting off recordings: Mount point for /var/cache/unifi-video/hls not found in RecordingService-EmergencyShutOffCheck
from unifi-video-controller.
@mattster98 Have you tried something like this:
volumeMounts:
- name: unifi-video-tmpfs
mountPath: /var/cache/unifi-video
volumes:
- name: unifi-video-tmpfs
emptyDir:
medium: Memory
sizeLimit: "5Gi"
from unifi-video-controller.
I've got almost the exact same issue with no recordings happening at all and I've been reading this issue and #178.
1635003661.441 2021-10-23 15:41:01.441/GMT: ERROR [uv.recording.svc] [RecordingService] Unable to do emergency shutoff check, shutting off recordings: No such file or directory in RecordingService-EmergencyShutOffCheck
1635003953.204 2021-10-23 15:45:53.204/GMT: ERROR [uv.utils] Unable to get disk usage:/var/lib/unifi-video/videos : No such file or directory in StatsUpdaterTask
I've tried the above suggestion with no luck unfortunately
apiVersion: apps/v1
kind: Deployment
metadata:
name: unifi-video
namespace: unifi
spec:
replicas: 1
selector:
matchLabels:
workload.user.cattle.io/workloadselector: deployment-unifi-unifi-video
strategy:
type: Recreate
template:
metadata:
labels:
workload.user.cattle.io/workloadselector: deployment-unifi-unifi-video
spec:
containers:
- env:
- name: UMASK
value: '002'
- name: PUID
value: '957'
- name: PGID
value: '957'
- name: DEBUG
value: '1'
- name: CREATE_TMPFS
value: 'no'
- name: TZ
value: Americas/Denver
image: pducharme/unifi-video-controller:latest
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 7443
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 2
name: unifi-video
ports:
- containerPort: 10001
name: 10001udp100011
protocol: UDP
- containerPort: 7443
hostPort: 7443
name: 7443tcp74433
protocol: TCP
- containerPort: 7445
name: 7445tcp74453
protocol: TCP
- containerPort: 7446
name: 7446tcp74463
protocol: TCP
- containerPort: 7447
name: 7447tcp74473
protocol: TCP
- containerPort: 7442
name: 7442tcp74423
protocol: TCP
- containerPort: 6666
name: 6666tcp66663
protocol: TCP
- containerPort: 7080
name: 7080tcp70803
protocol: TCP
- containerPort: 1935
name: rtmp
protocol: TCP
- containerPort: 7444
name: rtmps
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 7443
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 2
successThreshold: 2
timeoutSeconds: 2
resources: {}
securityContext:
capabilities:
add:
- DAC_READ_SEARCH
- NET_BIND_SERVICE
- SYS_PTRACE
- SETUID
- SETGID
privileged: true
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /var/lib/unifi-video
name: unifi-video
subPath: data.20211022
- mountPath: /var/lib/unifi-video/videos
name: unifi-video
subPath: videos.20211022
- mountPath: /var/cache/unifi-video
name: unifi-cache
restartPolicy: Always
volumes:
- name: unifi-video
persistentVolumeClaim:
claimName: unifi-video
- name: unifi-cache
emptyDir:
medium: Memory
sizeLimit: "5Gi"
Shelling into the container the related directories /var/cache/unifi-video/hls|export
and /var/lib/unifi-video/videos
and all there and owned by unifi-video:unifi-video
.
from unifi-video-controller.
@ssteveli
I know this is an old post but did you ever find a solution? I'm at the exact same spot as this comment. Trying to run this as a Truenas scale custom-app (kubernetes) and have the EXACT same errors and unable to record.
from unifi-video-controller.
Related Issues (20)
- What is the recommended upgrade procedure? HOT 13
- Unable to Manage - UVC G3 camera HOT 2
- Recordings eventually stop HOT 3
- Not an Issues but HOT 1
- Feature Addition: External Mongo HOT 2
- Inconsistent recording HOT 4
- Cannot view videos in client HOT 3
- Fresh install - video-controller creation script hangs. HOT 18
- Video doesn't start recording automatically after the unifi-video container restart. HOT 8
- java.io.IOException: Unable to create directory /var/cache/unifi-video/exports HOT 6
- UniFi-Video is writing video to a different location HOT 5
- Can only find camera if "--network="host" \" HOT 1
- UniFi Protect cannot discover Video Controller HOT 2
- cannot build image due to mongodb package error HOT 3
- Running network controller and video on the same machine HOT 1
- Custom build docker image produces broken unifi video controller HOT 5
- Need to specify specific OpenJDK version HOT 1
- Still usable? HOT 2
- Service exit with a return value of 4 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi-video-controller.