You are not logged in.

#1 2022-07-13 11:17:07

Ahpt
Member
Registered: 2022-03-24
Posts: 9

mocp FATAL_ERROR: Can't create directory /moc: Permission denied

I recently installed the moc-pulse package from the AUR. It built as intended. I also did a git clone for https://github.com/Lukkario/mocicon-tweak and made mocicon with no issues.

When I attempt to run mocp via the terminal, I get the following output:

FATAL_ERROR: Can't create directory /moc: Permission denied

when I sudo mocp:

Can't load plugin libaac_decoder: file not found
Can't load plugin libmusepack_decoder: file not found
Running the server...
Trying JACK...
Trying ALSA...
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!

What is odd to me, is when I run mocicon and launch moc from the tray icon, mocp opens and plays music as intended.

I'm unsure what might be causing this, and would like to have this working for both mocicon and mocp through the terminal. Many thanks for the help!


Linux is like a child. You put your heart and soul into it, and watch it flourish.

Offline

#2 2022-07-13 16:56:48

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,833
Website

Re: mocp FATAL_ERROR: Can't create directory /moc: Permission denied

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MEG B550 UNIFY // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-07-22 03:09:46

JaydenDev
Member
Registered: 2022-07-11
Posts: 122

Re: mocp FATAL_ERROR: Can't create directory /moc: Permission denied

To fix error 3: https://dev.to/setevoy/linux-alsa-lib-p … slave-38on
To fix error 1: https://bbs.archlinux.org/viewtopic.php?id=170116
to fix error 2: https://moc.daper.net/node/1423

since these methods involve several lines, I will just link them.

Last edited by JaydenDev (2022-07-22 03:10:11)


System Specs:
Intel Core i5-2400 Nvidia GTX 1050ti Logitech G402 Hyperion Fury (Mouse) BestBuy Essentials USB Keyboard
Software Specifications:
Desktop Environment: KDE Plasma Window Manager: KWin Operating System: Arch Linux (btw)

Offline

#4 Today 07:49:40

Ahpt
Member
Registered: 2022-03-24
Posts: 9

Re: mocp FATAL_ERROR: Can't create directory /moc: Permission denied

I followed these articles. There wasn't any issues with the audio and I was able to get the plugins working fine. My only issue now is that I still cannot run without sudo, or I get the following error.

mocp

FATAL_ERROR: Can't create directory /moc: Permission denied

My only thought is that I need to be a part of a specific group to which I am in the group of wheel, audio, libvirt, plugdev, and $USER.

Did I miss something? Thanks!


Linux is like a child. You put your heart and soul into it, and watch it flourish.

Offline

Board footer

Powered by FluxBB