GithubHelp home page GithubHelp logo

fduran / sadservers Goto Github PK

View Code? Open in Web Editor NEW
1.8K 1.8K 55.0 3.26 MB

SadServers: Linux & DevOps Troubleshooting Scenarios SaaS

Home Page: https://sadservers.com

Python 11.72% Shell 11.88% HCL 76.41%
devops interview-practice interview-preparation interview-test linux sre-infra troubleshooting

sadservers's People

Contributors

fduran avatar lpmi-13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sadservers's Issues

"Check my Solution" Fails Sometimes

"Check my Solution" button fails to properly connect to the scenario VM and run the solution script. As a result, users see "invalid solution" when clicking the button, even if solution may be valid.

Contribution : Packer template

Hello,

I would like to contribute to this cool project by providing you a packer code that i have made for different provider (vsphere,proxmox).

The code is able to create Ubuntu 20.04,22.04 template with different preinstalled package, and user account with sudo permissions.

I think i just need to adapt it to aws provider.

Can you provide me a list a requirements you want in you image ?

Scenario "Santiago": confusing wording

This scenario description is confusing some users (difference between occurrences of a string and number of lines where that string is present in a file). Also the way to present two solutions in one file is confusing.

Want to re-write this scenario into a similar one about more advanced grep usage.

11 "Lisbon": etcd SSL cert troubles feedback on solution

As this problem was created in January, the hint probably worked only for that month of 2023, but the SSL certificate is only valid for one month (2022 dec - end of Jan 2023), which means the hint does not work anymore (setting time one year back exactly).

What worked was using timedatectl to set it directly:

timedatectl set-time "2023-01-15 00:00"

Error in the Santiago

Hi, help me please to resolve my issue.

admin@i-068844a34e82f4dae:~$ grep -rwc "Alice" /home/admin/*.txt
/home/admin/11-0.txt:397
/home/admin/1342-0.txt:1
/home/admin/1661-0.txt:12
/home/admin/84-0.txt:0
admin@i-068844a34e82f4dae:~$ grep -rwc "Alice" /home/admin/*.txt | awk -F ':' '{total += $2} END {print total}'
410
admin@i-068844a34e82f4dae:~$ grep -l "Alice" /home/admin/1342-0.txt | xargs awk '/Alice/ {getline; print $1}'
156

The answer "410156" is not the solution, but the "411156" is.
Could you explain where I have the error?

case sensitive emails are not supported as user authentication

Email RFC allows for case-sensitive addresses on the non-domain part; ie [email protected] can be a different mailbox than [email protected].

Still, at the moment, SadServers only uses all lowercase email addresses. It converts all the address string into lowercase, so you can register and log in as [email protected] but you cannot have a separate ("duplicated") johnsmith@ (or any case variation since they are treated the same) and the password reset will be sent to [email protected]

Add a Donation Link

Have you considered adding a donation link in the project's documentation or README? This way, users and supporters could express their gratitude through small contributions.

Scenario "Salta": too restrictive solution script

tTe regex for checking the docker published port can be relaxed, as we don/t really care if the node app is not started on :8888, as long as the port is mapped correctly when executing "docker run".

Replays

Hey! Replays are intended to work or have been implemented just for the LWC and then forgot to remove it?

Because I've tried a scenario and it generated the followed link:

https://sadservers.com/accounts/View%20the%20recording%20at:

Just in case

image

The scenario was that and what I've done was nothing weird. Just tried the scenario and got kicked out because no time left.

scenario Salta - only 1 solution accepted

it seems to me there is only 1 way it is solved, to do

sudo docker run -d -p 8880:8888 myapp

and actually myapp should be accepted as name, as long as only 1 container is running, but it seems it only accept the container named 'app'.

but the docker file has CMD['node', 'server.js'] - it still does not run as expected.

the only solution that works is if i run docker run -d app node server.js

Using wasm linux

Hi. Thanks for the great project.
Was it considered to use wasm linux in browser?
It would reduce AWS bill and it would be possible to use it offline.

Not working "Run" because CSRF verification failed

"Run" in any scenario does not work.

Forbidden (403) CSRF verification failed.

My Using browsers (safari, GoogleChrome (v119.0.6045.159)) allow cookies, but I got a 403 with the above error.

You might find an article about this error that says there is no CSRF token in the form.

Could you investigate this Or give me any solutions?

Lisbon etcd cluster is unavailable or misconfigured

Hello, dear @fduran
I've got a bug in "Lisbon" task. After generating new self signed certificate and restarting ETCD daemon, the error is etcd cluster is unavailable or misconfigured, but test script says "OK". See the output below.

root@i-08012af3bb4b932ca:~# etcdctl get foo
Error:  client: etcd cluster is unavailable or misconfigured; error #0: EOF
; error #1: dial tcp 127.0.0.1:4001: connect: connection refused

error #0: EOF
error #1: dial tcp 127.0.0.1:4001: connect: connection refused

root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# curl -k https://localhost:2379/v2/keys/foo
{"action":"get","node":{"key":"/foo","value":"bar","modifiedIndex":4,"createdIndex":4}}
root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# curl https://localhost:2379/v2/keys/foo
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# cd /home/admin/agent && ./check.sh
OK

root@i-08012af3bb4b932ca:/home/admin/agent# GODEBUG=x509ignoreCN=0 etcdctl get foo
Error:  client: etcd cluster is unavailable or misconfigured; error #0: EOF
; error #1: dial tcp 127.0.0.1:4001: connect: connection refused

error #0: EOF
error #1: dial tcp 127.0.0.1:4001: connect: connection refused

root@i-08012af3bb4b932ca:/home/admin/agent# GODEBUG=x509ignoreCN=0 ETCDCTL_ENDPOINT=https://localhost:2379 etcdctl get foo
bar

Curated problem solutions

Do you know where we can see other users' scripts for the different problems? It would be helpful if there were a place to discuss problem solutions. I can, for instance, solve a problem in a very roundabout fashion without grasping the true essence of the lesson. Seeing how others completed the different exercises after submitting a correct solution would be helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.