Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting a directory into a station #2826

Closed
Alias1975 opened this issue May 11, 2020 · 6 comments
Closed

Mounting a directory into a station #2826

Alias1975 opened this issue May 11, 2020 · 6 comments

Comments

@Alias1975
Copy link

Hi i follow this https://www.azuracast.com/help/docker/#mounting-a-directory-into-a-station

when i try to up docker, it return this

service must be mapping, not a NoneType

Info
Ubuntu 18.04
The share folder is a mounted path.
By terminal linux when i try to list the shared folder i see all (so it's work fine)

in the overide.yml file i change <stations_name> with real name station.

it a bug?

@BusterNeece
Copy link
Member

@Alias1975 It's likely a formatting error in your docker-compose.override.yml file. Can you paste its full contents here?

@Alias1975
Copy link
Author

# docker-compose.override.yml
version: '2.2'
services:
web:
volumes:
- /home/liquidsoap/rep:/var/azuracast/stations/archivio/media/
stations:
volumes:
- /home/liquidsoap/rep:/var/azuracast/stations/archivio/media/

archivio is the name of station on azuracast

@Vaalyn
Copy link
Sponsor Member

Vaalyn commented May 11, 2020

Your docker-compose.override.yml is indeed wrongly formatted.

The spaces that you can see in front of the lines on the help page that you followed are not optional.

In order to fix this issue you need to make sure to add those spaces (when adding those spaces don't use tabs, those are not allowed in a docker-compose file).

The easiest way should be to just copy and paste the config from the help page and then modifying the parts that need to be modified.

@Alias1975
Copy link
Author

Vaalyn thanks a lot!

@Alias1975
Copy link
Author

Sorry if i reopen issue...

now docker stars but when I try to view the music files it remains in constant loading.
loading1

While if I try to log in with sftp I will be this error:
Unable to open .: permission denied

when i try open mount folder by command line:
ls /home/liquidsoap/rep
i see all files.

@Alias1975 Alias1975 reopened this May 12, 2020
@Alias1975
Copy link
Author

Solved it...
when you build the docker you must have administrator privileges to access the folders under the mount

@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants