Container keeps restarting #186
Replies: 4 comments 2 replies
-
|
You're telling it to use |
Beta Was this translation helpful? Give feedback.
-
|
Mr. Bentley,
Thank you very much for the prompt reply. I add a timemachine.conf file on my home directory, I am still getting the error message:
***@***.***:~$ cat /home/steve/timemachine.conf
TM_USERNAME=timemachine
TM_GROUPNAME=timemachine
PASSWORD=timemachine
SHARE_NAME=timemachine
VOLUME_SIZE_LIMIT="1 T"
TM_UID=1000
TM_GID=1000
Then started by:
***@***.***:~$ docker run -d --restart=always --name timemachine --net=host --ulimit nofile=65536:65536 -e ADVERTISED_HOSTNAME="" -e CUSTOM_SMB_CONF="false" -e CUSTOM_USER="false" -e DEBUG_LEVEL="1" -e MIMIC_MODEL="TimeCapsule8,119" -e EXTERNAL_CONF="/home/steve" -e HIDE_SHARES="no" -e TM_USERNAME="timemachine" -e TM_GROUPNAME="timemachine" -e TM_UID="1000" -e TM_GID="1000" -e PASSWORD="timemachine" -e SET_PERMISSIONS="false" -e SHARE_NAME="TimeMachine" -e SMB_INHERIT_PERMISSIONS="no" -e SMB_NFS_ACES="no" -e SMB_METADATA="stream" -e SMB_PORT="445" -e SMB_VFS_OBJECTS="fruit streams_xattr" -e VOLUME_SIZE_LIMIT="0" -e WORKGROUP="WORKGROUP" -v /mnt/z/TimeMachine:/opt -v /mnt/z/Docker:/home/steve --tmpfs /run/samba mbentley/timemachine:latest
cdd7b00412b0a23587cfdb18810513e0cef289461d877e6f5f26fb788f423291
I still have the similar error:
2024-10-29 19:46:33 INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
2024-10-29 19:46:33 INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
2024-10-29 19:46:33 INFO: Loading values from /home/steve/*.conf
2024-10-29 19:46:57 INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
2024-10-29 19:46:57 INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
2024-10-29 19:46:57 INFO: Loading values from /home/steve/*.conf
2024-10-29 19:47:44 INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
2024-10-29 19:47:44 INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
2024-10-29 19:46:33 /entrypoint.sh: .: line 321: can't open '/home/steve/*.conf': No such file or directory
2024-10-29 19:46:57 /entrypoint.sh: .: line 321: can't open '/home/steve/*.conf': No such file or directory
2024-10-29 19:47:44 /entrypoint.sh: .: line 321: can't open '/home/steve/*.conf': No such file or directory
2024-10-29 19:48:39 /entrypoint.sh: .: line 321: can't open '/home/steve/*.conf': No such file or directory
2024-10-29 19:49:35 /entrypoint.sh: .: line 321: can't open '/home/steve/*.conf': No such file or directory
2024-10-29 19:50:31 /entrypoint.sh: .: line 321: can't open '/home/steve/*.conf': No such file or directory
2024-10-29 19:47:44 INFO: Loading values from /home/steve/*.conf
2024-10-29 19:48:39 INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
2024-10-29 19:48:39 INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
2024-10-29 19:48:39 INFO: Loading values from /home/steve/*.conf
2024-10-29 19:49:35 INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
2024-10-29 19:49:35 INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
2024-10-29 19:49:35 INFO: Loading values from /home/steve/*.conf
2024-10-29 19:50:31 INFO: CUSTOM_SMB_CONF=false; generating [global] section of /etc/samba/smb.conf...
2024-10-29 19:50:31 INFO: Avahi - generating base configuration in /etc/avahi/services/smbd.service...
2024-10-29 19:50:31 INFO: Loading values from /home/steve/*.conf
Anything else could be wrong?
Thanks,
Steve
…________________________________
From: Matt Bentley ***@***.***>
Sent: Tuesday, October 29, 2024 3:30 PM
To: mbentley/docker-timemachine ***@***.***>
Cc: YoungBilly ***@***.***>; Author ***@***.***>
Subject: Re: [mbentley/docker-timemachine] Container keeps restarting (Discussion #186)
You're telling it to use -e EXTERNAL_CONF="/users" which gets mounted by -v /mnt/z/Docker:/users but apparently there are no .conf files in that directory that are used to specify your user configs. Also posting the docs for user configs<https://github.com/mbentley/docker-timemachine?tab=readme-ov-file#adding-multiple-users--shares> just in case but it looks like you get the concept, you just need to make sure you're mounting in the configs.
—
Reply to this email directly, view it on GitHub<#186 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR3JHOJMJPXFLY3KCKM3AD3Z57O4JAVCNFSM6AAAAABQ2ROY32VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBZGE3DOOA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Mr. Bentley,
Thank you very much for your help. I created a file timemachine,conf and copied to /mnt/z/Docker, it worked.
I know Linux very well, but never used docker. Now with your help, my docker timemachine runs without problem, how do I add it to the TimeMachine backup disk? The command runs on windows 11, ip 192,168.2.197, I can smb://192.168.2.197 with my windows username, but it will not accept username/password "timemachine/timemachine".
Here is my start up command:
docker run -d --restart=always --name timemachine --net=host --ulimit nofile=65536:65536 -e ADVERTISED_HOSTNAME="" -e CUSTOM_SMB_CONF="false" -e CUSTOM_USER="false" -e DEBUG_LEVEL="1" -e MIMIC_MODEL="TimeCapsule8,119" -e EXTERNAL_CONF="/home/steve" -e HIDE_SHARES="no" -e TM_USERNAME="timemachine" -e TM_GROUPNAME="timemachine" -e TM_UID="1000" -e TM_GID="1000" -e PASSWORD="timemachine" -e SET_PERMISSIONS="false" -e SHARE_NAME="TimeMachine" -e SMB_INHERIT_PERMISSIONS="no" -e SMB_NFS_ACES="no" -e SMB_METADATA="stream" -e SMB_PORT="445" -e SMB_VFS_OBJECTS="fruit streams_xattr" -e VOLUME_SIZE_LIMIT="0" -e WORKGROUP="WORKGROUP" -v /mnt/z/TimeMachine:/opt -v /mnt/z/Docker:/home/steve --tmpfs /run/samba mbentley/timemachine:latest
Please advise,
Thank you for the help.
Steve
…________________________________
From: Matt Bentley ***@***.***>
Sent: Tuesday, October 29, 2024 8:47 PM
To: mbentley/docker-timemachine ***@***.***>
Cc: YoungBilly ***@***.***>; Author ***@***.***>
Subject: Re: [mbentley/docker-timemachine] Container keeps restarting (Discussion #186)
Your bind mounts are messed up, assuming you’re talking about the home directory of the host since it’s /host/path:/container/path
—
Reply to this email directly, view it on GitHub<#186 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR3JHOPTE5IIKGQJPVADQ5TZ6AUC5AVCNFSM6AAAAABQ2ROY32VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBZGM4TKMA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I used this section, modified with my host ip, I see log shows:
INFO: Avahi - using 192.168.2.197 as hostname.
But the log also shows
2024-10-29 23:03:57 Service "192.168.2.197" (/etc/avahi/services/smbd.service) successfully established.
2024-10-29 23:04:17 become_local_master_stage2: *****
2024-10-29 23:04:17
2024-10-29 23:04:17 Samba name server DOCKER-DESKTOP is now a local master browser for workgroup WORKGROUP on subnet 172.17.0.1
2024-10-29 23:04:17
2024-10-29 23:04:17 *****
2024-10-29 23:04:17 become_local_master_stage2: *****
2024-10-29 23:04:17
2024-10-29 23:04:17 Samba name server DOCKER-DESKTOP is now a local master browser for workgroup WORKGROUP on subnet 192.168.65.3
2024-10-29 23:04:17
2024-10-29 23:04:17 *****
2024-10-29 23:04:17 become_local_master_stage2: *****
2024-10-29 23:04:17
2024-10-29 23:04:17 Samba name server DOCKER-DESKTOP is now a local master browser for workgroup WORKGROUP on subnet 192.168.65.6
2024-10-29 23:04:17
…________________________________
From: Steve Ma ***@***.***>
Sent: Tuesday, October 29, 2024 9:59 PM
To: mbentley/docker-timemachine ***@***.***>; mbentley/docker-timemachine ***@***.***>
Cc: Author ***@***.***>
Subject: Re: [mbentley/docker-timemachine] Container keeps restarting (Discussion #186)
Mr. Bentley,
Thank you very much for your help. I created a file timemachine,conf and copied to /mnt/z/Docker, it worked.
I know Linux very well, but never used docker. Now with your help, my docker timemachine runs without problem, how do I add it to the TimeMachine backup disk? The command runs on windows 11, ip 192,168.2.197, I can smb://192.168.2.197 with my windows username, but it will not accept username/password "timemachine/timemachine".
Here is my start up command:
docker run -d --restart=always --name timemachine --net=host --ulimit nofile=65536:65536 -e ADVERTISED_HOSTNAME="" -e CUSTOM_SMB_CONF="false" -e CUSTOM_USER="false" -e DEBUG_LEVEL="1" -e MIMIC_MODEL="TimeCapsule8,119" -e EXTERNAL_CONF="/home/steve" -e HIDE_SHARES="no" -e TM_USERNAME="timemachine" -e TM_GROUPNAME="timemachine" -e TM_UID="1000" -e TM_GID="1000" -e PASSWORD="timemachine" -e SET_PERMISSIONS="false" -e SHARE_NAME="TimeMachine" -e SMB_INHERIT_PERMISSIONS="no" -e SMB_NFS_ACES="no" -e SMB_METADATA="stream" -e SMB_PORT="445" -e SMB_VFS_OBJECTS="fruit streams_xattr" -e VOLUME_SIZE_LIMIT="0" -e WORKGROUP="WORKGROUP" -v /mnt/z/TimeMachine:/opt -v /mnt/z/Docker:/home/steve --tmpfs /run/samba mbentley/timemachine:latest
Please advise,
Thank you for the help.
Steve
________________________________
From: Matt Bentley ***@***.***>
Sent: Tuesday, October 29, 2024 8:47 PM
To: mbentley/docker-timemachine ***@***.***>
Cc: YoungBilly ***@***.***>; Author ***@***.***>
Subject: Re: [mbentley/docker-timemachine] Container keeps restarting (Discussion #186)
Your bind mounts are messed up, assuming you’re talking about the home directory of the host since it’s /host/path:/container/path
—
Reply to this email directly, view it on GitHub<#186 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR3JHOPTE5IIKGQJPVADQ5TZ6AUC5AVCNFSM6AAAAABQ2ROY32VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBZGM4TKMA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe Your Issue or Question
I used the readme to start with docker-timemachine installed on use external disk, used the command suggested, after fix several troubles, I now keep getting restarting with this error:
Expected Behavior
Want to make it start and running
Steps to Reproduce
I am running in windows 11 pro, wsl2, here is my command:
Container Logs
Time Machine client Logs
No response
Additional host information
No response
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions