What issue or error are you experiencing?
I am unable to run the site using Router Mode Sites Domain.
When I try to Open Site, it appears that Local automatically appends the site port to the end:
http://genexus.blog.local:10004/
I found an article by flywheel explaining why this happens. From what I understood, is because there might be another application listening to port 80 already.
I am on Mac, so running the command sudo lsof -i:80; sudo lsof -tnP -i:80 | xargs -n 1 ps -p
displays the following:
bruno@Brunos-MacBook-Pro ~ % sudo lsof -i:80; sudo lsof -tnP -i:80 | xargs -n 1 ps -p
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Google 620 bruno 87u IPv4 0x620f890482b58675 0t0 TCP 192.168.1.133:60707->a2-16-54-23.deploy.static.akamaitechnologies.com:http (ESTABLISHED)
nginx 5146 bruno 5u IPv4 0x620f890482b63bdd 0t0 TCP *:http (LISTEN)
nginx 5146 bruno 6u IPv6 0x620f88ffa98ce965 0t0 TCP *:http (LISTEN)
nginx 5151 bruno 5u IPv4 0x620f890482b63bdd 0t0 TCP *:http (LISTEN)
nginx 5151 bruno 6u IPv6 0x620f88ffa98ce965 0t0 TCP *:http (LISTEN)
PID TTY TIME CMD
620 ?? 0:37.54 /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/120.0.6099.129/Helpers/Google Chrome Help
PID TTY TIME CMD
5146 ?? 0:00.03 nginx: master process /Users/bruno/Library/Application Support/Local/lightning-services/nginx-1.16.0+7/bin/darwin/sbin/nginx -c /Users/b
PID TTY TIME CMD
5151 ?? 0:00.03 nginx: worker process
bruno@Brunos-MacBook-Pro ~ %
I don´t quite understand what that output means. I was expecting to see some application name on the output, but as you can see there is not. There appear to be four nginx processes running, I don’t know where that comes from. I could kill them, but I never like to do smothing I don’t understand.
I just have two sites on local, and both are using Apache. Besides, the other site is not running.
Any help to fix this is much appreciated.
As always, loving flywheel!
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
System Details
-
Local Version:
8.2.0+6554 -
Operating System (OS) and OS version:
macOS Monterey Version 12.7.1
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"2023-01-27T14:4$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mailhog-1.0.0+3/lib/main.js","timestamp":"202$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2023-01-27T14$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mariadb-10.4.10+4/lib/main.js","timestamp":"2$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2023-01-27T14:42$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/mysql-8.0.16+6/lib/main.js","timestamp":"2023$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+6/lib/main.js","timestamp":"2023-01-27T14:42$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/nginx-1.16.0+6/lib/main.js","timestamp":"2023$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%/lightning-services/php-8.1.9+8/lib/main.js","timestamp":"2023-01-27T14:42:31$
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%/lightning-services/php-8.1.9+8/lib/main.js","timestamp":"2023-01$
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%/node_modules/@getflywheel/local-components/packag$
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%/node_modules/@getflywheel/localcert/package.json"$
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%/node_modules/@getflywheel/localtunnel/package.jso$
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"main\" or \"renderer\" specified in package.json: %%appPath%%/node_modules/@getflywheel/replacestream/$
{"thread":"main","name":"DeprecationWarning","code":"DEP0128","level":"info","message":"Warning:Invalid 'main' field in '%%appPath%%/node_modules/ssh-key-to-pem/package.json' of 'lib$
{"thread":"main","class":"GraphQLService","message":"GraphQL server ready at http://127.0.0.1:4000/graphql","level":"verbose","timestamp":"2023-01-27T14:42:31.612Z"}
{"thread":"main","class":"GraphQLService","message":"GraphQL subscriptions ready at ws://127.0.0.1:4000/graphql","level":"verbose","timestamp":"2023-01-27T14:42:31.613Z"}
{"localVersion":"6.6.0+6231","osPlatform":"darwin","osRelease":"21.6.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","time$
{"thread":"main","class":"Updater","level":"info","message":"Checking for updates for: darwin-x64-production","timestamp":"2023-01-27T14:42:41.489Z"}
{"thread":"main","class":"Updater","release":null,"level":"debug","message":"Check for updates result","timestamp":"2023-01-27T14:42:41.936Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Creating site folders...","level":"info","timestamp":"2023-01-27T14:44:18.324Z"}
{"thread":"main","class":"SiteProvisionerService","message":"Copying service config templates...","level":"info","timestamp":"2023-01-27T14:44:18.332Z"}
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2023-01-27T14:44:18.386Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","timestamp":"2023-01-27T14:44:1$
{"thread":"main","class":"ConfigTemplatesService","message":"Compiling service configs...","level":"info","timestamp":"2023-01-27T14:44:24.142Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":61512,"level":"verbose","message":"Spawned","timestamp":"2023-01-27T14:44:24.375Z"}
{"thread":"main","class":"Process","process":"phpFpm","pid":61514,"level":"verbose","message":"Spawned","timestamp":"2023-01-27T14:44:24.386Z"}
{"thread":"main","class":"Process","process":"nginx","pid":61516,"level":"verbose","message":"Spawned","timestamp":"2023-01-27T14:44:24.395Z"}
{"thread":"main","class":"Process","process":"mysql","pid":61518,"level":"verbose","message":"Spawned","timestamp":"2023-01-27T14:44:24.400Z"}
{"thread":"main","class":"RouterService","level":"debug","message":"Running proxyManager::add","timestamp":"2023-01-27T14:44:24.463Z"}
{"thread":"main","class":"X509CertService","level":"debug","message":"genexusblog.local.key already exists. Skipping certificate creation.","timestamp":"2023-01-27T14:44:24.467Z"}
{"thread":"main","class":"Process","process":"nginx","pid":61520,"level":"verbose","message":"Spawned","timestamp":"2023-01-27T14:44:24.471Z"}
{"thread":"main","service":{},"serviceBinVersion":{},"message":"Setting up MySQL user...","level":"info","timestamp":"2023-01-27T14:44:24.473Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-01-27T14:44:24.571678Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-$
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.