مكون الدردشة غير متصل بـ

لدي سير عمل دردشة بسيط قمت بنسخه من صفحة النموذج:

<
{
“name”: “Chat with local LLMs using n8n and Ollama”,
“nodes”: [
{
“parameters”: {
“options”: {}
},
“id”: “475385fa-28f3-45c4-bd1a-10dde79f74f2”,
“name”: “When chat message received”,
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“position”: [
912,
624
],
“webhookId”: “ebdeba3f-6b4f-49f3-ba0a-8253dd226161”,
“typeVersion”: 1.1
},
{
“parameters”: {
“options”: {}
},
“id”: “61133dc6-dcd9-44ff-85f2-5d8cc2ce813e”,
“name”: “Ollama Chat Model”,
“type”: “@n8n/n8n-nodes-langchain.lmChatOllama”,
“position”: [
1104,
784
],
“typeVersion”: 1,
“credentials”: {
“ollamaApi”: {
“id”: “lCtwNqRXjkJytDLf”,
“name”: “Ollama Test”
}
}
},
{
“parameters”: {
“content”: “## Chat with local LLMs using n8n and Ollama\nThis n8n workflow allows you to seamlessly interact with your self-hosted Large Language Models (LLMs) through a user-friendly chat interface. By connecting to Ollama, a powerful tool for managing local LLMs, you can send prompts and receive AI-generated responses directly within n8n.\n\n### How it works\n1. When chat message received: Captures the user’s input from the chat interface.\n2. Chat LLM Chain: Sends the input to the Ollama server and receives the AI-generated response.\n3. Delivers the LLM’s response back to the chat interface.\n\n### Set up steps\n* Make sure Ollama is installed and running on your machine before executing this workflow.\n* Edit the Ollama address if different from the default.\n”,
“height”: 473,
“width”: 485
},
“id”: “3e89571f-7c87-44c6-8cfd-4903d5e1cdc5”,
“name”: “Sticky Note”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
368,
240
],
“typeVersion”: 1
},
{
“parameters”: {
“content”: “## Ollama setup\n* Connect to your local Ollama, usually on http://localhost:11434\n* If running in Docker, make sure that the n8n container has access to the host’s network in order to connect to Ollama. You can do this by passing --net=host option when starting the n8n Docker container”,
“height”: 258,
“width”: 368,
“color”: 6
},
“id”: “9345cadf-a72e-4d3d-b9f0-d670744065fe”,
“name”: “Sticky Note1”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
1280,
800
],
“typeVersion”: 1
},
{
“parameters”: {},
“id”: “eeffdd4e-6795-4ebc-84f7-87b5ac4167d9”,
“name”: “Chat LLM Chain”,
“type”: “@n8n/n8n-nodes-langchain.chainLlm”,
“position”: [
1136,
624
],
“typeVersion”: 1.4
}
],
“pinData”: {},
“connections”: {
“Ollama Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “Chat LLM Chain”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“When chat message received”: {
“main”: [
[
{
“node”: “Chat LLM Chain”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”,
“binaryMode”: “separate”,
“availableInMCP”: false
},
“versionId”: “4175a286-4d6a-42a5-915e-f8855614221f”,
“meta”: {
“templateId”: “2384”,
“templateCredsSetupCompleted”: true,
“instanceId”: “92d82d8eddeb75c1632295d367de7c0a28a1a65bbe8e484bc9236a3b35962a42”
},
“nodeGroups”: ,
“id”: “rR55c5eeONtyLGm9”,
“tags”:
}

/>

أنا أستخدم Ollama على http://192.168.2.145:11434. نموذج اللغة الذي أستخدمه هو llama3.2:latest.
للأسف، عندما أقوم بتشغيل سير العمل، بغض النظر عما أدخله في الدردشة، أحصل على
الخطأ التالي:
Error: Failed to receive response
عندما أتحقق من مخرجات مكون الدردشة، أرى «no chat output». وبطبيعة الحال، لا توجد
بيانات إدخال يتم استقبالها بواسطة مكون «Chat LLM Chain».
كان هناك منشور آخر حيث لم يتمكن الشخص من استقبال رد باستخدام مكون الدردشة.
الحل كان إعداد عنوان URL محرر النصوص:

حاولت ذلك. لم ينجح.
هل هناك خطأ ما في مكون الدردشة؟ أم أنني أفتقد شيئًا في إعدادات
المكونات؟
يرجى نصحي بأي شخص.

مرحبا @factor3، بينما تنتظر الرد، إليك بعض الأشياء التي قد تساعدك:

الموارد المقترحة

تم مطابقتها تلقائياً مع سؤالك.

المستندات:

المنتدى:

@kjooleng, @DylanS - لقد ساعدتما في مشاكل مماثلة من قبل، هل يمكنكما إلقاء نظرة؟

مقترح تلقائياً من روبوت مجتمع n8n. إنه مشروع تجريبي - يرجى مشاركة ملاحظاتك هنا.

مرحباً @factor3 ! آمل أن تكون بحال جيدة! تلك متغيرات البيئة الخاصة بـ webhooks ليست الشيء الصحيح هنا، ollama يربط إلى 127.0.0.1 افتراضياً، لذا فهو يرفض الاتصالات من عنوان IP الخاص بك على الشبكة المحلية. عيّن ollama host إلى 0.0.0.0 وأعد تشغيل ollama. لا تحتاج إلى تفعيل سير العمل لاختباره من المحرر، لذا لا تقلق بشأن ذلك!

وعيّن هذا أيضاً - OLLAMA_ORIGINS=*

مرحباً @factor3
n8n يبني عنوان URL لنقطة الدردشة من هاتين المتغيرين، لذا localhost يتم حله فقط عندما يعمل المتصفح على نفس الجهاز مثل n8n. من أي جهاز آخر، تقوم أداة الدردشة بالنشر إلى مضيف لا يمكنها الوصول إليه والسير لا يبدأ، وهذا هو السبب في عدم حصول Chain على أي إدخال. عيّنهما على العنوان الدقيق الذي تكتبه لفتح المحرر:

N8N_EDITOR_BASE_URL=http://192.168.2.x:5678
N8N_WEBHOOK_URL=http://192.168.2.x:5678/

N8N_WEBHOOK_URL هو الاسم الحالي لـ WEBHOOK_URL، والذي لا يزال يعمل لكنه يسجل تحذير إهمال. أعد تشغيل الحاوية، ثم أرسل رسالة دردشة مع فتح DevTools على علامة التبويب Network، يجب أن يذهب الطلب إلى هذا العنوان بدلاً من localhost.
انظر هذا:

في الواقع، n8n:

لقد قمت بالفعل بتعيين ollama لاستخدام 0.0.0.0.

الإعدادات التي أشير إليها هي لـ N8N، وليس ollama.

حسناً، سوء فهم مني! حسناً، حل أنشول يجب أن يناسبك!

Anshul_Namdev:

لقد قمت للتو بإجراء التغييرات التي اقترحتها. لكنني لا أزال أتلقى خطأ الاتصال.

بالمناسبة: الرابط الذي أشرت إليه هو المكان الذي وجدت فيه إعدادات N8N_EDITOR_BASE_URL و WEBHOOK_URL التي استخدمتها في الأصل.

N8N_HOST لا يزال على قيمته الافتراضية localhost. عيّنها على العنوان الدقيق الذي تفتح n8n عليه، جنباً إلى جنب مع المنفذ والبروتوكول:

N8N_HOST=<the IP you open n8n on>
N8N_PORT=5678
N8N_PROTOCOL=http

إذا كنت تستخدم Docker Compose، فإن docker compose restart يعيد استخدام البيئة القديمة، لذا طبّقها باستخدام docker compose up -d --force-recreate.
انظر إلى هذا:

تحياتي، Hammad_gaming:

حاولت إجراء دردشة، وحصلت على خطأ اتصال، وتحققت من Overview->Executions.
لا توجد أي عمليات تنفيذ معروضة.

أنا أقوم بتشغيل N8N باستخدام docker compose. ملف compose.yml الخاص بي موضح أدناه:

services:
  n8n:
    image: n8nio/n8n:latest
    restart: unless-stopped
	container_name: n8n
    environment:
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=n8n
      - DB_POSTGRESDB_PASSWORD=o3RhdvBB3nJDtn
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=<Redacted>
      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
      - N8N_HOST=192.168.2.145
      - N8N_PORT=5678
      - N8N_PROTOCOL=http
      - N8N_EDITOR_BASE_URL=http://192.168.2.145:5678
      - N8N_WEBHOOK_URL=http://192.168.2.145:5678/
    ports:
      - "5678:5678"
    volumes:
      - ./n8n_data:/home/node/.n8n
    networks:
      - n8n-network
    depends_on:
      - postgres

  postgres:
    image: postgres:15
    restart: unless-stopped
    environment:
      - POSTGRES_USER=n8n
      - POSTGRES_PASSWORD=<redacted>
      - POSTGRES_DB=n8n
    ports:
      - "5434:5432"
    volumes:
      - ./postgres_data:/var/lib/postgresql/data
    networks:
      - n8n-network

volumes:
  n8n_data:
  postgres_data:

networks:
  n8n-network:
    external: true   


لا تزال أحصل على أخطاء اتصال عند محاولة الدردشة.

ملاحظة: N8N قيد التشغيل على جهاز مختلف عن ollama.

قمت بتنفيذ أمر docker exec الذي اقترحته، مع تغيير عنوان IP إلى الجهاز
الذي يقوم بتشغيل ollama. عملت بدون مشاكل، وعرضت العلامات.

أنا أقوم بتشغيل N8N بالطريقة التالية:

docker compose up -d --force-recreate && docker compose logs -f

وأرى بعض إدخالات السجل المثيرة للاهتمام:

n8n | Initializing n8n process
n8n | n8n ready on ::, port 5678
n8n | Acquiring database migration lock…
n8n | n8n Task Broker ready on 127.0.0.1, port 5679
n8n | Failed to start Python task runner in internal mode. because Python 3 is missing from this system. Launching a Python runner in internal mode is intended o
ly for debugging and is not recommended for production. Users are encouraged to deploy in external mode. See: Set up task runners | Deploy | n8n Docs
ing-up-external-mode
n8n | Deprecation warning: The storage directory “/home/node/.n8n/binaryData” will be renamed to “/home/node/.n8n/storage” in n8n v3. To migrate now, set N8N_MIG
ATE_FS_STORAGE_PATH=true. If you have a volume mounted at the old path, update your mount configuration after migration.
n8n |
n8n | There are deprecations related to your n8n setup. Please take the recommended actions to update your configuration:
n8n | - N8N_UNVERIFIED_PACKAGES_ENABLED → The default for this variable will change to false in a future version. Set it to true explicitly to keep install
ng unverified community packages.
n8n | - N8N_RUNNERS_TASK_TIMEOUT → The default for this variable will be reduced from 300 (5 minutes) to 60 (1 minute) in a future version. Set it explicitly t
keep your current task timeout.
n8n | - N8N_COMPRESSION_NODE_MAX_DECOMPRESSED_SIZE_BYTES → The default for this variable will be reduced from 2 GiB to 256 MiB in a future version. Set it expl
citly to keep your current limit.
n8n | - N8N_COMPRESSION_NODE_MAX_ZIP_ENTRIES → The default for this variable will be reduced from 5000 to 1000 in a future version. Set it explicitly to keep yur current limit.
n8n |
n8n | [license SDK] Skipping renewal on init: license cert is not initialized
n8n | (node:7) DeprecationWarning: Calling client.query() when the client is already executing a query is deprecated and will be removed in pg@9.0. Use async/awa
it or an external async flow control mechanism instead.
n8n | (Use node --trace-deprecation ... to show where the warning was created)
n8n | Registered runner “JS Task Runner” (X2laGdzKHKQXahbLDHLEh)
n8n | Instance registered
n8n | Discovered 4 cluster checks
n8n | Version: 2.33.4
n8n | Building workflow dependency index…
n8n |
n8n | Editor is now accessible via:
n8n | http://192.168.2.145:5678
n8n | Finished building workflow dependency index. Processed 0 draft workflows, 0 published workflows.
^

أفهم تحذيرات الإيقاف هذه، وسأتعامل معها قريباً. ما يثير الاهتمام بشكل خاص هو عدم تهيئة شهادة الترخيص، وحقيقة أن فهرس تبعيات سير العمل لم يتم تهيئته وأنه لا توجد مسودات سير عمل يتم معالجتها. لا أعرف ما إذا كانت تلك تؤثر على تشغيل الدردشة، لكنني أضيفها فقط في حالة.

@factor3 هل يمكنك أخذ لقطة شاشة للكونسول عندما يرسل n8n الطلب؟ خيار - command - I أو مفتاح Windows بدلاً من command

@factor3 شكراً، هذا يستبعد فرضيتي. عدم وجود عمليات تنفيذ يعني أن الطلب لا يصل أبداً إلى n8n، لذا تجاهل فكرة SSE.

اختبار سريع يستحق القيام به: ضع Form trigger أو Webhook عادي على سير عمل جديد وانظر ما إذا كان ينطلق. شخص ما على 2.11 واجه نفس المشكلة تماماً، لا شيء في سجلات docker، النموذج والـ webhook جيدان، Chat trigger وحده لا يفعل شيئاً. عاد إلى 1.123 لجعله يعمل.

معظم هذا الموضوع يتعلق بأشياء Reverse proxy لن تنطبق عليك، لكن البداية تطابق إعدادك. إذا كان النموذج والـ webhook يعملان و Chat لا يعمل، فهي المشكلة في العقدة، وليس في ملف compose الخاص بك.

أيضاً، “Processed 0 draft workflows, 0 published workflows” في السجل الخاص بك لفت الانتباه. هل يظهر سير العمل الخاص بك في قائمة سير العمل بعد إعادة تشغيل؟

achamm:

كان هذا سؤالاً جيداً. فيما يلي مخرجات وحدة التحكم لجلسة N8N. يرجى ملاحظة كيف يفشل طلب الدردشة (في السطر 104).

Blocked loading mixed active content "http://192.168.2.145:5678/rest/ph/static/array.js" signin
Loading failed for the <script> with source "http://192.168.2.145:5678/rest/ph/static/array.js". signin:1:1
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/rudderstack/sourceConfig/?p=cdn&v=1.33.0" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 17 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" 4 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 17 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 17 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 17 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" 3 signin
Error: injectNDVStore() was accessed without an active workflow document store. Derive the NDV store from injectWorkflowDocumentStore().value.documentId in contexts that can run without a loaded workflow.
    F_ ndv.store.ts:504
    _t reactivity.esm-bundler.js:391
    get value reactivity.esm-bundler.js:1701
    setup NodeView.vue:1785
    mr runtime-core.esm-bundler.js:199
    hr runtime-core.esm-bundler.js:206
    call runtime-core.esm-bundler.js:880
    d reactivity.esm-bundler.js:1820
    run reactivity.esm-bundler.js:237
    pn reactivity.esm-bundler.js:1921
    Br runtime-core.esm-bundler.js:908
    zr runtime-core.esm-bundler.js:841
    setup NodeView.vue:1784
    mr runtime-core.esm-bundler.js:199
    mo runtime-core.esm-bundler.js:8041
    po runtime-core.esm-bundler.js:8002
    A runtime-core.esm-bundler.js:5939
    k runtime-core.esm-bundler.js:5905
    h runtime-core.esm-bundler.js:5403
    s runtime-core.esm-bundler.js:6131
    run reactivity.esm-bundler.js:237
    runIfDirty reactivity.esm-bundler.js:275
    mr runtime-core.esm-bundler.js:199
    Tr runtime-core.esm-bundler.js:408
vue.runtime.esm-bundler-CK19_EKD.js:2:30623
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" 3 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 4 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 3 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 5 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 4 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/webhook-test/rR55c5eeONtyLGm9/fbdf6d9b5c9f4ab0977f7c71c0826f1a" signin
Chat API error: TypeError: NetworkError when attempting to fetch resource.
    Wn generic.ts:20
    Kn generic.ts:50
    Yn message.ts:49
    pr chat.ts:198
    s chat.ts:268
    G Input.vue:300
    mr runtime-core.esm-bundler.js:199
    hr runtime-core.esm-bundler.js:206
    n runtime-dom.esm-bundler.js:731
useExecutionDebugging-CJvOivOi.js:2:4816
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/identify" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 3 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 3 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 2 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" 4 signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/track" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin
Blocked loading mixed active content "http://192.168.2.145:5678/rest/telemetry/proxy/v1/page" signin

Hammad_gaming:

هذا هو الشيء الغريب: سير العمل الخاص بي يظهر عندما أعيد تشغيل N8N. يمكنني الوصول إليه وتشغيله.

أعتقد أنني سأعيد تثبيت N8N على جهازي من الصفر. سأرى قريباً إذا كان هناك شيء خاطئ في البيانات والتثبيت. سأخبر الجميع إذا كان هذا يحل المشكلة.

لا حاجة لفعل ذلك.

إذا لم تكن بحاجة صارمة للتشفير في إعداد معمل منزلك المحلي:

  1. انتقل إلى شريط عنوان المتصفح الخاص بك.
  2. غيّر عنوان URL يدويًا من https://192.168.2.145:5678 إلى http://192.168.2.145:5678.
  3. ستختفي أخطاء “المحتوى المختلط”، وستعمل الدردشة.

@factor3 لا تقم بإلغاء التثبيت! firefox أو متصفحك يحجب كل طلب! إذا كنت لا تحتاج إلى https، افتح المحرر عبر http عادي وأيقف firefox أو المتصفح الذي تستخدمه وضع https فقط،

للجميع:

قمت بإعادة تثبيت N8N من الصفر (حذفت البيانات وقاعدة البيانات وحذفت الحاويات). كما تنبأ بذلك kjooleng و achamm، لم يغير ذلك أي شيء.

ومع ذلك، قمت بتغيير النظام بحيث توقف استخدام https. لجعله يعمل بدون https، كان يجب أن أضيف متغير بيئة:

N8N_SECURE_COOKIE=false

بعد إعادة التشغيل، قمت بتنزيل ملف JSON. إنه يعمل الآن.

شكراً للجميع على مساعدتكم في تشغيل هذا.

ومع ذلك، لدي مشكلة أخرى: أود أن أوفره عبر الإنترنت لفريقي. يتضمن ذلك إعداده باستخدام Nginx Proxy Manager (NPM). أود أن أوفره عبر HTTPS (لأسباب أمنية). للأسف، لا يمكنني فعل ذلك. لقد أنشأت نطاقاً للوصول إلى NPM، لكن لا يمكنني تعيينه لاستخدام HTTPS لأنه، بطبيعة الحال، الدردشة (وربما أشياء أخرى) لن تعمل.

هل هناك طريقة للحصول على N8N للعمل مع NPM واستخدام HTTPS؟

مرحبًا @factor3

سعيد بأنك حصلت عليها تعمل. HTTPS خلف NPM يعمل بالفعل، عليك فقط أن تخبر n8n أنه خلف proxy وتشغيل websockets في NPM.

جزء NPM هو الذي يفوته الناس: على proxy host، في علامة التبويب Details، حدد Websockets Support. يكون مطفأ افتراضيًا، وهذا عادة ما يوقف الدردشة وأجزاء من المحرر لأن كلاهما يحتاج إلى websocket للعودة إلى n8n.

ثم وجّه كل شيء إلى النطاق بدلاً من عنوان IP على الشبكة المحلية، وأزل N8N_SECURE_COOKIE=false الذي أضفته، لأن المتصفح يتحدث https مرة أخرى:

N8N_HOST=n8n.yourdomain.com
N8N_PROTOCOL=https
N8N_EDITOR_BASE_URL=https://n8n.yourdomain.com
N8N_WEBHOOK_URL=https://n8n.yourdomain.com/
N8N_PROXY_HOPS=1
EXPRESS_TRUST_PROXY=true

لا يزال NPM يعيد التوجيه إلى n8n عبر http عادي على المنفذ 5678 داخليًا وهذا لا بأس به، TLS يتوقف عند NPM.

شيء واحد سيمسكك لاحقًا: مهلة القراءة الافتراضية لـ NPM هي 60 ثانية، لذلك أي شيء يعمل لفترة أطول من ذلك يعود كـ 504 من openresty بدلاً من النتيجة. إذا واجهتها، أضف proxy_read_timeout في علامة التبويب Advanced من proxy host.

Hammad_gaming:

شكراً على المعلومات حول متغيرات البيئة. يمكنني الآن تشغيل N8N عبر SSL باستخدام نطاقي، وسير عمل اختبار الذكاء الاصطناعي البسيط الخاص بي يعمل.

@factor3

أهلا وسهلا.