GET https://kbin.spritesserver.nl/m/lemmy_support@lemmy.ml/t/6282/Help-Building-Lemmy-part-3/oldest

Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
0.21 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.04 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#1794
  +user: Proxies\__CG__\App\Entity\User {#1944 …}
  +magazine: App\Entity\Magazine {#262
    +icon: null
    +name: "lemmy_support@lemmy.ml"
    +title: "lemmy_support"
    +description: """
      Support / questions about Lemmy.\n
      \n
      [Matrix Space: #lemmy-space](https://matrix.to/#/#lemmy-space:matrix.org)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 130
    +entryCommentCount: 600
    +postCount: 2
    +postCommentCount: 14
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1728910137 {#270
      date: 2024-10-14 14:48:57.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#249 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#245 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +entries: Doctrine\ORM\PersistentCollection {#192 …}
    +posts: Doctrine\ORM\PersistentCollection {#150 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#212 …}
    +bans: Doctrine\ORM\PersistentCollection {#129 …}
    +reports: Doctrine\ORM\PersistentCollection {#115 …}
    +badges: Doctrine\ORM\PersistentCollection {#93 …}
    +logs: Doctrine\ORM\PersistentCollection {#83 …}
    +awards: Doctrine\ORM\PersistentCollection {#72 …}
    +categories: Doctrine\ORM\PersistentCollection {#1360 …}
    -id: 40
    +apId: "lemmy_support@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/lemmy_support"
    +apPublicUrl: "https://lemmy.ml/c/lemmy_support"
    +apFollowersUrl: "https://lemmy.ml/c/lemmy_support/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "lemmy_support"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729581033 {#268
      date: 2024-10-22 09:10:33.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696687715 {#276
      date: 2023-10-07 16:08:35.0 +02:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1408 …}
  +slug: "Help-Building-Lemmy-part-3"
  +title: "Help Building Lemmy [part 3/???]"
  +url: null
  +body: """
    Continuation from: [lemm.ee/post/10351499](https://lemm.ee/post/10351499)(I think that’s the right thing to do rather than necroing an old thread)\n
    \n
    I’ve been following the directions in [join-lemmy.org/docs/…/from_scratch.html](https://join-lemmy.org/docs/administration/from_scratch.html) and I’m hoping to get some help debugging my nginx config files.\n
    \n
    It seems that the instructions for configuring nginx have some bugs.\n
    \n
    ```\n
    \n
    <span style="color:#323232;">curl https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf \n
    </span><span style="color:#323232;">    --output /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;"># put your actual domain instead of example.com\n
    </span><span style="color:#323232;">sed -i -e 's/{{domain}}/example.com/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">sed -i -e 's/{{lemmy_port}}/8536/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">sed -i -e 's/{{lemmy_ui_port}}/1234/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">nginx -s reload\n
    </span>\n
    ```\n
    \n
    I was pointed at a thread which suggests using something similar to the ansible configuration [github.com/LemmyNet/lemmy-ansible/pull/90/files](https://github.com/LemmyNet/lemmy-ansible/pull/90/files)\n
    \n
    but I haven’t been able to get that working either. Whenever I try to connect I get an error page and the logs are full of:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">127.0.0.1 - - [18/Oct/2023:19:53:51 +0000] "GET /api/v3/site? HTTP/1.0" 500 170 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"\n
    </span>\n
    ```\n
    \n
    and\n
    \n
    ```\n
    \n
    <span style="color:#323232;">2023/10/18 18:48:08 [alert] 73064#73064: *321837 768 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/v3/site? HTTP/1.0", upstream: "http://127.0.0.1:8536/api/v3/site?", host: "44.205.105.157"\n
    </span>\n
    ```\n
    \n
    I found some other threads that suggest this is a problem with a loop in nginx.\n
    \n
    These are my config files:  \n
    /etc/nginx/nginx.conf: [pastebin.com/aN78drum](https://pastebin.com/aN78drum)  \n
    /etc/nginx/sites_enabled/lemmy.conf: [pastebin.com/ZGywujAB](https://pastebin.com/ZGywujAB)  \n
    /etc/nginx/sites_enabled/lemmy_internal.conf: [pastebin.com/5AXbvmPx](https://pastebin.com/5AXbvmPx)\n
    \n
    I think I remembered to comment all the changes I made.\n
    \n
    lemmy and lemmy-ui resolve to 127.0.0.1 in localhost\n
    \n
    mydomain.com is a dummy I own the actual domain and it’s pointed at an elastic IP that’s associated with the ec2 instance. Everything is on that ec2 instance.
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 0
  +favouriteCount: 9
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1697660130 {#1798
    date: 2023-10-18 22:15:30.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1913 …}
  +votes: Doctrine\ORM\PersistentCollection {#1960 …}
  +reports: Doctrine\ORM\PersistentCollection {#2417 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1393 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1848 …}
  +badges: Doctrine\ORM\PersistentCollection {#2429 …}
  +children: []
  -id: 6282
  -titleTs: "'3':5 'build':2 'help':1 'lemmi':3 'part':4"
  -bodyTs: "'+0000':148 '/1.0':157 '/1234/g':93 '/5axbvmpx](https://pastebin.com/5axbvmpx)':225 '/8536/g':84 '/an78drum](https://pastebin.com/an78drum)':217 '/api/v3/site':150,186 '/bitinn/node-fetch)':160 '/docs/':29 '/docs/administration/from_scratch.html)':33 '/etc/nginx/nginx.conf':214 '/etc/nginx/sites-enabled/lemmy.conf':63,77,85,94 '/etc/nginx/sites_enabled/lemmy.conf':218 '/etc/nginx/sites_enabled/lemmy_internal.conf':222 '/example.com/g':76 '/from_scratch.html':30 '/lemmynet/lemmy-ansible/main/templates/nginx.conf':61 '/lemmynet/lemmy-ansible/pull/90/files](https://github.com/lemmynet/lemmy-ansible/pull/90/files)':115 '/post/10351499](https://lemm.ee/post/10351499)(i':5 '/zgywujab](https://pastebin.com/zgywujab)':221 '08':165 '127.0.0.1':143,181,189,244 '170':153 '18':163 '18/oct/2023':144 '19':145 '2023/10/18':162 '321837':169 '44.205.105.157':192 '48':164 '500':152 '51':147 '53':146 '73064':167,168 '768':170 '8536/api/v3/site':190 'abl':121 'actual':66,254 'alert':166 'ansibl':111 'associ':266 'bug':57 'chang':234 'client':180 'comment':231 'config':45,212 'configur':53,112 'connect':131,172,177 'continu':1 'curl':58 'debug':42 'direct':25 'domain':67,75,255 'dummi':250 'e':73,80,88 'ec2':269,275 'either':126 'elast':262 'enough':175 'error':135 'everyth':271 'example.com':70 'fetch':156 'file':46,213 'follow':23 'found':194 'full':141 'get':39,123,133,149,185 'github.com':114,159 'github.com/bitinn/node-fetch)':158 'github.com/lemmynet/lemmy-ansible/pull/90/files](https://github.com/lemmynet/lemmy-ansible/pull/90/files)':113 'haven':118 'help':41 'hope':37 'host':191 'http/1.0':151,187 'instanc':270,276 'instead':68 'instruct':51 'ip':263 'join-lemmy.org':28,32 'join-lemmy.org/docs/':27 'join-lemmy.org/docs/administration/from_scratch.html)':31 'lemm.ee':4 'lemm.ee/post/10351499](https://lemm.ee/post/10351499)(i':3 'lemmi':82,90,237,240 'lemmy-ui':239 'localhost':183,246 'log':139 'loop':206 'm':36 'made':236 'mydomain.com':247 'necro':16 'nginx':44,54,95,208 'node':155 'node-fetch':154 'old':18 'output':62 'page':136 'pastebin.com':216,220,224 'pastebin.com/5axbvmpx](https://pastebin.com/5axbvmpx)':223 'pastebin.com/an78drum](https://pastebin.com/an78drum)':215 'pastebin.com/zgywujab](https://pastebin.com/zgywujab)':219 'point':100,259 'port':83,92 'problem':203 'put':64 'rather':14 'raw.githubusercontent.com':60 'raw.githubusercontent.com/lemmynet/lemmy-ansible/main/templates/nginx.conf':59 'reload':97 'rememb':229 'request':184 'resolv':242 'right':10 'sed':71,78,86 'seem':48 'server':182 'similar':108 'someth':107 'suggest':105,199 'thing':11 'think':6,227 'thread':19,103,197 'tri':129 'ui':91,241 'upstream':179,188 'use':106 've':21 'whenev':127 'work':125 'worker':171"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1697678130
  +visibility: "visible             "
  +apId: "https://lemm.ee/post/11940660"
  +editedAt: null
  +createdAt: DateTimeImmutable @1697660130 {#1831
    date: 2023-10-18 22:15:30.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#1794
  +user: Proxies\__CG__\App\Entity\User {#1944 …}
  +magazine: App\Entity\Magazine {#262
    +icon: null
    +name: "lemmy_support@lemmy.ml"
    +title: "lemmy_support"
    +description: """
      Support / questions about Lemmy.\n
      \n
      [Matrix Space: #lemmy-space](https://matrix.to/#/#lemmy-space:matrix.org)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 130
    +entryCommentCount: 600
    +postCount: 2
    +postCommentCount: 14
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1728910137 {#270
      date: 2024-10-14 14:48:57.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#249 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#245 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +entries: Doctrine\ORM\PersistentCollection {#192 …}
    +posts: Doctrine\ORM\PersistentCollection {#150 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#212 …}
    +bans: Doctrine\ORM\PersistentCollection {#129 …}
    +reports: Doctrine\ORM\PersistentCollection {#115 …}
    +badges: Doctrine\ORM\PersistentCollection {#93 …}
    +logs: Doctrine\ORM\PersistentCollection {#83 …}
    +awards: Doctrine\ORM\PersistentCollection {#72 …}
    +categories: Doctrine\ORM\PersistentCollection {#1360 …}
    -id: 40
    +apId: "lemmy_support@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/lemmy_support"
    +apPublicUrl: "https://lemmy.ml/c/lemmy_support"
    +apFollowersUrl: "https://lemmy.ml/c/lemmy_support/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "lemmy_support"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729581033 {#268
      date: 2024-10-22 09:10:33.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696687715 {#276
      date: 2023-10-07 16:08:35.0 +02:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1408 …}
  +slug: "Help-Building-Lemmy-part-3"
  +title: "Help Building Lemmy [part 3/???]"
  +url: null
  +body: """
    Continuation from: [lemm.ee/post/10351499](https://lemm.ee/post/10351499)(I think that’s the right thing to do rather than necroing an old thread)\n
    \n
    I’ve been following the directions in [join-lemmy.org/docs/…/from_scratch.html](https://join-lemmy.org/docs/administration/from_scratch.html) and I’m hoping to get some help debugging my nginx config files.\n
    \n
    It seems that the instructions for configuring nginx have some bugs.\n
    \n
    ```\n
    \n
    <span style="color:#323232;">curl https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf \n
    </span><span style="color:#323232;">    --output /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;"># put your actual domain instead of example.com\n
    </span><span style="color:#323232;">sed -i -e 's/{{domain}}/example.com/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">sed -i -e 's/{{lemmy_port}}/8536/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">sed -i -e 's/{{lemmy_ui_port}}/1234/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">nginx -s reload\n
    </span>\n
    ```\n
    \n
    I was pointed at a thread which suggests using something similar to the ansible configuration [github.com/LemmyNet/lemmy-ansible/pull/90/files](https://github.com/LemmyNet/lemmy-ansible/pull/90/files)\n
    \n
    but I haven’t been able to get that working either. Whenever I try to connect I get an error page and the logs are full of:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">127.0.0.1 - - [18/Oct/2023:19:53:51 +0000] "GET /api/v3/site? HTTP/1.0" 500 170 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"\n
    </span>\n
    ```\n
    \n
    and\n
    \n
    ```\n
    \n
    <span style="color:#323232;">2023/10/18 18:48:08 [alert] 73064#73064: *321837 768 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/v3/site? HTTP/1.0", upstream: "http://127.0.0.1:8536/api/v3/site?", host: "44.205.105.157"\n
    </span>\n
    ```\n
    \n
    I found some other threads that suggest this is a problem with a loop in nginx.\n
    \n
    These are my config files:  \n
    /etc/nginx/nginx.conf: [pastebin.com/aN78drum](https://pastebin.com/aN78drum)  \n
    /etc/nginx/sites_enabled/lemmy.conf: [pastebin.com/ZGywujAB](https://pastebin.com/ZGywujAB)  \n
    /etc/nginx/sites_enabled/lemmy_internal.conf: [pastebin.com/5AXbvmPx](https://pastebin.com/5AXbvmPx)\n
    \n
    I think I remembered to comment all the changes I made.\n
    \n
    lemmy and lemmy-ui resolve to 127.0.0.1 in localhost\n
    \n
    mydomain.com is a dummy I own the actual domain and it’s pointed at an elastic IP that’s associated with the ec2 instance. Everything is on that ec2 instance.
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 0
  +favouriteCount: 9
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1697660130 {#1798
    date: 2023-10-18 22:15:30.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1913 …}
  +votes: Doctrine\ORM\PersistentCollection {#1960 …}
  +reports: Doctrine\ORM\PersistentCollection {#2417 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1393 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1848 …}
  +badges: Doctrine\ORM\PersistentCollection {#2429 …}
  +children: []
  -id: 6282
  -titleTs: "'3':5 'build':2 'help':1 'lemmi':3 'part':4"
  -bodyTs: "'+0000':148 '/1.0':157 '/1234/g':93 '/5axbvmpx](https://pastebin.com/5axbvmpx)':225 '/8536/g':84 '/an78drum](https://pastebin.com/an78drum)':217 '/api/v3/site':150,186 '/bitinn/node-fetch)':160 '/docs/':29 '/docs/administration/from_scratch.html)':33 '/etc/nginx/nginx.conf':214 '/etc/nginx/sites-enabled/lemmy.conf':63,77,85,94 '/etc/nginx/sites_enabled/lemmy.conf':218 '/etc/nginx/sites_enabled/lemmy_internal.conf':222 '/example.com/g':76 '/from_scratch.html':30 '/lemmynet/lemmy-ansible/main/templates/nginx.conf':61 '/lemmynet/lemmy-ansible/pull/90/files](https://github.com/lemmynet/lemmy-ansible/pull/90/files)':115 '/post/10351499](https://lemm.ee/post/10351499)(i':5 '/zgywujab](https://pastebin.com/zgywujab)':221 '08':165 '127.0.0.1':143,181,189,244 '170':153 '18':163 '18/oct/2023':144 '19':145 '2023/10/18':162 '321837':169 '44.205.105.157':192 '48':164 '500':152 '51':147 '53':146 '73064':167,168 '768':170 '8536/api/v3/site':190 'abl':121 'actual':66,254 'alert':166 'ansibl':111 'associ':266 'bug':57 'chang':234 'client':180 'comment':231 'config':45,212 'configur':53,112 'connect':131,172,177 'continu':1 'curl':58 'debug':42 'direct':25 'domain':67,75,255 'dummi':250 'e':73,80,88 'ec2':269,275 'either':126 'elast':262 'enough':175 'error':135 'everyth':271 'example.com':70 'fetch':156 'file':46,213 'follow':23 'found':194 'full':141 'get':39,123,133,149,185 'github.com':114,159 'github.com/bitinn/node-fetch)':158 'github.com/lemmynet/lemmy-ansible/pull/90/files](https://github.com/lemmynet/lemmy-ansible/pull/90/files)':113 'haven':118 'help':41 'hope':37 'host':191 'http/1.0':151,187 'instanc':270,276 'instead':68 'instruct':51 'ip':263 'join-lemmy.org':28,32 'join-lemmy.org/docs/':27 'join-lemmy.org/docs/administration/from_scratch.html)':31 'lemm.ee':4 'lemm.ee/post/10351499](https://lemm.ee/post/10351499)(i':3 'lemmi':82,90,237,240 'lemmy-ui':239 'localhost':183,246 'log':139 'loop':206 'm':36 'made':236 'mydomain.com':247 'necro':16 'nginx':44,54,95,208 'node':155 'node-fetch':154 'old':18 'output':62 'page':136 'pastebin.com':216,220,224 'pastebin.com/5axbvmpx](https://pastebin.com/5axbvmpx)':223 'pastebin.com/an78drum](https://pastebin.com/an78drum)':215 'pastebin.com/zgywujab](https://pastebin.com/zgywujab)':219 'point':100,259 'port':83,92 'problem':203 'put':64 'rather':14 'raw.githubusercontent.com':60 'raw.githubusercontent.com/lemmynet/lemmy-ansible/main/templates/nginx.conf':59 'reload':97 'rememb':229 'request':184 'resolv':242 'right':10 'sed':71,78,86 'seem':48 'server':182 'similar':108 'someth':107 'suggest':105,199 'thing':11 'think':6,227 'thread':19,103,197 'tri':129 'ui':91,241 'upstream':179,188 'use':106 've':21 'whenev':127 'work':125 'worker':171"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1697678130
  +visibility: "visible             "
  +apId: "https://lemm.ee/post/11940660"
  +editedAt: null
  +createdAt: DateTimeImmutable @1697660130 {#1831
    date: 2023-10-18 22:15:30.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#1794
  +user: Proxies\__CG__\App\Entity\User {#1944 …}
  +magazine: App\Entity\Magazine {#262
    +icon: null
    +name: "lemmy_support@lemmy.ml"
    +title: "lemmy_support"
    +description: """
      Support / questions about Lemmy.\n
      \n
      [Matrix Space: #lemmy-space](https://matrix.to/#/#lemmy-space:matrix.org)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 130
    +entryCommentCount: 600
    +postCount: 2
    +postCommentCount: 14
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1728910137 {#270
      date: 2024-10-14 14:48:57.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#249 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#245 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +entries: Doctrine\ORM\PersistentCollection {#192 …}
    +posts: Doctrine\ORM\PersistentCollection {#150 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#212 …}
    +bans: Doctrine\ORM\PersistentCollection {#129 …}
    +reports: Doctrine\ORM\PersistentCollection {#115 …}
    +badges: Doctrine\ORM\PersistentCollection {#93 …}
    +logs: Doctrine\ORM\PersistentCollection {#83 …}
    +awards: Doctrine\ORM\PersistentCollection {#72 …}
    +categories: Doctrine\ORM\PersistentCollection {#1360 …}
    -id: 40
    +apId: "lemmy_support@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/lemmy_support"
    +apPublicUrl: "https://lemmy.ml/c/lemmy_support"
    +apFollowersUrl: "https://lemmy.ml/c/lemmy_support/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "lemmy_support"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729581033 {#268
      date: 2024-10-22 09:10:33.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1696687715 {#276
      date: 2023-10-07 16:08:35.0 +02:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1408 …}
  +slug: "Help-Building-Lemmy-part-3"
  +title: "Help Building Lemmy [part 3/???]"
  +url: null
  +body: """
    Continuation from: [lemm.ee/post/10351499](https://lemm.ee/post/10351499)(I think that’s the right thing to do rather than necroing an old thread)\n
    \n
    I’ve been following the directions in [join-lemmy.org/docs/…/from_scratch.html](https://join-lemmy.org/docs/administration/from_scratch.html) and I’m hoping to get some help debugging my nginx config files.\n
    \n
    It seems that the instructions for configuring nginx have some bugs.\n
    \n
    ```\n
    \n
    <span style="color:#323232;">curl https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf \n
    </span><span style="color:#323232;">    --output /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;"># put your actual domain instead of example.com\n
    </span><span style="color:#323232;">sed -i -e 's/{{domain}}/example.com/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">sed -i -e 's/{{lemmy_port}}/8536/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">sed -i -e 's/{{lemmy_ui_port}}/1234/g' /etc/nginx/sites-enabled/lemmy.conf\n
    </span><span style="color:#323232;">nginx -s reload\n
    </span>\n
    ```\n
    \n
    I was pointed at a thread which suggests using something similar to the ansible configuration [github.com/LemmyNet/lemmy-ansible/pull/90/files](https://github.com/LemmyNet/lemmy-ansible/pull/90/files)\n
    \n
    but I haven’t been able to get that working either. Whenever I try to connect I get an error page and the logs are full of:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">127.0.0.1 - - [18/Oct/2023:19:53:51 +0000] "GET /api/v3/site? HTTP/1.0" 500 170 "-" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"\n
    </span>\n
    ```\n
    \n
    and\n
    \n
    ```\n
    \n
    <span style="color:#323232;">2023/10/18 18:48:08 [alert] 73064#73064: *321837 768 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /api/v3/site? HTTP/1.0", upstream: "http://127.0.0.1:8536/api/v3/site?", host: "44.205.105.157"\n
    </span>\n
    ```\n
    \n
    I found some other threads that suggest this is a problem with a loop in nginx.\n
    \n
    These are my config files:  \n
    /etc/nginx/nginx.conf: [pastebin.com/aN78drum](https://pastebin.com/aN78drum)  \n
    /etc/nginx/sites_enabled/lemmy.conf: [pastebin.com/ZGywujAB](https://pastebin.com/ZGywujAB)  \n
    /etc/nginx/sites_enabled/lemmy_internal.conf: [pastebin.com/5AXbvmPx](https://pastebin.com/5AXbvmPx)\n
    \n
    I think I remembered to comment all the changes I made.\n
    \n
    lemmy and lemmy-ui resolve to 127.0.0.1 in localhost\n
    \n
    mydomain.com is a dummy I own the actual domain and it’s pointed at an elastic IP that’s associated with the ec2 instance. Everything is on that ec2 instance.
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 0
  +favouriteCount: 9
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1697660130 {#1798
    date: 2023-10-18 22:15:30.0 +02:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1913 …}
  +votes: Doctrine\ORM\PersistentCollection {#1960 …}
  +reports: Doctrine\ORM\PersistentCollection {#2417 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1393 …}
  +notifications: Doctrine\ORM\PersistentCollection {#1848 …}
  +badges: Doctrine\ORM\PersistentCollection {#2429 …}
  +children: []
  -id: 6282
  -titleTs: "'3':5 'build':2 'help':1 'lemmi':3 'part':4"
  -bodyTs: "'+0000':148 '/1.0':157 '/1234/g':93 '/5axbvmpx](https://pastebin.com/5axbvmpx)':225 '/8536/g':84 '/an78drum](https://pastebin.com/an78drum)':217 '/api/v3/site':150,186 '/bitinn/node-fetch)':160 '/docs/':29 '/docs/administration/from_scratch.html)':33 '/etc/nginx/nginx.conf':214 '/etc/nginx/sites-enabled/lemmy.conf':63,77,85,94 '/etc/nginx/sites_enabled/lemmy.conf':218 '/etc/nginx/sites_enabled/lemmy_internal.conf':222 '/example.com/g':76 '/from_scratch.html':30 '/lemmynet/lemmy-ansible/main/templates/nginx.conf':61 '/lemmynet/lemmy-ansible/pull/90/files](https://github.com/lemmynet/lemmy-ansible/pull/90/files)':115 '/post/10351499](https://lemm.ee/post/10351499)(i':5 '/zgywujab](https://pastebin.com/zgywujab)':221 '08':165 '127.0.0.1':143,181,189,244 '170':153 '18':163 '18/oct/2023':144 '19':145 '2023/10/18':162 '321837':169 '44.205.105.157':192 '48':164 '500':152 '51':147 '53':146 '73064':167,168 '768':170 '8536/api/v3/site':190 'abl':121 'actual':66,254 'alert':166 'ansibl':111 'associ':266 'bug':57 'chang':234 'client':180 'comment':231 'config':45,212 'configur':53,112 'connect':131,172,177 'continu':1 'curl':58 'debug':42 'direct':25 'domain':67,75,255 'dummi':250 'e':73,80,88 'ec2':269,275 'either':126 'elast':262 'enough':175 'error':135 'everyth':271 'example.com':70 'fetch':156 'file':46,213 'follow':23 'found':194 'full':141 'get':39,123,133,149,185 'github.com':114,159 'github.com/bitinn/node-fetch)':158 'github.com/lemmynet/lemmy-ansible/pull/90/files](https://github.com/lemmynet/lemmy-ansible/pull/90/files)':113 'haven':118 'help':41 'hope':37 'host':191 'http/1.0':151,187 'instanc':270,276 'instead':68 'instruct':51 'ip':263 'join-lemmy.org':28,32 'join-lemmy.org/docs/':27 'join-lemmy.org/docs/administration/from_scratch.html)':31 'lemm.ee':4 'lemm.ee/post/10351499](https://lemm.ee/post/10351499)(i':3 'lemmi':82,90,237,240 'lemmy-ui':239 'localhost':183,246 'log':139 'loop':206 'm':36 'made':236 'mydomain.com':247 'necro':16 'nginx':44,54,95,208 'node':155 'node-fetch':154 'old':18 'output':62 'page':136 'pastebin.com':216,220,224 'pastebin.com/5axbvmpx](https://pastebin.com/5axbvmpx)':223 'pastebin.com/an78drum](https://pastebin.com/an78drum)':215 'pastebin.com/zgywujab](https://pastebin.com/zgywujab)':219 'point':100,259 'port':83,92 'problem':203 'put':64 'rather':14 'raw.githubusercontent.com':60 'raw.githubusercontent.com/lemmynet/lemmy-ansible/main/templates/nginx.conf':59 'reload':97 'rememb':229 'request':184 'resolv':242 'right':10 'sed':71,78,86 'seem':48 'server':182 'similar':108 'someth':107 'suggest':105,199 'thing':11 'think':6,227 'thread':19,103,197 'tri':129 'ui':91,241 'upstream':179,188 'use':106 've':21 'whenev':127 'work':125 'worker':171"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1697678130
  +visibility: "visible             "
  +apId: "https://lemm.ee/post/11940660"
  +editedAt: null
  +createdAt: DateTimeImmutable @1697660130 {#1831
    date: 2023-10-18 22:15:30.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED edit
App\Entity\Magazine {#262
  +icon: null
  +name: "lemmy_support@lemmy.ml"
  +title: "lemmy_support"
  +description: """
    Support / questions about Lemmy.\n
    \n
    [Matrix Space: #lemmy-space](https://matrix.to/#/#lemmy-space:matrix.org)
    """
  +rules: null
  +subscriptionsCount: 1
  +entryCount: 130
  +entryCommentCount: 600
  +postCount: 2
  +postCommentCount: 14
  +isAdult: false
  +customCss: null
  +lastActive: DateTime @1728910137 {#270
    date: 2024-10-14 14:48:57.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#249 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#245 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#234 …}
  +entries: Doctrine\ORM\PersistentCollection {#192 …}
  +posts: Doctrine\ORM\PersistentCollection {#150 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#212 …}
  +bans: Doctrine\ORM\PersistentCollection {#129 …}
  +reports: Doctrine\ORM\PersistentCollection {#115 …}
  +badges: Doctrine\ORM\PersistentCollection {#93 …}
  +logs: Doctrine\ORM\PersistentCollection {#83 …}
  +awards: Doctrine\ORM\PersistentCollection {#72 …}
  +categories: Doctrine\ORM\PersistentCollection {#1360 …}
  -id: 40
  +apId: "lemmy_support@lemmy.ml"
  +apProfileId: "https://lemmy.ml/c/lemmy_support"
  +apPublicUrl: "https://lemmy.ml/c/lemmy_support"
  +apFollowersUrl: "https://lemmy.ml/c/lemmy_support/followers"
  +apInboxUrl: "https://lemmy.ml/inbox"
  +apDomain: "lemmy.ml"
  +apPreferredUsername: "lemmy_support"
  +apDiscoverable: true
  +apManuallyApprovesFollowers: null
  +privateKey: null
  +publicKey: null
  +apFetchedAt: DateTime @1729581033 {#268
    date: 2024-10-22 09:10:33.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1696687715 {#276
    date: 2023-10-07 16:08:35.0 +02:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details