ptrumpis / snap-camera-server

An alternative, self-hosted solution that allows you to continue using Snap Camera with all Snapchat filters after its shutdown on January 25, 2023.
https://github.com/snapcamera
MIT License
330 stars 40 forks source link

Nginx not working? #133

Closed JasBlack closed 6 months ago

JasBlack commented 6 months ago
Screenshot 2024-04-16 at 18 09 59

(base) db@DBs-MacBook-Pro snap-camera-server-3.2.1 % docker compose up
[+] Running 4/0 ⠿ Container snap-camera-server-321-mysql-1 Running 0.0s ⠿ Container snap-camera-server-321-adminer-1 Running 0.0s ⠿ Container snap-camera-server-321-webapp-1 Running 0.0s ⠿ Container snap-camera-server-321-webproxy-1 Created 0.0s Attaching to snap-camera-server-321-adminer-1, snap-camera-server-321-mysql-1, snap-camera-server-321-webapp-1, snap-camera-server-321-webproxy-1 snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh snap-camera-server-321-webproxy-1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf snap-camera-server-321-webproxy-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh snap-camera-server-321-webproxy-1 | 20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh snap-camera-server-321-webproxy-1 | /docker-entrypoint.sh: Configuration complete; ready for start up snap-camera-server-321-webproxy-1 | 2024/04/16 17:15:20 [emerg] 1#1: cannot load certificate "/etc/ssl/certs/studio-app.snapchat.com.crt": BIO_new_file() failed (SSL: error:80000001:system library::Operation not permitted:calling fopen(/etc/ssl/certs/studio-app.snapchat.com.crt, r) error:10080002:BIO routines::system lib) snap-camera-server-321-webproxy-1 | nginx: [emerg] cannot load certificate "/etc/ssl/certs/studio-app.snapchat.com.crt": BIO_new_file() failed (SSL: error:80000001:system library::Operation not permitted:calling fopen(/etc/ssl/certs/studio-app.snapchat.com.crt, r) error:10080002:BIO routines::system lib) snap-camera-server-321-webproxy-1 exited with code 1

ptrumpis commented 6 months ago

Try this: https://github.com/ptrumpis/snap-camera-server/discussions/73#discussioncomment-7256618

Just make sure the command matches your server directory

JasBlack commented 6 months ago

Hello thanks for your speedy reply. Unfortunately that #73 fix did not work for me. I also tried deleting everything and starting again, but having exactly the same issue. Here are some screenshots, maybe you understand the problem?

Thanks

Screenshot 2024-04-17 at 15 21 49 Screenshot 2024-04-17 at 16 12 58
JasBlack commented 6 months ago

never mind, I finally got it working with chatgpt guidance!

However... I am not sure that it will actually work for my intended functions. Maybe you can confirm or deny.

I want to use snapchat lenses on existing video footage. I saw some guides that said this is possible if you use OBS or Splitcam, however, I do not see Snapcamera actually showing up as an input source. Or visa versa...

Do you know if it is still possible for this purpose?

Screenshot 2024-04-17 at 17 02 50
ptrumpis commented 6 months ago

See https://github.com/ptrumpis/snap-camera-server/discussions/76

JasBlack commented 6 months ago

I think I messed up because I installed the patch and now Snapchat wont open.

Following this video. https://www.youtube.com/watch?v=lJhL7bA7GGA

I am guessing now that it was not necessary for me to install the patch? I had version 3.2.1

Snapchat would not open at all after following the video. So I uninstalled and deleted everything and reinstalled it, and now it opens, but none of the filters actually work!

So I am not sure what to do now, should I try the patch again?

Or start from step 1 and try to start the whole thing over again with Docker etc?

Screenshot 2024-04-18 at 14 31 56
JasBlack commented 6 months ago

i tried again with the patch and followed your instructions, and got this.

Screenshot 2024-04-18 at 15 20 57

(base) db@DBs-MacBook-Pro ~ % chmod +x "/Applications/Snap Camera.app/Contents/MacOS/Snap Camera" (base) db@DBs-MacBook-Pro ~ % sudo codesign --remove-signature "/Applications/Snap Camera.app" Password: (base) db@DBs-MacBook-Pro ~ % sudo xattr -cr "/Applications/Snap Camera.app" (base) db@DBs-MacBook-Pro ~ % sudo spctl --add "/Applications/Snap Camera.app" (base) db@DBs-MacBook-Pro ~ % sudo codesign --force --deep --sign - "/Applications/Snap Camera.app" (base) db@DBs-MacBook-Pro ~ %

JasBlack commented 6 months ago

ok got it working again, but still the filters do not show.

Screenshot 2024-04-18 at 15 33 04
ptrumpis commented 6 months ago

Please open a new "Lens not Working" issue with your application log file attached.