Hi @avnimahesh your review record isn’t working, so I marked your question as ‘Validation Error’.
Thanks,
KodeKloud Support
Hi @avnimahesh your review record isn’t working, so I marked your question as ‘Validation Error’.
Thanks,
KodeKloud Support
Thank you so much @Vitor for responding and the help.
So by ‘review record isn’t working’, you mean there was a technical issue, right?
Also, what would be the next step in this? I mean how can I retry the task?
Let me know.
Thanks & regards,
Avni Maheshwari
All tasks are recorded, so we can review them. Keep going through the tasks and this task will appear again, don’t worry.
Thanks,
KodeKloud Support
Oh! I see.
Alright! I will wait for another task to assign.
Thanks again for your support.
Hi @Vitor .
Today I got this task again and it failed me again.
It seems that there is some problem in the task review algorithm or whatever it is called.
After running my script, I logged out of the AppServer 3 and logged In to the Nautilus Backup server to verify the file and, it was right there.
Then I clicked on the Check Task button and it failed me.
I don’t understand what is happening. Even if I put a Request Review on the task, there is no sense because the Task verification system has gone haywire.
Please look into this.
@Tej-Singh-Rana
Hi Tej,
If possible please check the reason behind this.
Thanks & regards,
Avni Maheshwari
Hi @avnimahesh ,
Can you please share the review link? btw don’t worry about the points. If it’s a validation issue then I will mark pending for you. But at least give us the chance to review it.
Regards,
KodeKloud Support
Sure @Tej-Singh-Rana .
Here is the Review link to the task - KodeKloud Engineer | Real Project Tasks on Real Systems
I do not worry about the points, its just that I am getting confused if I am performing the task correctly or not.
Also, thank you for doing this for me.
Thanks & regards,
Avni Maheshwari
Hi @avnimahesh ,
You are doing it correctly but we are expecting this from the sudo user, not from the root user of app server3.
Did you read this line?
Please make sure the script won't ask for a password while copying the archive file. Additionally, the respective server user (for example, tony in the case of App Server 1) must be able to run it.
You should have to run that script from the banner user and without interruption.
Regards,
KodeKloud Support
Okay. So yes, I created and ran the script from the root user on App Server 3 but it is not mentioned anywhere in the question to perform the tasks with the Normal user only. So even if the files that I created have a root ownership but I have added ‘rwx’ permission for other users as well. So anybody could access those files.
For the script to not ask for password, I did the following before running the script:
After all these things, I logged out of App S 3 and logged in to Nautilus backup server to check for the file, and it was there.
Then I logged out of the Backup Server and logged in as tony@stapp01 to check if tony is able to access and run the files, and he was but the task kept failing me.
Let me know where I am wrong in this.
Thanks & regards,
Avni Maheshwari
Yes @Tej-Singh-Rana
I read point number d. very carefully and the commands I used, allows the script to run and execute successfully without asking for the password.
Now let me know if you have a solution or a rectification of this problem.
My steps are correct and I’m confident about it.
Hi again.
Is there something happening at the back-end?
I haven’t received any task in the past 72+ hours.
Hi,
Sorry for the delayed response.
So banner user also can run that script without facing any permission issues?
btw I marked this task pending for you. Please try from the sudo user.
Give it a try and let me know.
Regards,
Do the same steps again from the root user and make the script executable and after that run it from the sudo user of that app server (Example:- app server01, it’s tony).
Let me know if you are able to run the script successfully.
Regards,
I did all the steps even verified the zip archive on my own but the task failed still.
Here is what I did:
Commands in the script:
zip /backup/xfusioncorp_news.zip -r /var/www/html/news
scp /backup/xfusioncorp_news.zip clint@stbkp01:/backup
VERIFICATION
Below image shows points 1, 2 and 3:
Below image shows points 5,6, and 7.
Logged out of App Server 3 and clicked on the Check Task button.
See below image -
Did you run the script from the tony user? Did it work?
Oh god! If Banner user on App Server 3 is able to run the file, tony user will have no problems at all in running, extracting or unzipping the file.
I added an executable (x) permission for others on the .zip file which means, other than File owner and group owner, other people could also access and open the file.
I don’t know what is being so hard to understand, my steps or the fault in KodeKloud’s system.
I am checking with the given steps. I will share updates after some time.
Regards,
My mistake. I forgot to add point #2 in my previous steps to make the .zip file executable for others.
Although I added x permission to others when you reassigned the task to me, that is the reason Banner user was able to execute the .zip file.
So the script will have the below commands:
Repeat the steps again with point #2 as well and you will be able to run the .zip file from either of the three App Server Users.