FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node
-
@jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:
If I have to change the password in fogftp.class.php
You do not edit the code in this case. On your NAS you need to setup the FTP service so that the FOS Linux engine can connect to it. You will need to create a user ID and password on your NAS device. Then on the FOG serve web gui, for the storage definition of the NAS, under the management user and password.
You should test using the ftp client on a windows computer to ensure you can connect to the nas using the managment user ID and PASSWORD and navigate to the /volume1/images2 path and to create and delete a directory in that path. If you can then you have the permissions set correctly on the images2 directory.
I do have a tutorial that I created for the synology nas too: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node
-
Hello
and thank you for your help.
I advanced on the subject by chnging the login in fogsetting.php
but now I have the message: maximum number of tries exceeded ftp.On the nas I have no restriction.
-
here is where I am.
Not easy to set up this storage -
@jeremyvdv Probably the account is locked for too many login attempts using the wrong credentials? Can you manually connect to that via a FTP client like FileZilla (host: 10.1.5.8 …)?
-
yes i tried and since winscp i have no problem
-
I see on the error that it uses the root account.
out of synology i can not create a root account.
that may be the problem.
But what if that’s it?Thank you
-
@jeremyvdv Well then change to a different username: FOG web UI -> Storage -> edit the Storage node settings, scroll down to the bottom and edit username and password.
-
actually in my configuration storage web interface of fog it was of course root.
But change that I always have the same error message with my new user
an idea?
-
@jeremyvdv The IP of the client (that it receives when imaging) is possibly in the NAS FTP blocklist due to too many incorrect login attempts.
-
No, it’s not that … and it uploads the files during the creation of the image.
It’s really at the end of the upload that plente.
And the task does not stop on the web interface
-
@jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:
No, it’s not that … and it uploads the files during the creation of the image
The upload of the image doesn’t happen via FTP but using NFS. So those are two different things. FTP is only used at the very end to move/rename the image.
From what I see in the last picture it looks like you are using a Synology NAS. In a German forum I just read about someone having the same “Maximum number of tries exceeded” error message and it turned out that his Synology had added a block for his IP address.
You should be able to find the client IP address in the block list of you Synology NAS. See instructions here: https://mariushosting.com/ip-block-list/
-
indeed it was good in the security of synology. thank you but now I still have a problem for upload. I have my pc that goes to the end but in the web console the task does not stop and during a download error image ./bin/upload
Thank you
-
Hello
I admit that I am desperate.
I can not fix this error message.
Please have an idea.
Thank you
-
@jeremyvdv Please test the FTP connection using the following information:
- Server: 10.1.5.8
- Username:
fogproject
- Password: the password you set in FOG web UI -> Storage -> edit the Storage node -> Management Password
Now see if you can find the directory where the images are being stored. Possibly that is in
/volume1/...
or something like that. When you’ve found the diretory containingdev/308d9914a4e6
you note down that path. Go back to FOG web UI -> Storage -> edit the Storage node and set this as FTP Path. -
I’m sorry I do not understand.
I have this config. with user fogproject password fogprojectwhat do you want me to do as configuration?
Thank you -
can someone help me?
^ thank you -
I can not understand.
When I capture the image … the files are well stored in the synlogy. But I can not find the way from the fog …
-
@jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:
can someone help me?
^ thank youAre you telling me the that the storage node configuration you have is still creating the error message
ftp_put(/images/dev/308...)
because the storage node configuration clearly states /volume1/images2 fro the FTP path. This should not happen. Do you happen to have more than the one storage node configuration for this nas? I can’t explain why it says /volume1/images2 yet the error message is still defult?When you look on the NAS the files are for sure in
/volume1/images2/dev/<mac_address>
directory? -
Yes that’s right.
on the nas the files are well in volume1 \ images2 \ dev <mac adress> -
@jeremyvdv Then I don’t understand how this picture was created in this post: https://forums.fogproject.org/topic/12168/fog-1-5-4-how-to-setup-nas-synology-diskstation-as-master-node/26 The path clearly states /images/dev/<mac_address>. I can understand if the FTP Path is different than your Image Path in the host definition, but that is not the case in your picture of the storage node configuration here: https://forums.fogproject.org/topic/12168/fog-1-5-4-how-to-setup-nas-synology-diskstation-as-master-node/28
Did you by chance on the default node (real fog server) uncheck the box that says Is Master Node ? You can only have one master node in each storage group. You can have more than one storage group, but each storage group can only have one master.