shift-org / infra Goto Github PK
View Code? Open in Web Editor NEWdetails about network/website/etc
details about network/website/etc
I have heard several techie folks on rides mention that they are subscribed to the Shift Calendar events feed via their personal calendar, but the current iteration of the calendar site doesn't advertise a feed.
<link rel="alternate" href="/index.xml" type="application/rss+xml">
, which I believe is sufficient for traversal, however the Atom feed entries generated by Hugo lack event fields.I'm a long time member of portland bike fun communities and a web developer, and I'd like to contribute to the shift project. I know a lot about web calendars, having worked on substantial chunks of Calagator back in the day.
This needs to get automated so that we always renew for api.shift2bikes.org
There seem to be AWS tools for this:
was lucky to accidentally notice an out of space error while watching the netlify deploy logs this time. Also would like to know if the site goes down.
We need reliable monitoring that at least emails some people.
At some point @onewheelskyward created snapshot of our prod instance at AWS.
I couldn't find it in the console, so here's a request for him to write up and maybe add to https://github.com/shift-org/shift-docs/tree/master/docs ?
Running ./shift up
to start the server works as expected, but includes this console note:
Docker Compose is now in the Docker CLI, try `docker compose up`
Seems harmless right now, but if the recommended usage is equivalent then we should change it eventually.
@carrythebanner mentioned that when he setup his new machine with the app, there was no database created and so the PHP barfs a bit on failures to connect. We should probably add a step to import schema at least to the setup docs, maybe some seed data without email addrs?
So anyone can do it. I like screenshots!
Something weird is going on in docker network land on the new server. Not sure if a big problem or not, but writing here for posterity. This happens once a minute and is visible in syslog. Somewhat informed guesstimate is that it might be some automated tool that struggles with dockers virtual networking that should be tweaked to ignore the virtual interfaces. maybe?
May 13 02:53:06 newshiftapi systemd-udevd[1345426]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 13 02:53:06 newshiftapi kernel: [1817009.014515] br-d49621cda334: port 2(vethfa4e04d) entered blocking state
May 13 02:53:06 newshiftapi kernel: [1817009.014518] br-d49621cda334: port 2(vethfa4e04d) entered disabled state
May 13 02:53:06 newshiftapi kernel: [1817009.014582] device vethfa4e04d entered promiscuous mode
May 13 02:53:06 newshiftapi systemd-udevd[1345425]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 13 02:53:06 newshiftapi networkd-dispatcher[617]: WARNING:Unknown index 59873 seen, reloading interface list
May 13 02:53:06 newshiftapi systemd-udevd[1345425]: Using default interface naming scheme 'v245'.
May 13 02:53:06 newshiftapi systemd-udevd[1345425]: vethe64e57c: Could not generate persistent MAC: No data available
May 13 02:53:06 newshiftapi systemd-networkd[562]: vethfa4e04d: Link UP
May 13 02:53:06 newshiftapi dockerd[1381]: time="2021-05-13T02:53:06.083485566Z" level=info msg="No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4]"
May 13 02:53:06 newshiftapi dockerd[1381]: time="2021-05-13T02:53:06.083515758Z" level=info msg="IPv6 enabled; Adding default IPv6 external servers: [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844]"
May 13 02:53:06 newshiftapi systemd-udevd[1345426]: Using default interface naming scheme 'v245'.
May 13 02:53:06 newshiftapi systemd-udevd[1345426]: vethfa4e04d: Could not generate persistent MAC: No data available
May 13 02:53:06 newshiftapi containerd[638]: time="2021-05-13T02:53:06.179424367Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/118eee19458c54b81d62dd9c6b90569afd9274a7c0cfa22b5ac3137523135fb9 pid=1345457
May 13 02:53:06 newshiftapi kernel: [1817009.596414] eth0: renamed from vethe64e57c
May 13 02:53:06 newshiftapi systemd-networkd[562]: vethfa4e04d: Gained carrier
May 13 02:53:06 newshiftapi kernel: [1817009.610854] IPv6: ADDRCONF(NETDEV_CHANGE): vethfa4e04d: link becomes ready
May 13 02:53:06 newshiftapi kernel: [1817009.610892] br-d49621cda334: port 2(vethfa4e04d) entered blocking state
May 13 02:53:06 newshiftapi kernel: [1817009.610894] br-d49621cda334: port 2(vethfa4e04d) entered forwarding state
May 13 02:53:06 newshiftapi dockerd[1381]: time="2021-05-13T02:53:06.924133809Z" level=info msg="ignoring event" container=118eee19458c54b81d62dd9c6b90569afd9274a7c0cfa22b5ac3137523135fb9 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
May 13 02:53:06 newshiftapi containerd[638]: time="2021-05-13T02:53:06.925244942Z" level=info msg="shim disconnected" id=118eee19458c54b81d62dd9c6b90569afd9274a7c0cfa22b5ac3137523135fb9
May 13 02:53:07 newshiftapi systemd-networkd[562]: vethfa4e04d: Lost carrier
May 13 02:53:07 newshiftapi kernel: [1817009.953414] br-d49621cda334: port 2(vethfa4e04d) entered disabled state
May 13 02:53:07 newshiftapi kernel: [1817009.953478] vethe64e57c: renamed from eth0
May 13 02:53:07 newshiftapi networkd-dispatcher[617]: WARNING:Unknown index 59873 seen, reloading interface list
May 13 02:53:07 newshiftapi systemd-udevd[1345484]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 13 02:53:07 newshiftapi systemd-udevd[1345484]: Using default interface naming scheme 'v245'.
May 13 02:53:07 newshiftapi kernel: [1817010.013482] br-d49621cda334: port 2(vethfa4e04d) entered disabled state
May 13 02:53:07 newshiftapi systemd-networkd[562]: vethfa4e04d: Link DOWN
May 13 02:53:07 newshiftapi kernel: [1817010.019642] device vethfa4e04d left promiscuous mode
May 13 02:53:07 newshiftapi kernel: [1817010.019646] br-d49621cda334: port 2(vethfa4e04d) entered disabled state
May 13 02:53:07 newshiftapi systemd-networkd[562]: rtnl: received neighbor for link '59874' we don't know about, ignoring.
May 13 02:53:07 newshiftapi systemd-networkd[562]: rtnl: received neighbor for link '59874' we don't know about, ignoring.
May 13 02:53:07 newshiftapi systemd-udevd[1345484]: vethe64e57c: Failed to get link config: No such device
May 13 02:53:07 newshiftapi systemd[1320499]: run-docker-netns-af823a2e13ea.mount: Succeeded.
May 13 02:53:07 newshiftapi systemd[1320499]: var-lib-docker-containers-118eee19458c54b81d62dd9c6b90569afd9274a7c0cfa22b5ac3137523135fb9-mounts-shm.mount: Succeeded.
May 13 02:53:07 newshiftapi systemd[1320499]: var-lib-docker-overlay2-6cc1753d8d5f41611a3f5ab8b2199b58bbd5b7acf94c2c4b03389fb03dab4371-merged.mount: Succeeded.
May 13 02:53:07 newshiftapi systemd[1]: run-docker-netns-af823a2e13ea.mount: Succeeded.
May 13 02:53:07 newshiftapi systemd[1]: var-lib-docker-containers-118eee19458c54b81d62dd9c6b90569afd9274a7c0cfa22b5ac3137523135fb9-mounts-shm.mount: Succeeded.
May 13 02:53:07 newshiftapi systemd[1]: var-lib-docker-overlay2-6cc1753d8d5f41611a3f5ab8b2199b58bbd5b7acf94c2c4b03389fb03dab4371-merged.mount: Succeeded.
Let's get the file backups off the server and onto another service.
Slack is changing its policy for free accounts, effective 1 Sep 2022: https://slack.com/blog/news/pricing-and-plan-updates
After Sep 1 we'll have a rolling 90 day window of messages. Prior to that date we should extract any useful bits of info and document them somewhere more stable.
...this will allow the site to run unmolested on Netlify in case fool quits working there.
cf #11 as to why this is important :)
Need to get someone(s) ops-y who is willing to learn all the things about the server to help us administer. Write playbooks and have them replay them to establish understanding :)
there should be a playbook of:
Can we rebuild the whole stack from a fresh AWS machine? to include:
shift up
does the right thing after installingRecently tried to start up an instance of the site for the first time and got the below error. I think there is some required config for letsencrypt these days, at least on OSX. I fixed this by:
shift
script to export LETSENCRYPT_WEBROOT to be /private/tmp/letsencrypt-auto
/private/tmp/letsencrypt-auto
and I couldn't figure out how to avoid that)then shift up
worked. Probably wants an @sdobz - approved fix rather than making it like 3x as hard to start for the first time?
$ ./shift up
Recreating shift_hugo_1 ... done
Recreating shift_db_1 ... done
Recreating shift_php_1 ... done
Recreating shift_nginx_1 ... error
[...]
ERROR: for nginx Cannot start service nginx: b'Mounts denied: \r\nThe path /tmp/letsencrypt-auto\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: Encountered errors while bringing up the project.
@onewheelskyward is an AWS pro and looked quickly at our settings and suggests:
change t2.micro
to t3.micro
use a 16G EBS
use a reserved instance (for a year or 3)
add swap
save a bit of $ ($10 -> ~$5/mo).
cc @sdobz I might bug you for help with this one since you navigated amazon email for sending
this is probably a task to be shared: #9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.